about summary refs log tree commit diff
path: root/src/state/session/reducer.ts
Commit message (Collapse)AuthorAgeFilesLines
* Replace `resumeSession` with `getSession` in the email check (#8670)Samuel Newman2025-07-231-2/+40
| | | | | | | | | | | | | * replace resumeSession with getSession * copy lil type tweak from the other PR * Add partialRefreshSession to session API context, use session state to infer state further down tree * Review --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Move global "Sign out" out of the current account row (#4941)dan2024-08-151-2/+21
| | | | | | | | | | | | | | | | | | | | | | | * Rename logout to logoutEveryAccount * Add logoutCurrentAccount() * Make all "Log out" buttons refer to current account Each of these usages is completely contextual and refers to a specific account. * Add Sign out of all accounts to Settings * Move single account Sign Out below as well * Prompt on account removal * Add Other Accounts header to reduce ambiguity * Spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Don't kick to login screen on network error (#4911)dan2024-08-131-6/+2
| | | | | | | | | | | | | | | | | | | | | * Don't kick the user on network errors * Track online status for RQ * Use health endpoint * Update test with new behavior * Only poll while offline * Handle races between the check and network events * Reduce the poll kickoff interval * Don't cache partially fetched pinned feeds This isn't a new issue but it's more prominent with the offline handling. We're currently silently caching pinned infos that failed to fetch. This avoids showing a big spinner on failure but it also kills all feeds which is very confusing. If the request to get feed gens fails, let's fail the whole query. Then it can be retried.
* [Session] Logging (#4476)dan2024-06-201-1/+4
| | | | | | | * Add session logging (console.log) * Hook it up for real * Send type separately
* [Session] Persist updates from inactive agentDan Abramov2024-05-231-2/+7
|
* Replace updateCurrentAccount() with refreshSession() (#3910)dan2024-05-081-26/+0
| | | Replace updateCurrentAccount() with resumeSession()
* Add session reducer tests (#3860)dan2024-05-081-0/+1
|
* [Session] Code cleanup (#3854)dan2024-05-081-0/+188
* Split utils into files * Move reducer to another file * Write types explicitly * Remove unnnecessary check * Move things around a bit * Move more stuff into agent factories * Move more stuff into agent * Fix gates await * Clarify comments * Enforce more via types * Nit * initSession -> resumeSession * Protect against races * Make agent opaque to reducer * Check using plain condition