about summary refs log tree commit diff
path: root/src/state/cache/post-shadow.ts
Commit message (Collapse)AuthorAgeFilesLines
* 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-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix optimistic like/repost (#3503)dan2024-04-121-14/+18
|
* Thread queryClient explicitly through (#3328)dan2024-04-031-6/+12
| | | | | | | * Pass queryClient explicitly to resetProfilePostsQueries * Pass queryClient explicitly to updatePostShadow * Pass queryClient explicitly to updateProfileShadow
* Derive shadow like count (#2616)dan2024-01-251-5/+23
|
* Various search fixes (#2145)Paul Frazee2023-12-071-0/+4
| | | | | | | * 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-301-64/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-211-29/+37
| | | | | | | | | | | | | | | * 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-171-4/+6
|
* Add Shadow type (#1900)Paul Frazee2023-11-141-3/+14
|
* 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