Commit Graph

16 Commits

Author SHA1 Message Date
Julien Calixte
bb3a4a4dad test: cover post-merge gaps in utils, services, and hooks
All checks were successful
CI / verify (push) Successful in 59s
Adds specs for the files added or modified in the recent merge that
weren't yet covered: oauthReturnPath, withATProtoImages, link,
displayLanguage, and the useGitHubContent / useImageUpload /
useNoteFreshness hooks. Locks in the new pullLatest contract
({raw, failureStatus}) and the fetchLatestSha branch semantics
(ok/unauthorized/offline).
2026-06-06 23:36:17 +02:00
Julien Calixte
d99672dbd8 fix(auth): return to origin path after GitHub login
Sign-in saves the current path in sessionStorage so the OAuth callback
can route back instead of always landing on Home.
2026-05-29 16:49:44 +02:00
Julien Calixte
c412c75cfd feat(auth): add force option and runWithAuthRetry helper
GitHub refresh tokens are single-use, so concurrent refreshes race and
the loser ends up with a revoked token — dedupe in-flight calls.
2026-05-17 21:10:13 +02:00
Julien Calixte
b003a3e008 perf: move PouchDB/IndexedDB operations to a Web Worker
All database reads and writes now run off the main thread via a
dedicated worker, eliminating IndexedDB overhead from the frame budget.

- Create data.worker.ts exposing the Data class via Comlink
- Refactor data.ts to export a Comlink-wrapped proxy and a standalone
  generateId() pure function (workers can't expose sync methods cleanly)
- Update all 10 call sites to import generateId directly instead of
  calling data.generateId()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 11:27:45 +02:00
Julien Calixte
5f48aa5690 chore: lint and fmt 2026-03-28 09:38:55 +01:00
Julien Calixte
dfdd646eb1 deps: migrate to api.remanso.space for everything now 2026-03-21 10:49:39 +01:00
Julien Calixte
bd9d97b0af trying to be as little blocking as possible 2023-08-17 20:06:32 +02:00
Julien Calixte
2cab8c8e3f autoimport with eslint now 2023-08-14 18:04:27 +02:00
84ba5fcd46 🐛 (login) refresh token 15 minutes before expiration 2021-05-13 16:34:30 +02:00
fce3fd49cf Merge branch 'main' of github.com:lite-note/lite-note into main 2021-05-13 16:27:06 +02:00
9dfac11a14 --wip-- [skip ci] 2021-05-13 16:26:03 +02:00
Julien Calixte
a98f30cfcd 🔇 (token) 2021-05-09 01:07:05 +02:00
Julien Calixte
d33fa18b9c 🐛 (refresh) refresh correct token 2021-05-02 18:33:46 +02:00
Julien Calixte
56432d81c8 🐛 (sign ing) update expiration date 2021-05-02 18:01:11 +02:00
Julien Calixte
7a5275dd2e (refresh) refresh when requesti… 2021-05-02 17:21:24 +02:00
Julien Calixte
e88584e24d ♻️ (sign in) 2021-05-02 16:47:48 +02:00