2 Commits

Author SHA1 Message Date
Dryice Liu
be39000688 style(web): apply prettier v4.0.0-alpha.8 formatting to code-block theme files
Pre-commit auto-fixes from the project's pinned prettier (alpha.8).
Pure formatting — long object/array literals and assert.equal() calls
broken across multiple lines to satisfy print-width. No logic changes.

Files: code-block-themes registry, RichCodeBlock renderer, AppShell +
SettingsContext plumbing, appearance settings page, and the 6 affected
test files. Also adds a missing trailing newline to
app-shell-storage-code-block.test.ts.
2026-07-19 21:31:10 +08:00
Dryice Liu
9cf8829f3b test(web): cover code block appearance preferences
Add node tests for the theme registry (completeness, invalid-theme
fallback, label formatting), RichCodeBlock (background derivation,
line numbers, wrapping, plain-text routing), SettingsContext
(boolean hydration, backend sync, partial-update persistence),
AppShell storage (SSR defaults, event sync), the appearance page
(syntax-theme select, two toggles), and the markdown fallback
path. Register module aliases so the node tests can resolve
web-path imports.
2026-07-18 14:52:06 +08:00