about summary refs log tree commit diff
path: root/src/state/queries
Commit message (Collapse)AuthorAgeFilesLines
...
* | Adjust stale-caches and dont group read&unread notifs together (#2041)Paul Frazee2023-11-2914-26/+8
| | | | | | | | | | | | | | | | | | * Dont group read & unread notifications together * Remove and reduce some stale cache times * Keep the staleTime on the post-feed * Bring back the load-bearing staletime on profile
* | Apply feed preferences (react-query refactor) (#2040)Paul Frazee2023-11-292-76/+89
| | | | | | | | | | * Actually implement the feed tuners hook * Move feed-tuner pass into select() to have it apply immediately on change
* | Handle nsfw feeds in public view (#2035)Eric Bailey2023-11-291-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle nsfw feeds in public view * Translate * Refactor, new approach * Translate * Copy * Translate * Revert changes to Feed * Remove unused retry * Translate
* | Slightly less verbose variablePaul Frazee2023-11-291-3/+3
| |
* | Merge branch '2011-link-in-feeds-tab-bar' of ↵Paul Frazee2023-11-291-2/+9
|\ \ | | | | | | | | | https://github.com/CooperEdmunds/social-app into CooperEdmunds-2011-link-in-feeds-tab-bar
| * | Add hasPinnedCustomFeedOrList to usePinnedFeedsInfos hookCooper Edmunds2023-11-291-2/+9
| | |
* | | Fix state lifecycle management with post-feed query, solving the duplicate ↵Paul Frazee2023-11-291-69/+74
| | | | | | | | | | | | | | | | | | | | | key issue (#2034) * Assign keys to feed slices via a counter, to enable duplicate items in the feed if needed * Move post-feed query state into the query's page params to consistently bind their lifecycles
* | | 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-294-215/+347
| | | | | | | | | | | | | | | | | | | | | 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-295-49/+29
|/ / | | | | | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* | Fix pinned feeds mutation issue (#2016)Eric Bailey2023-11-281-8/+1
| |
* | Handle other feed auth response (#2012)Eric Bailey2023-11-281-0/+3
|/
* Ensure we use following feed if merge is disabled (#2005)Eric Bailey2023-11-271-1/+1
|
* Restore post-thread caching behaviors (react-query refactor) (#2010)Paul Frazee2023-11-274-19/+283
| | | | | | | | | | | | | | | | | | | | | * Rework resolve-did and resolve-uri queries to be smarter about cache reuse * Precache handle resolutions * Remove old unused code * Load placeholder threads from the post-feed and notifications-feed queries * Remove logs * Fix bad ref * Add loading spinners to the cache-loading thread view * Scroll replies into view when loading threads * Add caching within a thread * Fix: dont show bottom border when the child spinner is active
* Don't check unread if session doesn't exist (#2008)Eric Bailey2023-11-271-1/+5
|
* Filter out blocked posts from thread view (#2006)Eric Bailey2023-11-271-3/+4
|
* Fall back for non-public feeds (#1988)Eric Bailey2023-11-241-0/+29
|
* 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