about summary refs log tree commit diff
path: root/src/state/queries
Commit message (Collapse)AuthorAgeFilesLines
...
* PWI Base (#1964)Eric Bailey2023-11-214-63/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Base work for public view * Make default moderation settings more restrictive * Fix type * Handle showing sign-in on authed actions * Fix hoc logic * Simplify prefs logic * Remove duplicate method * Add todo * Clean up RepostButton.web * Fix x button color * Add todo * Retain existing label prefs for now, use separate logged out settings * Clean up useAuthedMethod, rename to useRequireAuth * Add todos * Move dismiss logic to withAuthRequired * Ooops add web * Block public view in prod * Add todo * Fix bad import
* Do less work (#1953)dan2023-11-171-15/+5
|
* 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-1631-218/+157
|
* Revise cache times (#1942)Eric Bailey2023-11-1614-14/+14
| | | (cherry picked from commit 1be2060a2b81741dcf9a392160af87d2747b3497)
* Caching heuristics (#1938)Eric Bailey2023-11-1630-22/+122
| | | | | * Tempfix profile load * First pass at staleTime
* Add a mutation queue to fix race conditions in toggles (#1933)dan2023-11-161-67/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prototype a queue * Track both current and pending actions * Skip unnecessary actions * Commit last confirmed state to shadow * Thread state through actions over time * Fix the logic to skip redundant mutations * Track status * Extract an abstraction * Fix standalone mutations * Add types * Move to another file * Return stable function * Clean up * Use queue for muting * Use queue for blocking * Convert other follow buttons * Don't export non-queue mutations * Properly handle canceled tasks * Fix copy paste
* Refactor account-creation to use react-query and a reducer (react-query ↵Paul Frazee2023-11-161-5/+15
| | | | | | | | | refactor) (#1931) * Refactor account-creation to use react-query and a reducer * Add translations * Missing translate
* Refactor app passwords to use react-query (#1932)Paul Frazee2023-11-161-0/+56
|
* Refactor ChangeHandle modal (#1929)Eric Bailey2023-11-162-1/+50
| | | | | | | | | | | | | * Refactor ChangeHandle to use new methods * Better telemetry * Remove unused logic * Remove caching * Add error message * Persist service changes, don't fall back on change handle
* Refactor invites modal (#1930)Eric Bailey2023-11-161-0/+36
| | | | | | | * Refactor invites modal * Replace in drawer * Delete stuff from me model
* Fix memo params causing tuner to lose state (#1924)Paul Frazee2023-11-151-2/+4
|
* Fix onboarding follows (#1922)Eric Bailey2023-11-151-1/+0
|
* Improve types (#1921)Eric Bailey2023-11-151-2/+2
|
* Remove post thread (#1920)Eric Bailey2023-11-151-3/+3
| | | | | | | * Delete post-thread model * Remove post-thread-item * Remove unused types
* Update post embed fetching to use new methods (#1916)Eric Bailey2023-11-151-2/+36
| | | | | * Update post embed fetching to use new methods * Use session agent
* Search page (#1912)Eric Bailey2023-11-153-12/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Desktop web work * Mobile search * Dedupe suggestions * Clean up and reorg * Cleanup * Cleanup * Use Pager * Delete unused code * Fix conflicts * Remove search ui model * Soft reset * Fix scrollable results, remove observer * Use correct ScrollView * Clean up layout --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Autocomplete updates (react-query refactor) (#1911)Paul Frazee2023-11-151-122/+47
| | | | | | | | | | | | | * Unify the autocomplete code; drop fuse * Persist autocomplete results while they're in progress * Commit lockfile * Use ReturnType helper --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Post PostLikedBy and PostRepostedBy to RQ (#1913)dan2023-11-152-0/+64
| | | | | * Port PostRepostedBy to RQ * Port PostLikedBy to RQ
* Port Profile Followers/Follows to RQ (#1893)dan2023-11-143-2/+90
| | | | | | | | | | | | | | | | | * Port user followers to RQ * Port user follows to RQ * Start porting FollowButton to RQ * Fix RQ key * Check pending * Fix shadow and pending states * Rm unused * Remove last usage of useFollowProfile
* Desktop user autocomplete search (#1906)Eric Bailey2023-11-141-3/+59
| | | | | | | | | | | * Fix notification provider order, add comments * Remove log * Add actor typeahead handling * Trim down desktop search styles and hooks * Clean up moderation
* Fix notification provider order, add comments (#1905)Eric Bailey2023-11-141-1/+1
| | | | | * Fix notification provider order, add comments * Remove log
* Fix self mention, resolve handle (#1903)Eric Bailey2023-11-141-0/+25
| | | | | | | | | * Fix self mention, resolve handle * Use queryClient * Fix type * Remove staleTime
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-1/+53
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor onboarding suggested follows (#1897)Eric Bailey2023-11-141-0/+75
| | | | | | | | | | | | | * Refactor onboarding suggested follows * Fix error state, track call * Remove todo * Use flatmap * Add additional try catch * Remove todo
* Update Muted and Blocked accounts screens (react-query refactor) (#1892)Paul Frazee2023-11-133-0/+64
| | | | | | | * Add my-blocked-accounts and my-muted-accounts queries * Update ProfileCard to use the profile shadow cache and useModerationOpts * Update blocked accounts and muted accounts screens
* Profile cleanup (react-query refactor) (#1891)Paul Frazee2023-11-132-2/+9
| | | | | | | | | * Only fetch profile tab content when focused * Fix keys * Add missing behaviors to post tabs * Delete old profile mobx model
* Add feedgens tab to profile (#1889)Paul Frazee2023-11-132-1/+32
|
* Factor out store from post-feed query (#1888)Eric Bailey2023-11-131-9/+11
|
* Factor our feed source model (#1887)Eric Bailey2023-11-133-33/+88
| | | | | | | | | | | | | | | | | | | | | * Refactor first onboarding step * Replace old FeedSourceCard * Clean up CustomFeedEmbed * Remove discover feeds model * Refactor ProfileFeed screen * Remove useCustomFeed * Delete some unused models * Rip out more prefs * Factor out treeView from thread comp * Improve last commit
* More profile refactor updates (#1886)Paul Frazee2023-11-132-3/+127
| | | | | | | | | | | * Update the profile avatar lightbox * Update profile editor * Add dynamic likes tab * Add dynamic feeds and lists tabs * Implement lists listing on profiles
* Refactor profile screen to use new pager and react-query (#1870)dan2023-11-132-10/+171
| | | | | | | | | | | | | * 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>
* More prefs cleanup (#1882)Eric Bailey2023-11-132-12/+125
| | | | | | | | | | | * Update useHomeTabs * Use queryClient to fetch * Replace useHomeTabs and useDesktopRightNavItems * Fix type error * Some cleanup
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-124-2/+393
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Refactor My Feeds (#1877)Eric Bailey2023-11-121-2/+68
| | | | | | | * Refactor My Feeds screen * Remove unused feed UI models * Add back PTR
* Refactor lists to use new queries (#1875)Paul Frazee2023-11-127-0/+735
| | | | | | | | | | | | | | | | | | | | | | | | | * Refactor lists queries to react-query * Delete old lists-list model * Implement list, list-members, and list-memberships react-queries * Update CreateOrEditList modal * First pass at my-follows and actor-autocomplete queries * Update ListAddUserModal to use new queries, change to ListAddRemoveUsersModal * Update UserAddRemoveLists modal * Remove old TODO * Fix indent, autocomplete query * Add a todo --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Eric/preferences (#1873)Eric Bailey2023-11-126-0/+615
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add initial preferences query, couple mutations * Remove unused * Clean up labels, migrate getModerationOpts * Add birth date handling * Migrate feed prefs * Migrate thread view prefs * Migrate homeFeed to use existing key name * Fix up saved feeds in response, no impl yet * Migrate saved feeds to new hooks * Clean up more of preferences * Fix PreferencesThreads load state * Fix modal dismissal * Small spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Refactor feeds to use react-query (#1862)Paul Frazee2023-11-104-64/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update to react-query v5 * Introduce post-feed react query * Add feed refresh behaviors * Only fetch feeds of visible pages * Implement polling for latest on feeds * Add moderation filtering to slices * Handle block errors * Update feed error messages * Remove old models * Replace simple-feed option with disable-tuner option * Add missing useMemo * Implement the mergefeed and fixes to polling * Correctly handle failed load more state * Improve error and empty state behaviors * Clearer naming
* Follow conventions for query, use isDirty flag in session store to avoid ↵Eric Bailey2023-11-102-0/+18
| | | | unneccessary writes
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-093-0/+350
* 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