about summary refs log tree commit diff
path: root/src/state/queries/notifications
Commit message (Collapse)AuthorAgeFilesLines
...
* Hide posts tool (#2299)Eric Bailey2023-12-241-1/+1
| | | | | | | | | | | | | * Set up hidden posts persisted state * Wrap moderatePost * Integrate hidden posts into moderation * Complete hide-post behaviors --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Traffic reduction and tuned caching strats (#2215)Paul Frazee2023-12-151-13/+16
| | | | | | | | | | | | | * 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
* Feed bugfixes (#2204)Paul Frazee2023-12-131-1/+7
| | | | | * Dont show both an error and empty message in the feed * Add a sanity check when attempting to fill the first 30
* More notifications improvements (#2198)Paul Frazee2023-12-133-26/+25
| | | | | * On mobile, never replace the notifs under the user due to focus events * Use the server's seenAt response to calculate isRead state locally
* Additional reductions in request traffic (#2169)Paul Frazee2023-12-113-6/+15
| | | | | | | * Dont poll for new content on profiles * Drop the whenAppReady query after new post to reduce traffic overhead * Reduce getPosts calls in notifs to only use them when needed
* Multiple notifications fixes (#2154)Paul Frazee2023-12-094-23/+53
| | | | | | | | | | | | | | | * Dont reset notifications feed on push notification event * Dont separate notifications by read state to avoid jank * On notifications screen focus, check latest and only rerender if not scrolled down * Reuse the cached notifs page when its not stale * Bump ios build number * Improve comments * Change the 'mark all read' condition to avoid firing too early
* Stop using the cached notification page (#2142)Paul Frazee2023-12-071-14/+7
|
* Grab-bag of post-feed improvements (#2140)Paul Frazee2023-12-071-1/+5
| | | | | | | * 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-071-1/+17
| | | | | | | | | | | * 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>
* Fix some typesPaul Frazee2023-12-051-1/+1
|
* Perf: Include quote posts in the post-thread placeholder (#2104)Paul Frazee2023-12-051-0/+5
|
* Improve unread notif tracking (#2056)Paul Frazee2023-11-301-13/+21
|
* Maintain some feed data to avoid needless glimmers (#2054)Paul Frazee2023-11-301-1/+2
|
* Rewrite the shadow logic to look inside the cache (#2045)dan2023-11-301-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reset * Associate shadows with the cache * Use colocated helpers * Fix types * Reorder for clarity * More types * Copy paste logic for profile * Hook up profile query * Hook up suggested follows * Hook up other profile things * Fix shape * Pass setShadow into the effect deps * Include reply posts in the shadow cache search --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Adjust stale-caches and dont group read&unread notifs together (#2041)Paul Frazee2023-11-291-1/+2
| | | | | | | | | * Dont group read & unread notifications together * Remove and reduce some stale cache times * Keep the staleTime on the post-feed * Bring back the load-bearing staletime on profile
* Fix infinite query reloading behavior (reset, not invalidate) (#2031)Paul Frazee2023-11-291-1/+1
| | | | | * Reset, not invalidate, notification queries * Reset, not invalidate, feed queries
* Refactor the notifications to cache and reuse results from the unread-notifs ↵Paul Frazee2023-11-294-215/+347
| | | | | | | checks (#2017) * Refactor the notifications to cache and reuse results from the unread-notifs checks * Fix types
* Get more rigorous about getAgent() consistency (#2026)Paul Frazee2023-11-292-8/+6
| | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* Restore post-thread caching behaviors (react-query refactor) (#2010)Paul Frazee2023-11-271-1/+38
| | | | | | | | | | | | | | | | | | | | | * Rework resolve-did and resolve-uri queries to be smarter about cache reuse * Precache handle resolutions * Remove old unused code * Load placeholder threads from the post-feed and notifications-feed queries * Remove logs * Fix bad ref * Add loading spinners to the cache-loading thread view * Scroll replies into view when loading threads * Add caching within a thread * Fix: dont show bottom border when the child spinner is active
* Don't check unread if session doesn't exist (#2008)Eric Bailey2023-11-271-1/+5
|
* Improve notification load behaviors (#1943)Paul Frazee2023-11-161-2/+0
| | | | | | | * Dont use the stale cache for notifs-feed * Add a delay to marking all read to avoid marking upcoming posts as read * Trigger automatic notifications refresh when navigating to the tab, in certain conditions
* Move the current agent to a global and reset RQ queries on agent change (#1946)Paul Frazee2023-11-162-9/+10
|
* Caching heuristics (#1938)Eric Bailey2023-11-161-0/+2
| | | | | * Tempfix profile load * First pass at staleTime
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-123-0/+363
* 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>