about summary refs log tree commit diff
path: root/src/state/session/index.tsx
Commit message (Collapse)AuthorAgeFilesLines
...
* Add expired log (#2456)Eric Bailey2024-01-101-0/+2
| | | | | * Add expired log * Add service
* Do not nuke session on unknown backend errors (#2399)Eric Bailey2024-01-081-23/+43
| | | | | | | | | | | * Do not nuke session on unknown backend errors * Restore existing functionality * Use new event * Kick user out to sign in * Remove unstable
* Add some more logging (#2402)Eric Bailey2024-01-021-8/+4
| | | | | | | | | * Add a few logs * Report unknown create account errors separately * Downgrade to warn * Nvm
* fix Create Account metrics (#2242)Ansh2023-12-181-0/+2
|
* Add fallback to email reminder modal (#2193)Eric Bailey2023-12-121-0/+9
| | | | | * Add fallback to email reminder modal * Add more debug
* Add back isInitialLoad to session (#2155)Eric Bailey2023-12-091-0/+8
|
* More session improvements (#2129)Eric Bailey2023-12-071-31/+65
| | | | | | | | | * More session improvements * Drop resume session retries from 3 to 1 --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Move analytics out of init (#2115)dan2023-12-061-7/+3
| | | | | | | | | | | | | * Remove listenSessionLoaded from analytics * Move analytics init call to navigation ready * Remove zod dependency from analytics * Mirror changes on the web * Delete listenSessionLoaded * Only set up listeners once
* Remove getSession waterfall (#2112)dan2023-12-061-23/+55
|
* Check Analytics (#2106)Ansh2023-12-061-0/+3
| | | | | | | | | | | * fix sign in event tracking * add missing analytics events * add more missing analytics * fix like and unrepost event tracking * reset onEndReachedThreshold
* Improvements to persisted state migration (#2098)Eric Bailey2023-12-051-2/+2
| | | | | | | | | | | * Fix session email/emailConfirmed types, update usage for safer access * Handle fallback better, better errors * Better handling, add test * Add test for default data * Remove fallback, not needed, update logs
* Get more rigorous about getAgent() consistency (#2026)Paul Frazee2023-11-291-0/+6
| | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* [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
* PWI: Profile (#1982)dan2023-11-231-1/+4
| | | | | | | * PWI: Profile * Show replies conditionally * Dismiss modals on auth action
* PWI Base (#1964)Eric Bailey2023-11-211-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Move the current agent to a global and reset RQ queries on agent change (#1946)Paul Frazee2023-11-161-11/+20
|
* Refactor ChangeHandle modal (#1929)Eric Bailey2023-11-161-12/+27
| | | | | | | | | | | | | * 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
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-151-2/+7
| | | | | | | | | | | * 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 clear account behavior, ensure agent is set (#1881)Eric Bailey2023-11-131-2/+8
|
* Pare down session as much as possibleEric Bailey2023-11-101-15/+21
|
* Clean up isDirty handlingEric Bailey2023-11-101-15/+18
|
* Swap orderEric Bailey2023-11-101-1/+1
|
* Follow conventions for query, use isDirty flag in session store to avoid ↵Eric Bailey2023-11-101-6/+14
| | | | unneccessary writes
* Cleanup getProfileEric Bailey2023-11-091-4/+1
|
* Web login/signup and shellEric Bailey2023-11-091-48/+130
|
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-091-0/+2
| | | | | | | | | | | | | | | | | | | * 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
* First pass at a session handler (#1850)Eric Bailey2023-11-091-0/+384
* First pass at a session handler * TODOs * Fix recursion * Couple more things * Add back resume session concept * Handle ready * Cleanup of initial loading states * Handle init failure * Cleanup * Remove account * Add updateCurrentAccount * Remove log * Cleanup * Integrate removeAccount * Add hasSession * Add to App.native, harden migration * Use effect to persist data