about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
* add "copy link" textSamuel Newman2023-11-301-1/+2
|
* Improve feed reordering with optimistic updates (#2032)Eric Bailey2023-11-291-9/+19
| | | | | | | | | | | * Optimisticaly update order of saved feeds * Better show disabled state for pin button * Improve loading/disabled states * Improve placeholder * Simplify loading components
* Fix memory leak on mobile web tab navigation (#2021)dan2023-11-281-5/+36
| | | | | * Add navigationAction prop to Link * Bottom bar should use navigate() action
* [PWI] Misc (#1977)Eric Bailey2023-11-221-20/+21
| | | | | | | * PostDropdownBtn * Hide reply prompt * Hide FABs
* [PWI] Shell (#1967)Eric Bailey2023-11-211-1/+7
| | | | | | | | | | | | | | | * Sidebars * Bottom bar * Drawer * Translate * Spacing fix * Fix responsive regression * Fix nit
* PWI Base (#1964)Eric Bailey2023-11-213-23/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Base work for public view * Make default moderation settings more restrictive * Fix type * Handle showing sign-in on authed actions * Fix hoc logic * Simplify prefs logic * Remove duplicate method * Add todo * Clean up RepostButton.web * Fix x button color * Add todo * Retain existing label prefs for now, use separate logged out settings * Clean up useAuthedMethod, rename to useRequireAuth * Add todos * Move dismiss logic to withAuthRequired * Ooops add web * Block public view in prod * Add todo * Fix bad import
* Hindi Internationalization (#1914)Ansh2023-11-207-20/+25
| | | | | | | | | | | | | | | | | | | | | | * get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-167-29/+18
| | | | | | | | | | | | | | | | | | | | | * Update login page to use service query * Update modal to use session instead of store * Move image sizes cache off store * Update settings to no longer use store * Update link-meta fetch to use agent instead of rootstore * Remove deprecated resolveName() * Delete deprecated link-metas cache * Delete deprecated posts cache * Delete all remaining mobx models, including the root store * Strip out unused mobx observer wrappers
* Refactor app passwords to use react-query (#1932)Paul Frazee2023-11-162-4/+11
|
* Some me model cleanup (#1928)Eric Bailey2023-11-161-3/+3
| | | | | | | | | | | | | | | | | * Replace me model in post dropdown btn * Replace delete account logic * Replace me model in bottom bar web * Replace me model in bottom bar * Replace me model in reply prompt * Better fallback * Fix reference * Fix bad ref in bottom bar
* Update UserInfoText component (#1927)Paul Frazee2023-11-161-29/+4
|
* Factor lightbox out into hook/context (#1919)Paul Frazee2023-11-151-7/+6
|
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-151-6/+5
| | | | | | | | | | | * Move tick-every-minute into a hook/context * Move soft-reset event out of the shell model * Update soft-reset listener on new search page * Implement session-loaded and session-dropped events * Update analytics and push-notifications to use new session system
* Fix openCamera, openCropped, lightbox model, and image model usages (#1908)Eric Bailey2023-11-142-10/+4
|
* Fix image order in 4-image post embeds (close #1895) (#1904)Paul Frazee2023-11-141-2/+2
|
* Add Shadow type (#1900)Paul Frazee2023-11-142-2/+4
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-142-5/+5
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Factor our feed source model (#1887)Eric Bailey2023-11-133-41/+18
| | | | | | | | | | | | | | | | | | | | | * Refactor first onboarding step * Replace old FeedSourceCard * Clean up CustomFeedEmbed * Remove discover feeds model * Refactor ProfileFeed screen * Remove useCustomFeed * Delete some unused models * Rip out more prefs * Factor out treeView from thread comp * Improve last commit
* Fix jump for web pager (#1884)dan2023-11-131-2/+2
|
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-124-532/+162
| | | | | | | | | | | | | | | | | | | | | | | * Move broadcast channel to lib * Refactor view/com/post/Post and remove temporary 2 components * Add useModerationOpts hook * Refactor notifications to use react-query * Fix: only trigger updates in useModerationOpts when the values have changed * Implement unread notification tracking * Add moderation filtering to notifications * Handle native/push notifications * Remove dead code --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Pare down session as much as possibleEric Bailey2023-11-102-6/+6
|
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-092-0/+410
| | | | | | | | | | | | | | | | | | | * Add post and post-thread queries * Update PostThread components to use new queries * Move from normalized cache to shadow cache model * Merge post shadow into the post automatically * Remove dead code * Remove old temporary session * Fix: set agent on session creation * Temporarily double-login * Handle post-thread uri resolution errors
* First pass at a session handler (#1850)Eric Bailey2023-11-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First pass at a session handler * TODOs * Fix recursion * Couple more things * Add back resume session concept * Handle ready * Cleanup of initial loading states * Handle init failure * Cleanup * Remove account * Add updateCurrentAccount * Remove log * Cleanup * Integrate removeAccount * Add hasSession * Add to App.native, harden migration * Use effect to persist data
* Internationalization & localization (#1822)Ansh2023-11-0915-27/+72
| | | | | | | | | | | | | | | | | | | | | | | | | * install and setup lingui * setup dynamic locale activation and async loading * first pass of automated replacement of text messages * add some more documentaton * fix nits * add `es` and `hi`locales for testing purposes * make accessibilityLabel localized * compile and extract new messages * fix merge conflicts * fix eslint warning * change instructions from sending email to opening PR * fix comments
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-0810-40/+51
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* Extract shell state into separate context (#1824)Eric Bailey2023-11-072-8/+8
| | | | | | | | | | | | | | | | | * WIP * Add shell state * Integrate new shell state for drawer and minimal shell mode * Replace isDrawerSwipeDisabled * Split shell state into separate contexts to avoid needless re-renders * Fix typo --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Improved list and feed errors (#1798)Paul Frazee2023-11-031-1/+8
| | | | | | | | | * Fix error-state rendering of ProfileList * Unsave/unpin lists on delete * Improve handling of failing feedgens * Only show 'remove' btn on feed DNE
* Work around a startup stall caused by expo-image on low-end Android (#1801)dan2023-11-021-8/+21
| | | | | * Use plain RN image for startup-blocking UI * Add comments
* Lists updates: curate lists and blocklists (#1689)Paul Frazee2023-11-0114-50/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lists screen * Update Lists screen and List create/edit modal to support curate lists * Rework the ProfileList screen and add curatelist support * More ProfileList progress * Update list modals * Rename mutelists to modlists * Layout updates/fixes * More layout fixes * Modal fixes * List list screen updates * Update feed page to give more info * Layout fixes to ListAddUser modal * Layout fixes to FlatList and Feed on desktop * Layout fix to LoadLatestBtn on Web * Handle did resolution before showing the ProfileList screen * Rename the CustomFeed routes to ProfileFeed for consistency * Fix layout issues with the pager and feeds * Factor out some common code * Fix UIs for mobile * Fix user list rendering * Fix: dont bubble custom feed errors in the merge feed * Refactor feed models to reduce usage of the SavedFeeds model * Replace CustomFeedModel with FeedSourceModel which abstracts feed-generators and lists * Add the ability to pin lists * Add pinned lists to mobile * Remove dead code * Rework the ProfileScreenHeader to create more real-estate for action buttons * Improve layout behavior on web mobile breakpoints * Refactor feed & list pages to use new Tabs layout component * Refactor to ProfileSubpageHeader * Implement modlist block and mute * Switch to new api and just modify state on modlist actions * Fix some UI overflows * Fix: dont show edit buttons on lists you dont own * Fix alignment issue on long titles * Improve loading and error states for feeds & lists * Update list dropdown icons for ios * Fetch feed display names in the mergefeed * Improve rendering off offline feeds in the feed-listing page * Update Feeds listing UI to react to changes in saved/pinned state * Refresh list and feed on posts tab press * Fix pinned feed ordering UI * Fixes to list pinning * Remove view=simple qp * Add list to feed tuners * Render richtext * Add list href * Add 'view avatar' * Remove unused import * Fix missing import * Correctly reflect block by list state * Replace the <Tabs> component with the more effective <PagerWithHeader> component * Improve the responsiveness of the PagerWithHeader * Fix visual jank in the feed loading state * Improve performance of the PagerWithHeader * Fix a case that would cause the header to animate too aggressively * Add the ability to scroll to top by tapping the selected tab * Fix unit test runner * Update modlists test * Add curatelist tests * Fix: remove link behavior in ListAddUser modal * Fix some layout jank in the PagerWithHeader on iOS * Simplify ListItems header rendering * Wait for the appview to recognize the list before proceeding with list creation * Fix glitch in the onPageSelecting index of the Pager * Fix until() * Copy fix Co-authored-by: Eric Bailey <git@esb.lol> --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Merge branch 'main' of https://github.com/haideralipunjabi/social-app into mainPaul Frazee2023-10-301-0/+1
|\
| * Added show more for long postsHaider Ali Punjabi2023-10-261-0/+1
| |
* | 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
|