Commit Graph

35 Commits

Author SHA1 Message Date
Julien Calixte
4104e138c1 refactor(notes): rename title font to heading font
These fonts apply to markdown headings (h1-h6), so "heading" is more
accurate than "title". Renames the chosen*Font field, store action, and
the --heading-font-family CSS variable.

Keeps backward compatibility: .remanso.json still honors the legacy `t`
key (alongside the new `h`), and a saved `chosenTitleFont` in
localStorage is migrated on load so existing preferences survive.
2026-06-30 00:41:54 +02:00
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
9f75e7971d fix(layout): cache pageWidth in localStorage to avoid render glitch
The page width from .remanso.json was only applied after an async
PouchDB + network fetch, so notes briefly rendered at the default
500px before snapping to the configured value. Persist pageWidth
alongside the existing font cache (key renamed to remanso:layout:*),
so it is read synchronously during setUserRepo and applied before
the first render. Also always reset --note-width with a default
fallback to prevent stale values leaking across repo navigation.
2026-04-26 13:44:10 +02:00
Julien Calixte
ee8bbd4a37 feat(config): add pageWidth setting to .remanso.json
Allows repo owners to configure note column width via `"pageWidth": "700px"` in .remanso.json. Applies the value to the --note-width CSS variable and invalidates the cached width so resize/overlay hooks pick it up.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 23:34:26 +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
20e9538983 feat: mv profile to footer 2026-03-28 20:24:08 +01: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
b14f5f1dc1 Merge branch 'main' of github.com:remanso-space/remanso 2026-02-19 20:42:21 +01:00
Julien Calixte
bb06274c41 fix: apply default font immediately on mount before settings load 2026-02-19 17:41:44 +01:00
Julien Calixte
0ce44404a4 feat: change default font family 2026-02-14 22:23:53 +01:00
Julien Calixte
08e9c41c4d deps: use coollabs instead of google fonts 2026-01-22 22:52:29 +01:00
Julien Calixte
3e417ca271 fix: Google Font
feat: add a todo view
2026-01-19 00:37:55 +01:00
Julien Calixte
df250750e5 feat: add chosen font size 2025-07-06 15:49:58 +02:00
Julien Calixte
b2250b2b95 feat: add fontFamilies array 2025-07-06 11:23:15 +02:00
Julien Calixte
0f119d1f6a prune: remove theme in litenote config 2025-02-11 22:21:32 +01:00
Julien Calixte
e2285f8128 feat: take into account font size (#11) 2025-02-11 21:56:07 +01:00
Julien Calixte
8090f838be download font integration 2024-04-06 14:50:10 +02: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
Julien Calixte
0e52b16b1b Feat/GitHub auth (#6)
*  (sign in) create sign in to github button

*  (github login) login via github button

* 💄 (homepage)

*  (date fns)

*  (github login) refresh token when token expired
2021-05-01 23:35:38 +02:00
373ba812f5 (litenote config) implement dark mode on notes
Closes #5
2021-03-27 17:00:50 +01:00
935acb6813 🐛 (user settings) reset user settings with tree 2021-03-24 22:48:13 +01:00
556ddb7f1e (user settings) init user settings with .litenote.json 2021-03-24 22:35:41 +01:00
e199c68d68 ♻️ (store) use a store to store readme and files 2021-03-24 21:23:23 +01:00