about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
...
* | Apply feed preferences (react-query refactor) (#2040)Paul Frazee2023-11-293-85/+102
| | | | | | | | | | * 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-296-49/+35
|/ / | | | | | | | | * 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
|
* Add more debugging to auth (#2009)Eric Bailey2023-11-271-1/+29
|
* Filter out blocked posts from thread view (#2006)Eric Bailey2023-11-271-3/+4
|
* Raise levels of some logs during pre-release (#1994)Eric Bailey2023-11-262-6/+9
|
* [PWI] Clarify different ways of clearing current account/logout (#1991)Eric Bailey2023-11-241-17/+29
| | | | | * Clarify different ways of clearing current account/logout * Reorder log
* Fall back for non-public feeds (#1988)Eric Bailey2023-11-241-0/+29
|
* PWI: Refactor Shell (#1989)dan2023-11-241-18/+13
| | | | | | | | | | | | | | | | | | | * Vendor createNativeStackNavigator for further tweaks * Completely disable withAuthRequired * Render LoggedOut for protected routes * Move web shell into the navigator * Simplify the logic * Add login modal * Delete withAuthRequired * Reset app state on session change * Move TS suppression
* PWI: Profile (#1982)dan2023-11-231-1/+4
| | | | | | | * PWI: Profile * Show replies conditionally * Dismiss modals on auth action
* Shadow refactoring and improvements (#1959)dan2023-11-213-62/+82
| | | | | | | | | | | | | | | * 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
* PWI Base (#1964)Eric Bailey2023-11-217-76/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add dev-only button to clear storage (#1965)Eric Bailey2023-11-212-0/+21
| | | | | | | * Add dev-only button to clear storage * Add legacy storage clearing too * Use try/catch
* Hindi Internationalization (#1914)Ansh2023-11-203-0/+9
| | | | | | | | | | | | | | | | | | | | | | * get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
* Do less work (#1953)dan2023-11-173-23/+17
|
* Use non-reactive callbacks for some methods (#1948)dan2023-11-163-39/+34
| | | | | | | * Use non-reactive callbacks for some methods * Remove unnecessary state * Use non-reactive callbacks for modals
* 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-1632-229/+177
|
* 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
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-1611-661/+1
| | | | | | | | | | | | | | | | | | | | | * Update login page to use service query * Update modal to use session instead of store * Move image sizes cache off store * Update settings to no longer use store * Update link-meta fetch to use agent instead of rootstore * Remove deprecated resolveName() * Delete deprecated link-metas cache * Delete deprecated posts cache * Delete all remaining mobx models, including the root store * Strip out unused mobx observer wrappers
* Refactor account-creation to use react-query and a reducer (react-query ↵Paul Frazee2023-11-162-228/+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-162-57/+56
|
* Refactor ChangeHandle modal (#1929)Eric Bailey2023-11-163-13/+77
| | | | | | | | | | | | | * 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-162-43/+37
| | | | | | | * Refactor invites modal * Replace in drawer * Delete stuff from me model
* Close active elems (react-query refactor) (#1926)Paul Frazee2023-11-166-25/+83
| | | | | | | | | * Refactor closeAny and closeAllActiveElements * Add close lightbox * Switch to hooks * Fixes
* Misc cleanup (#1925)Eric Bailey2023-11-158-883/+0
| | | | | | | | | | | | | * Remove unused prefs * Cleanup * Remove my-follows cache * Replace moderationOpts in ProfileCard comp * Replace moderationOpts in FeedSlice * Remove preferences model
* Factor lightbox out into hook/context (#1919)Paul Frazee2023-11-153-50/+88
|
* 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-154-485/+3
| | | | | | | * Delete post-thread model * Remove post-thread-item * Remove unused types
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-156-20/+88
| | | | | | | | | | | * Move tick-every-minute into a hook/context * Move soft-reset event out of the shell model * Update soft-reset listener on new search page * Implement session-loaded and session-dropped events * Update analytics and push-notifications to use new session system
* 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-154-81/+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-154-271/+64
| | | | | * Port PostRepostedBy to RQ * Port PostLikedBy to RQ
* Port Profile Followers/Follows to RQ (#1893)dan2023-11-145-244/+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