Skip to content

refactor(frontend): own display preferences in a single store - #501

Merged
athNdev merged 3 commits into
mainfrom
codex/display-preferences
Nov 17, 2026
Merged

athNdev merged 3 commits into
mainfrom
codex/display-preferences

Conversation

@athNdev

@athNdev athNdev commented Nov 17, 2026

Copy link
Copy Markdown
Owner

W23/OSS-342 foundation: one owner for theme/motion/density. lib/display-preferences.svelte.ts owns defaults (dark/full/comfortable), validation, storage keys, current stores and data-carbon attributes. Storage acquisition is lazy and exception-safe, including a throwing localStorage getter and SSR. Shell hydrates it on boot; dialog, toast host and both editors consume it. Editors use only an already-loaded runtime for live theme changes - no Monaco bootstrap from a preference change - and clear the active runtime on dispose. Narrow hex ratchet on migrated surfaces. Verification: bun check 0/0, bun test 258 pass, bun lint clean, knowledge-lint 59 concepts.

@athNdev
athNdev merged commit 42f4786 into main Nov 17, 2026
13 checks passed
@athNdev
athNdev deleted the codex/display-preferences branch November 17, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant