Stable spec: how plugins declare settings #608

Open
opened 2026-10-19 08:37:29 +00:00 by kayg · 4 comments
Owner

kayg (2026-10-19, Settings grill S9): plugins describe their settings (stable name, type, default, account-wide vs this device, label + one line); Settings draws them; custom UI only by exception (e.g. toolbar order). Write a stable spec (ADR) for it. Account settings live in a plain file in the user's data (file over app, S11); every setting has a unique deep link.

kayg (2026-10-19, Settings grill S9): plugins describe their settings (stable name, type, default, account-wide vs this device, label + one line); Settings draws them; custom UI only by exception (e.g. toolbar order). Write a stable spec (ADR) for it. Account settings live in a plain file in the user's data (file over app, S11); every setting has a unique deep link.
Author
Owner

Starting work on issue/608-settings-spec, based on origin/dev at b6136b1457. I am checking the existing decisions and code before drafting proposed ADRs 0055 and 0056.

Starting work on issue/608-settings-spec, based on origin/dev at b6136b1457d9dfdb9289c373432b44a1717f9495. I am checking the existing decisions and code before drafting proposed ADRs 0055 and 0056.
Author
Owner

Finding for the settings ADR. The web UI currently has Appearance, Editor, Keyboard, Account, and Devices in apps/web/src/components/Settings.svelte. App.svelte and BottomBar.svelte expose Settings as a Notes/Settings tab; Sidebar.svelte has an avatar display and a separate Settings button. The keyboard shortcut and Composer palette reach the Settings home, but Palette.svelte currently searches actions and notes, not individual settings. Account preferences use arbitrary dotted keys in users//prefs.json through crates/prefs/src/store.rs; the browser caches values and offline edits in IndexedDB through apps/web/src/lib/prefs-store.ts and prefs-sync.ts. Current account values include theme mode; pane widths and sidebar order stay in localStorage. These are the present behaviors the proposed declaration and file design will distinguish.

Finding for the settings ADR. The web UI currently has Appearance, Editor, Keyboard, Account, and Devices in apps/web/src/components/Settings.svelte. App.svelte and BottomBar.svelte expose Settings as a Notes/Settings tab; Sidebar.svelte has an avatar display and a separate Settings button. The keyboard shortcut and Composer palette reach the Settings home, but Palette.svelte currently searches actions and notes, not individual settings. Account preferences use arbitrary dotted keys in users/<id>/prefs.json through crates/prefs/src/store.rs; the browser caches values and offline edits in IndexedDB through apps/web/src/lib/prefs-store.ts and prefs-sync.ts. Current account values include theme mode; pane widths and sidebar order stay in localStorage. These are the present behaviors the proposed declaration and file design will distinguish.
Author
Owner

Finding for the address ADR. apps/web/src/lib/route.svelte.ts writes hash routes such as #/note/, with query state including bar and block; its legacyPath function converts older /notes/ and /day/ paths back to hash routes. crates/server/src/web.rs already serves index.html for paths that are not files, and apps/web/src/lib/pwa.svelte.ts registers /sw.js at the root; the worker serves the cached app shell for every navigation. Note IDs are UUIDv7 strings in crates/notes/src/watch.rs, while daily IDs use day-YYYY-MM-DD. apps/web/src/lib/editing.svelte.ts currently creates a six-character Math.random block id only when copying a block link; the server also uses that note-local ^id anchor. I found no hidden frontmatter setting in the current notes code.

Finding for the address ADR. apps/web/src/lib/route.svelte.ts writes hash routes such as #/note/<id>, with query state including bar and block; its legacyPath function converts older /notes/<id> and /day/<date> paths back to hash routes. crates/server/src/web.rs already serves index.html for paths that are not files, and apps/web/src/lib/pwa.svelte.ts registers /sw.js at the root; the worker serves the cached app shell for every navigation. Note IDs are UUIDv7 strings in crates/notes/src/watch.rs, while daily IDs use day-YYYY-MM-DD. apps/web/src/lib/editing.svelte.ts currently creates a six-character Math.random block id only when copying a block link; the server also uses that note-local ^id anchor. I found no hidden frontmatter setting in the current notes code.
Author
Owner

Finished on issue/608-settings-spec. Added docs/adr/0055-plugins-describe-their-settings.md and docs/adr/0056-plain-addresses-and-stable-block-ids.md, and indexed them in docs/adr/README.md. Head: 1695740709. The branch is pushed; no PR was opened. Gate output verbatim from git show --check --oneline HEAD: 1695740 docs: propose settings and address ADRs. No builds or tests were run because this change is documentation only.

Finished on issue/608-settings-spec. Added docs/adr/0055-plugins-describe-their-settings.md and docs/adr/0056-plain-addresses-and-stable-block-ids.md, and indexed them in docs/adr/README.md. Head: 169574070968007ac3d765103767279e80ffbb56. The branch is pushed; no PR was opened. Gate output verbatim from git show --check --oneline HEAD: 1695740 docs: propose settings and address ADRs. No builds or tests were run because this change is documentation only.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#608
No description provided.