about summary refs log tree commit diff
path: root/src/state/queries
Commit message (Collapse)AuthorAgeFilesLines
...
* Update pwi endpoint (#2116)Paul Frazee2023-12-061-1/+1
|
* Enable structural sharing for preference query (#2113)dan2023-12-061-0/+1
|
* Check Analytics (#2106)Ansh2023-12-062-0/+9
| | | | | | | | | | | * fix sign in event tracking * add missing analytics events * add more missing analytics * fix like and unrepost event tracking * reset onEndReachedThreshold
* Surface raw server error if exists (#2096)Eric Bailey2023-12-051-3/+15
| | | | | | | | | | | * Surface raw server error if exists * Update copy * Update translation files --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix some typesPaul Frazee2023-12-052-2/+3
|
* Perf: Include quote posts in the post-thread placeholder (#2104)Paul Frazee2023-12-054-1/+96
|
* Fix: correctly identify if the screen is focused when handling soft resets ↵Paul Frazee2023-12-051-1/+1
| | | | on post feeds (#2100)
* Update feeds on post created (#2085)Paul Frazee2023-12-041-1/+1
|
* Fix: correctly partial-match when calling truncateAndInvalidate() (#2088)Paul Frazee2023-12-041-3/+3
|
* Better handle feed auth failures (#2060)Eric Bailey2023-12-011-6/+7
| | | | | * Better handle feed auth failures * Add comment
* Improve unread notif tracking (#2056)Paul Frazee2023-11-301-13/+21
|
* Maintain some feed data to avoid needless glimmers (#2054)Paul Frazee2023-11-302-1/+19
|
* Merge branch 'invite-code-warning' of ↵Paul Frazee2023-11-301-1/+20
|\ | | | | | | https://github.com/mozzius/bluesky-official-app into mozzius-invite-code-warning
| * Merge remote-tracking branch 'upstream/main' into invite-code-warningSamuel Newman2023-11-3020-396/+547
| |\
| * | show informative message when token scope is wrongSamuel Newman2023-11-301-1/+20
| | |
* | | Beep boop (#2051)Eric Bailey2023-11-301-4/+7
| | |
* | | Rewrite the shadow logic to look inside the cache (#2045)dan2023-11-3012-47/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Fix lag when switching tabs (#2046)dan2023-11-301-38/+43
| |/ |/|
* | 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