about summary refs log tree commit diff
path: root/src/state/queries/notifications/unread.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Log cleanup (#9029)Samuel Newman2025-09-111-5/+2
| | | | | | | | | * change warn to log * networkerror check on failed to check unread notifications * rm both logs * tweak imports
* Add displayName to contexts (#8814)Samuel Newman2025-08-141-0/+2
|
* Upgrade prettier to 3.6 (#8558)Samuel Newman2025-06-231-5/+5
| | | | | | | * upgrade prettier * run prettier * more files
* [Notifications] Add a Mentions tab (#7044)dan2024-12-121-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Sort imports (#6009)dan2024-10-291-1/+1
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Remove ungroup_follow_backs gate (#4893)Eric Bailey2024-08-081-4/+1
|
* [D1X] Pull out follow-backs for higher signal (#4719)Eric Bailey2024-07-041-1/+4
| | | | | | | | | | | * Pull out follow-backs for higher signal * Gate it * Fix early gate check --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Server-side thread mutes (#4518)Samuel Newman2024-06-181-4/+1
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* Use the proper logic on iOS to increment the badge (#4233)Hailey2024-06-071-2/+2
|
* Replace getAgent() with reading agent (#4243)dan2024-05-281-5/+5
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* Disable badge incrementing for DMs (#4088)Hailey2024-05-171-1/+1
| | | | | | | | | | | * disable badge increments for dms * revert decrementing in js for dms * reset badge on read notifications * remove some other code * prevent duplicate notification events
* Properly update badge for other unread notifications (#4052)Hailey2024-05-161-8/+2
| | | | | | | | | | | | | | | * decrement badge count for chats * handle decrement in `useMarkAsRead` * remove async * remove setting badge count * oops * update the number correctly * nit
* 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-2/+3
| | | | | | | | | | | * 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/+1
| | | | | | | | | | | * Drill into notifications/util (cherry picked from commit 84b535ed54f4fe93debcd198809bb184519c3507) * Thread getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix stale Notifications after push (#3507)dan2024-04-121-7/+27
|
* Fix notification mark-read behaviors (#2696)Paul Frazee2024-01-301-4/+6
| | | | | * 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
* Reduce some Sentry logs (#2549)Eric Bailey2024-01-161-1/+1
| | | | | * Reduce some Sentry logs * Update tests
* Reduce polling (#2465)Paul Frazee2024-01-101-3/+28
| | | | | | | | | | | | | * 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
* Reduce web requests (#2420)Paul Frazee2024-01-041-0/+4
| | | | | * Stop auto-refetching app passwords and invites on an interval * Don't poll for posts or notifs if the app/tab isnt focused
* A couple notifications fixes (#2327)Paul Frazee2023-12-271-0/+3
| | | | | * Clear the app badge notif count on markallread * Fix like notifications on custom feeds
* Additional reductions in request traffic (#2169)Paul Frazee2023-12-111-0/+4
| | | | | | | * 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-9/+8
| | | | | | | | | | | | | | | * 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
* Maintain some feed data to avoid needless glimmers (#2054)Paul Frazee2023-11-301-1/+2
|
* 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-291-34/+95
| | | | | | | 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/+2
| | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* Don't check unread if session doesn't exist (#2008)Eric Bailey2023-11-271-1/+5
|
* Move the current agent to a global and reset RQ queries on agent change (#1946)Paul Frazee2023-11-161-5/+7
|
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-121-0/+113
* 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>