about summary refs log tree commit diff
path: root/src/state/queries/notifications/feed.ts
Commit message (Collapse)AuthorAgeFilesLines
* [Notifications] Add a Mentions tab (#7044)dan2024-12-121-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split out NotificationsTab * Remove unused route parameter * Refine the split between components * Hoist some logic out of NotificationFeed * Remove unused option * Add all|conversations to query, hardcode "all" * Add a Conversations tab * Rename to Mentions * Bump packages * Rename fields * Fix oopsie * Simplify header * Track active tab * Fix types * Separate logic for tabs * Better border for first unread * Highlight unread for all only * Fix spinner races * Fix fetchPage races * Fix bottom bar border being obscured by glimmer * Remember last tab within the session * One tab at a time * Fix TS * Handle all RQKEY usages * Nit
* Filter posts containing mute words from search and notifications (#5599)Eric Bailey2024-10-081-17/+86
| | | | | | | * Filter mute words from search * Filter mute words from notifications * Do no filter search if using from filter
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-211-13/+42
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Remove ungroup_follow_backs gate (#4893)Eric Bailey2024-08-081-3/+0
|
* Fetch enough pages to fill a page's worth of items (#4863)dan2024-08-011-18/+41
| | | | | * Fetch enough pages to fill a page's worth of items * Add failsafe in case of appview bug
* Priority notifications (#4798)Samuel Newman2024-07-241-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new settings screen * bring back the spinner * add experimental language * fix typo, change leading * integrate priority notifications API * update package * use refetch instead of invalidateQueries * fix read-after-write issue by polling for update * add spinner for initial load * rm onmutate, it's overcomplicated * set error state eagerly * Change language in description Co-authored-by: Hailey <me@haileyok.com> * prettier * add `Toggle.Platform` * extract out mutation hook + error state * rm useless cache mutation * disambiguate isError and isPending * rm unused isError --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* [D1X] Pull out follow-backs for higher signal (#4719)Eric Bailey2024-07-041-0/+3
| | | | | | | | | | | * Pull out follow-backs for higher signal * Gate it * Fix early gate check --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Starter Packs (#4332)Hailey2024-06-211-3/+8
| | | | | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Server-side thread mutes (#4518)Samuel Newman2024-06-181-3/+0
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* remove resolution from post thread (#4297)Hailey2024-06-031-5/+13
| | | | | | | | | | | | | | | | | | | | | * remove resolution from post thread nit completely remove did cache lookup move cache check for did to `usePostThreadQuery` remove resolution from post thread * helper function * simplify * simplify search too * fix missing check for root or parent quoted post 🤯 * fix thread traversal
* Shadows (#4265)Eric Bailey2024-05-311-1/+26
|
* Replace getAgent() with reading agent (#4243)dan2024-05-281-2/+2
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* Performance improvements: structural sharing & moderation opts context (#3785)Paul Frazee2024-04-301-1/+1
| | | | | | | | | | | | | * Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
* [Session] Add `useAgent` hook and replace (#3706)Eric Bailey2024-04-251-1/+2
| | | | | | | | | | | * Hook it up * Memoize getAgent method * Use one shared reference --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Drill `getAgent` into `notifications/utils` (#3703)Eric Bailey2024-04-251-0/+2
| | | | | | | | | | | * Drill into notifications/util (cherry picked from commit 84b535ed54f4fe93debcd198809bb184519c3507) * Thread getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Extract query key roots to constants (#3404)dan2024-04-041-9/+11
| | | | | | | * Extract query key roots to constants * Dedupe labelers-detailed-info * Align naming
* Prefer full posts for post thread placeholder (#2943)dan2024-02-201-17/+0
| | | | | | | | | * Revert "Prefer post over quote when finding cached post (#2935)" This reverts commit da62a77f05258ce2b0609248cb5677c2406a4e63. * Prefer full posts for post thread placeholder * Clarify with a comment
* Fix notification mark-read behaviors (#2696)Paul Frazee2024-01-301-9/+11
| | | | | * Mark read on first notifs page fetch always; this is less optimal but it fixes a case where when the first full page's unreads are all filtered out * Use the pre-filter indexedAt for updateSeen
* 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-131-26/+18
| | | | | * 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-111-0/+1
| | | | | | | * 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-091-11/+40
| | | | | | | | | | | | | | | * 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
|
* 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>
* Refactor the notifications to cache and reuse results from the unread-notifs ↵Paul Frazee2023-11-291-180/+37
| | | | | | | 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-291-4/+4
| | | | | * 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
* 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-161-4/+3
|
* 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-121-0/+212
* 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>