about summary refs log tree commit diff
path: root/src/state/cache/profile-shadow.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix: typo in filename list-converations (#7036)Renan Mav2024-12-101-1/+1
|
* Show quote posts (#4865)Samuel Newman2024-08-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* 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)
* Thread queryClient explicitly through (#3328)dan2024-04-031-6/+9
| | | | | | | * 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
* Various search fixes (#2145)Paul Frazee2023-12-071-0/+2
| | | | | | | * 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-60/+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-32/+38
| | | | | | | | | | | | | | | * 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-7/+18
|
* 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>