about summary refs log tree commit diff
path: root/src/state/cache
Commit message (Collapse)AuthorAgeFilesLines
* fix: typo in filename list-converations (#7036)Renan Mav2024-12-101-1/+1
|
* Pinned posts (#5055)Samuel Newman2024-09-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add to dropdown menu * use normal profile mutation hook * add pin as reason * request pins * shadow update * rm logs * get prev pinned from getProfile * fix toasts * invalidate after appview ready * don't mutate params * rm log * use checkCommited rather than manual whenAppViewReady * move to mutation * even more optimistic optimistic update * allow pins in `posts_and_author_threads` * update @atproto/api * add reasonPin type * fix strange type error in unrelated query * another missing type
* Optimistic hidden replies (#4977)Eric Bailey2024-08-231-13/+0
|
* Prep threadgate shadow hack (#4970)Eric Bailey2024-08-211-0/+13
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-211-1/+19
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show quote posts (#4865)Samuel Newman2024-08-212-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * show quote posts * fix filter * fix keyExtractor * move likedby and repostedby to new file structure * use modern list component * remove relative imports * update quotes count after quoting * call `onPost` after updating quote count * Revert "update quotes count after quoting" This reverts commit 1f1887730a210c57c1e5a0eb0f47c42c42cf1b4b. * implement * update like count in quotes list * only add `onPostReply` where needed * Filter quotes with detached embeds * Bump SDK * Don't show error for no results --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Migrate local thread mutes (#4523)Samuel Newman2024-06-191-1/+54
| | | | | | | | | | | | | | | * migrate thread mutes * don't try and clear if not logged in yet * migrate mutes one at a time * write before mutating * only migrate mutes of self posts * use /** @deprecated */ * shouldLike -> shouldMute
* Server-side thread mutes (#4518)Samuel Newman2024-06-181-0/+44
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* Add known followers to shadow cache (#4517)Eric Bailey2024-06-141-0/+2
|
* Shadows (#4265)Eric Bailey2024-05-311-0/+4
|
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-141-0/+2
| | | | | | | | | | | * Refactor ChatListItem for mod state * Refactor Conversation Header for mod state * Invalidate query for list when blocking/unblocking * Remove unused prop, restore border * Add mutations, hook up profile shadow to list query, use shadow-aware query for convo (#4024)
* Fix optimistic like/repost (#3503)dan2024-04-121-14/+18
|
* Thread queryClient explicitly through (#3328)dan2024-04-032-12/+21
| | | | | | | * Pass queryClient explicitly to resetProfilePostsQueries * Pass queryClient explicitly to updatePostShadow * Pass queryClient explicitly to updateProfileShadow
* Fix flashes and jumps when opening profile (#2815)dan2024-02-081-11/+13
| | | | | | | | | | | * Don't reset the tree when profile loads fully * Give avatars a background color like placeholders * Prevent jumps due to rich text resolving * Rm log * Rm unused
* Derive shadow like count (#2616)dan2024-01-251-5/+23
|
* Various search fixes (#2145)Paul Frazee2023-12-072-0/+6
| | | | | | | * Add posts-search query to shadow cache search * Update user search to use correct endpoint * Fix: include cursor in post search
* Rewrite the shadow logic to look inside the cache (#2045)dan2023-11-302-124/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Shadow refactoring and improvements (#1959)dan2023-11-213-62/+82
| | | | | | | | | | | | | | | * 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
* Do less work (#1953)dan2023-11-172-8/+12
|
* Add Shadow type (#1900)Paul Frazee2023-11-143-10/+33
|
* Refactor profile screen to use new pager and react-query (#1870)dan2023-11-131-0/+88
| | | | | | | | | | | | | * 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 post threads to use react query (#1851)Paul Frazee2023-11-091-0/+90
* 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