about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
* | Rename component to match new behaviorPaul Frazee2023-10-303-8/+8
| |
* | Merge branch 'bugfix/desktop-web-text-link-media-query-issue' of ↵Paul Frazee2023-10-301-5/+2
|\ \ | | | | | | | | | https://github.com/liby/social-app into liby-bugfix/desktop-web-text-link-media-query-issue
| * | Replace `isDesktop` with `isWeb` in `DesktopWebTextLink` componentBryan Lee2023-10-041-5/+2
| | | | | | | | | | | | | | | - Replaced `useWebMediaQueries().isDesktop` with `isWeb` in `DesktopWebTextLink` component to fix inconsistent behavior due to media query changes. - `isWeb` doesn't rely on media queries, offering stable judgement and avoiding fluctuation when adjusting the browser window.
* | | Fix lintPaul Frazee2023-10-301-0/+2
| | |
* | | Merge branch 'patch-1' of https://github.com/elijah-wright/social-app into ↵Paul Frazee2023-10-301-6/+4
|\ \ \ | |_|/ |/| | | | | elijah-wright-patch-1
| * | readd hintElijah Wright2023-10-081-1/+1
| | |
| * | fix accessibility in AutoSizedImageElijah Wright2023-10-081-6/+4
| | |
* | | Remove MobX from Link (#1745)dan2023-10-251-5/+4
| | | | | | | | | | | | | | | | | | | | | * Remove MobX from Link * Keep memo() though We previously had observer() apply it automatically, so re-add it
* | | Simplify the avatar component (#1744)dan2023-10-251-40/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copypaste UserAvatar to EditableUserAvatar * Swap usages with onSelectNewAvatar to EditableUserAvatar * Split prop types into UserAvatarProps and EditableUserAvatarProps * Remove dead branches from EditableUserAvatar * Remove dead branches from UserAvatar
* | | Fix four gallery images for Firefox (#1710)dan2023-10-181-4/+4
| | |
* | | Performance optimization (#1676)Ansh2023-10-133-78/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade sentry to support profiling monitoring * remove console logs in production builds * feeds tab bar and bottom bar animation centralized * refactor FeedPage out of Home * add script to start in production mode * move FAB inner to reanimated * move FABInner back to `Animated` RN animation * add perf commands * add testing with Maestro and perf with Flashlight * fix merge conflicts * fix resourceClass name in eas.json * fix onEndReachedThreshold in Feed * memoize styles * go back to old styling for LoadLatestBtn * remove reanimated code from useMinimalShellMode * move shell animations to hook/reanimated for perf * fix empty state issue * make shell animation feel smoother * make shell animation more smooth * run animation with autorun * specify keys for tab bar properly * remove comments * remove already imported dep * fix lint * add testing instructions * mock sentry-expo for jest * fix jest mocks * Fix the load-latest button on desktop and tablet * Fix: don't move the FAB in tablet mode * Fix type error * Fix tabs bar positioning on tablet * Fix types --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* | | Fix profile layout shift (#1690)dan2023-10-131-13/+2
| | |
* | | Don't re-render bars when showing/hiding them (#1691)dan2023-10-132-23/+29
| | | | | | | | | | | | | | | | | | | | | * Don't re-render bars when showing/hiding them * Fix more cases * Use autorun instead of reaction to fix first render
* | | Fix crash when scrolling down on the web (#1684)dan2023-10-121-4/+2
| | |
* | | Make shell hide/show animation smoother (#1683)dan2023-10-121-3/+10
| | | | | | | | | | | | | | | * Make shell hide/show animation smoother * Also animate "load latest"
* | | Fix layout shift for multi-image posts (#1673)dan2023-10-122-66/+65
|/ / | | | | | | | | | | | | | | | | * Fix layout shift for multi-image posts * Add a comment for the hack * Use margins instead of gap * Move alt label
* | Profile UI tweaks (#1607)Paul Frazee2023-10-041-1/+2
| | | | | | | | | | * Use inverted color instead of primary color for press state * Fix: add missing border to empty state
* | Onboarding & feed fixes (#1602)Paul Frazee2023-10-041-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix: improve the 'end of feed' detection condition * Fix the feeds link on mobile in the empty state * Align the following empty state better on web * Dont autofocus the search input in the search tab * Fix the error boundary render * Add 'end of feed' CTA to following feed * Reduce the default feeds to discover now that we have feed-selection during onboarding * Fix case where loading spinner fails to stop rendering in bottom of feed * Fix: dont show loading spinner at footer of feed when refreshing * Fix: dont fire reminders during onboarding * Optimize adding feeds and update to mirror the api behaviors more closely * Use the lock in preferences to avoid clobbering in-flight updates * Refresh the feed after onboarding to ensure content is visible * Remove the now-incorrect comment * Tune copy
* Fix bad reference when image picker is canceled (#1598)Paul Frazee2023-10-032-0/+6
|
* Warn the user on links that dont match their text (#1573)Paul Frazee2023-10-022-2/+24
| | | | | | | | | | | | | | | | | | | * Add link warning modal when URLs do not match their text * Simplify the misleading link case for clarity * Fix typecheck * fix dark mode * Give a stronger visual indication of the root domain in the link warning * More rigorous URL mismatch logic * Remove debug --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-282-58/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor `useOnMainScroll` function to use responsive device detection - Replace static `isDesktopWeb` with `useWebMediaQueries` hook to enable dynamic device type detection. - Create `useDeviceLimits` hook to dynamically determine `DY_LIMIT_UP` and `DY_LIMIT_DOWN` based on device type. - Update dependency arrays for the `useCallback` hooks to include new dynamic variables. * Refactor styles to be responsive to device type - Create `useStyles` hook that generates styles object based on device type detected from `useWebMediaQueries`. - Replace static styles object with dynamic styles object generated from `useStyles` hook in components. - This allows `paddingLeft` values for 'ul' and 'ol' styles to adapt to device type dynamically. - This allows `maxWidth` values for 'metaItem'' styles to adapt to device type dynamically. * Remove `isDesktopWeb` in favor of `useWebMediaQueries().isDesktop` * Refactor `SplashScreen` component for responsive design * Revision based on review results * Fix isNative check --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Account quick switch modal (#1567)Paul Frazee2023-09-281-0/+46
| | | | | | | | | | | | | | | * quick switch menu * Some small tweaks and fixes to the account switch modal * Factor out the account switcher logic to a hook * Add haptic feedback on account switcher open * Fix bad merge --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Email verification and change flows (#1560)Paul Frazee2023-09-281-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix 'Reposted by' text overflow * Add email verification flow * Implement change email flow * Add verify email reminder on load * Bump @atproto/api@0.6.20 * Trim the inputs * Accessibility fixes * Fix typo * Fix: include the day in the sharding check * Update auto behaviors * Update yarn.lock * Temporary error message --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Merge pull request #1553 from mozzius/refreshed-web-repost-dropdownEric Bailey2023-09-271-37/+54
|\ | | | | Use refreshed dropdown style for repost/quote post dropdown
| * replace dropdown componentSamuel Newman2023-09-271-37/+54
| |
* | Improve image cropping on android and introduce aspect ratio field (#1525)Paul Frazee2023-09-272-3/+10
|/ | | | | * Fix image cropping on android * Store and use aspect ratio field in post images (close #1392)
* :lipstick: Remove report option on my own post (#1537)Foysal Ahamed2023-09-261-1/+1
|
* Accessibility fixes: add missing labels, dynamically scale home header (#1516)Paul Frazee2023-09-223-3/+13
| | | | | * Improve labels * Dynanically adjust home header to account for font scaling
* Switch the date input web version to the date-input web control (#1510)Paul Frazee2023-09-211-47/+30
| | | | | * Switch the date input web version to the date-input web control * Fix types
* Dont reposition load latest button on desktop (#1508)Paul Frazee2023-09-211-1/+2
|
* Prefilter the mergefeed to ensure a better mix of following and custom feeds ↵Paul Frazee2023-09-201-1/+3
| | | | | | | | | | | | | | | (#1498) * Prefilter the mergefeed to ensure a better mix of following and custom feeds * Test suite improvements & tests for the mergefeed (#1499) * Disable invite codes test for now * Update test sim to latest iphone * Introduce TestCtrls driver * Add mergefeed tests
* Improve consistency of floating button positioning (#1501)Paul Frazee2023-09-202-26/+17
|
* Tune the treeview UI a bit more (#1494)Paul Frazee2023-09-201-9/+15
|
* Onboarding recommended follows (#1457)Ansh2023-09-201-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade api package * add RecommendedFollows as a step in onboarding * add list of recommended follows from suggested actor model * remove dead code * hoist suggestedActors into onboarding model * add comments * load more suggested follows on follow * styling changes * add animation * tweak animations * adjust styling slightly * adjust styles on mobile * styling improvements for web * fix text alignment in RecommendedFollows * dedupe inserted suggestions * fix animation duration * Minor spacing tweak --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> and Eric Bailey <git@esb.lol>
* :bug: Handle middle mouse click on feed list items (#1469)Foysal Ahamed2023-09-181-2/+3
| | | | | | | | | | | | | | | * :bug: Handle middle mouse click on feed list items * :recycle: Refactor the event listener and turn it into a dedicated hook for web * :broom: Cleanup unnecessary Link changes * Fix import * Create native version of useAuxClick --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-188-183/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feeds navigation on right side of desktop (#1403) * Remove home feed header on desktop * Add feeds to right sidebar * Add simple non-moving header to desktop * Improve loading state of custom feed header * Remove log Co-authored-by: Eric Bailey <git@esb.lol> * Remove dead comment --------- Co-authored-by: Eric Bailey <git@esb.lol> * Redesign feeds tab (#1439) * consolidate saved feeds and discover into one screen * Add hoverStyle behavior to <Link> * More UI work on SavedFeeds * Replace satellite icon with a hashtag * Tune My Feeds mobile ui * Handle no results in my feeds * Remove old DiscoverFeeds screen * Remove multifeed * Remove DiscoverFeeds from router * Improve loading placeholders * Small fixes * Fix types * Fix overflow issue on firefox * Add icons prompting to open feeds --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Merge feed prototype [WIP] (#1398) * POC WIP for the mergefeed * Add feed API wrapper and move mergefeed into it * Show feed source in mergefeed * Add lodash.random dep * Improve mergefeed sampling and reliability * Tune source ui element * Improve mergefeed edge condition handling * Remove in-place update of feeds for performance * Fix link on native * Fix bad ref * Improve variety in mergefeed sampling * Fix types * Fix rebase error * Add missing source field (got dropped in merge) * Update find more link * Simplify the right hand feeds nav * Bring back load latest button on desktop & unify impl * Add 'From' to source * Add simple headers to desktop home & notifications * Fix thread view jumping around horizontally * Add unread indicators to desktop headers * Add home feed preference for enabling the mergefeed * Add a preference for showing replies among followed users only (#1448) * Add a preference for showing replies among followed users only * Simplify the reply filter UI * Fix typo * Simplified custom feed header * Add soft reset to custom feed screen * Drop all the in-post translate links except when expanded (#1455) * Update mobile feed settings links to match desktop * Fixes to feeds screen loading states * Bolder active state of feeds tab on mobile web * Fix dark mode issue --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Ansh <anshnanda10@gmail.com>
* Readd hitslop to post controls (#1461)Paul Frazee2023-09-152-3/+8
| | | | | * Readd hitslop to post controls * Bigger hitslop on bigger controls
* wrap impersonation text (#1447)Ansh2023-09-131-5/+5
|
* Remove accessibilityRole=button on dropdown mask, it causes issues on ↵Paul Frazee2023-09-111-1/+0
| | | | firefox (#1436)
* 💅 disallow overflow outside of post content area(s) (#1395)Micah Maligie2023-09-071-2/+5
|
* Give explicit names to MobX observer components (#1413)dan2023-09-076-106/+107
| | | | | | | | | * Consider observer(...) as components * Add display names to MobX observers * Temporarily suppress nested components * Suppress new false positives for react/prop-types
* Add ESLint React plugin (#1412)dan2023-09-075-125/+120
| | | | | * Add eslint-plugin-react * Enable display name rule
* Fix scrollbar gutters on web (#1401)Paul Frazee2023-09-071-8/+12
| | | | | * Fix scrollbar gutters on web * Fix typecheck
* Upgrade to Expo 49 (#1331)Eric Bailey2023-09-055-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update to expo 49 * update expo-camera to fix console erorrs * run doctor again * fix ts errors * patch @sentry/react-native Getting `cannot read property 'ignoreLogs' of undefined` in this file. Ironically, this may be a cyclical imports problem. LogBox isn't enabled in production, so this patch should only affect dev/test. * fix type error * reinstall newer reanimated * pin expo-dev-client to fix reanimated dev-build issue * fix type errors, fix bad conflict res * Fix to notifications badge z-index on desktop --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Updates to use dynamic/responsive styles on web (#1351)Paul Frazee2023-09-0511-72/+131
| | | | | | | | | | | | | | | | | | | * Move most responsive queries to the hook * Fix invalid CSS value * Fixes to tablet render of post thread * Fix overflow issues on web * Fix search header on tablet * Fix QP margin in web composer * Fix: only apply double gutter once to flatlist (close #1368) * Fix styles on discover feeds header * Fix double discover links in multifeed
* Improved mute alerting (#1355)Paul Frazee2023-09-011-5/+1
| | | | | | | * Use a simpler mute alert when viewing a post by a muted user * Dont mute self-QPs when we're overriding a mute * Fix types
* Improvements to UI in web logged-out views (#1341)Paul Frazee2023-08-301-0/+102
| | | | | | | * Add LoggedOutLayout for desktop/tablet web * Avoid screen flash in the transition to onboarding * Fix comment
* fix types for breakpoints on mobile (#1342)Ansh2023-08-301-3/+6
|
* Merge branch 'ansh/app-812-add-custom-feed-discovery-to-onboarding' into mainPaul Frazee2023-08-305-30/+166
|\
| * Simplify the RecommendedFeeds with breakpoint componentsPaul Frazee2023-08-302-0/+28
| |