about summary refs log tree commit diff
path: root/src/view/com/posts
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduce polling (#2465)Paul Frazee2024-01-101-5/+9
| | | | | | | | | | | | | * Move profile and preference polling to polls-on-foreground * Refetch prefs on feeds screen refresh since polling no longer occurs * Reduce notifications polling by 50% if there's already an unread * Disable feed polling if we know we have content * Disable the hard refresh after 1 hour in case it's the cause of the random feed refresh bug * Fix types
* Internationalize more strings (#2440)Stanislas Signoud2024-01-097-53/+83
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* add expandable context to composer when replying to post (#2419)Hailey2024-01-081-0/+1
| | | | | | | | | | | | | | | * add expand replyTo text with animation * add images, quote to replyTo * support withmedia * adjust layout * add embed to all needed openComposer calls * adjust gap * organize imports
* Fix: only show appeal CW item on moderated posts (#2312)Paul Frazee2023-12-271-1/+13
| | | | | * Fix: only show appeal CW item on moderated posts * Add appeal cw control to feed view o fposts
* Fix: dont incorrectly mark a feed empty based only on the first page (#2298)Paul Frazee2023-12-241-1/+4
|
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump to react-native@0.73, bump expo@next Includes bumps for all expo deps and dev dependencies. Updates react-native patch and others, and removes the babel-preset-expo patch. * Remove duplicate Splash ref * Bump more deps * Properly install expo-notifications * Bump webview dep * Bump packages according to expo fix; remove pager-view patch as it is no longer needed * Don't access expo-camera from Web * Fix crypto dep on web * Fix some type issues * Build esnext modules to support dynamic imports --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Consolidate List props a bit (#2216)dan2023-12-211-14/+3
|
* Traffic reduction and tuned caching strats (#2215)Paul Frazee2023-12-151-4/+22
| | | | | | | | | | | | | * Update the feed to only check latest on focus after 30s, but to do a full reset on focus after 1 hour to avoid very stale data * Remove the isFeedPublic query * Fix: avoid double next-page fetches * Reduce some poll intervals to reduce server load * Guard against double-fires of fetchNextPage * Reduce polling on blurred screens
* Make scroll handling contextual (#2200)dan2023-12-131-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it
* Feed bugfixes (#2204)Paul Frazee2023-12-131-2/+1
| | | | | * Dont show both an error and empty message in the feed * Add a sanity check when attempting to fill the first 30
* Re-rendering improvements for like/unlike (#2180)dan2023-12-121-50/+73
| | | | | | | | | | | | | | | * Add a few memos * Memo PostDropdownBtn better * More memo * More granularity * Extract PostContent * Fix a usage I missed * oops
* Fix scroll on native (#2170)dan2023-12-111-2/+2
|
* Fix scroll on profile lists/feeds (#2168)dan2023-12-111-2/+2
|
* Reduce calls to getFeedGenerator and getFeed (#2166)Paul Frazee2023-12-111-7/+6
| | | | | | | | | | | * Reduce calls to getFeedGenerator by the mergefeed * Dont run end-of-follows mergefeed requests until actually at the end of the feed * build AWS container --------- Co-authored-by: Jake Gold <jake@blueskyweb.xyz>
* Fix empty state width (#2157)Eric Bailey2023-12-092-0/+2
|
* Poll for new posts on app foreground (#2152)Paul Frazee2023-12-081-5/+17
|
* Use new filter for Posts tab on profile (#2150)Eric Bailey2023-12-081-1/+1
| | | | | | | * Use new filter for Posts tab on profile * Update deps * Remove log
* Grab-bag of post-feed improvements (#2140)Paul Frazee2023-12-071-1/+8
| | | | | | | * Sanity check against cases where empty pages may occur * Use the mergefeed as an emergency fallback to an empty feed * Check for new posts on focus
* Hoist moderation, attempt to fill feed up to 30 (#2134)Eric Bailey2023-12-072-50/+14
| | | | | | | | | | | * Move moderatePost up to feed query * Attemt to fill page up to 30 * Add the 'ensure full page' behavior to notifs --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Check Analytics (#2106)Ansh2023-12-062-5/+2
| | | | | | | | | | | * fix sign in event tracking * add missing analytics events * add more missing analytics * fix like and unrepost event tracking * reset onEndReachedThreshold
* Surface raw server error if exists (#2096)Eric Bailey2023-12-052-8/+23
| | | | | | | | | | | * Surface raw server error if exists * Update copy * Update translation files --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Update feeds on post created (#2085)Paul Frazee2023-12-041-0/+25
|
* Add back ignore-filters-for behaviors (#2086)Paul Frazee2023-12-041-0/+4
|
* Fix bottom space on feeds (#2081)Eric Bailey2023-12-042-15/+27
| | | | | | | * Fix bottom space on feeds * Translate * Handle web better
* Handle feedgen 429 (#2066)Eric Bailey2023-12-041-0/+11
| | | | | * Handle feedgen 429 * Translate
* Fix: distinguish between post media and quotes with the moderation hider (#2075)Paul Frazee2023-12-041-1/+7
| | | | | * Fix: distinguish between post media and quotes with the moderation hider * Type fixes
* Only poll feed when feed page is focused (#2064)Eric Bailey2023-12-011-2/+2
| | | | | | | | | | | | | * Do no poll when screen is not focused * Avoid polling unless focused * Handle homepage in background * Fix the intl:check to ignore comments in diffs --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Handle nsfw feeds in public view (#2035)Eric Bailey2023-11-291-33/+69
| | | | | | | | | | | | | | | | | | | * Handle nsfw feeds in public view * Translate * Refactor, new approach * Translate * Copy * Translate * Revert changes to Feed * Remove unused retry * Translate
* Fix state lifecycle management with post-feed query, solving the duplicate ↵Paul Frazee2023-11-291-4/+4
| | | | | | | key issue (#2034) * Assign keys to feed slices via a counter, to enable duplicate items in the feed if needed * Move post-feed query state into the query's page params to consistently bind their lifecycles
* Shadow refactoring and improvements (#1959)dan2023-11-213-12/+1
| | | | | | | | | | | | | | | * Make shadow a type-only concept * Prevent unnecessary init state recalc * Use derived state instead of effects * Batch emitter updates * Use object first seen time instead of dataUpdatedAt * Stop threading dataUpdatedAt through * Use same value consistently
* Hindi Internationalization (#1914)Ansh2023-11-201-3/+6
| | | | | | | | | | | | | | | | | | | | | | * 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
* Do less work (#1953)dan2023-11-171-1/+1
|
* Add some memoization (#1947)dan2023-11-163-9/+14
|
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-161-3/+2
| | | | | | | | | | | | | | | | | | | | | * 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
* Misc cleanup (#1925)Eric Bailey2023-11-152-10/+18
| | | | | | | | | | | | | * Remove unused prefs * Cleanup * Remove my-follows cache * Replace moderationOpts in ProfileCard comp * Replace moderationOpts in FeedSlice * Remove preferences model
* Add Shadow type (#1900)Paul Frazee2023-11-141-2/+2
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-4/+4
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix poll latest loop (#1901)Paul Frazee2023-11-141-0/+3
| | | | | * Avoid pollLatest loop * Set poll interval on profile feeds
* Factor our feed source model (#1887)Eric Bailey2023-11-131-4/+4
| | | | | | | | | | | | | | | | | | | | | * 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
* Refactor profile screen to use new pager and react-query (#1870)dan2023-11-131-1/+7
| | | | | | | | | | | | | * Profile tabs WIP * Refactor the profile screen to use react-query (WIP) * Add the profile shadow and get follow, mute, and block working * Cleanup --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-122-6/+6
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Refactor feeds to use react-query (#1862)Paul Frazee2023-11-104-235/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update to react-query v5 * Introduce post-feed react query * Add feed refresh behaviors * Only fetch feeds of visible pages * Implement polling for latest on feeds * Add moderation filtering to slices * Handle block errors * Update feed error messages * Remove old models * Replace simple-feed option with disable-tuner option * Add missing useMemo * Implement the mergefeed and fixes to polling * Correctly handle failed load more state * Improve error and empty state behaviors * Clearer naming
* Use min height for pager lists and increase it (#1869)dan2023-11-101-1/+1
|
* Scroll sync in the pager without jumps (#1863)dan2023-11-101-2/+4
|
* Push useAnimatedScrollHandler down everywhere to work around bugs (#1866)dan2023-11-101-3/+5
| | | | | | | * Move useOnMainScroll handlers to leaves * Force Feed to always take handlers * Pass handlers from the pager
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-081-3/+5
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-081-1/+3
|
* Move muted threads to new persistence + context (#1838)Paul Frazee2023-11-081-5/+8
|
* Replace all logs with new loggerEric Bailey2023-11-043-11/+14
|
* Fix other error logs while I'm at itEric Bailey2023-11-041-1/+1
|