Skip to content

Match native code colors and Canvas layout, add Obsidian favicon - #16

Merged
macros0 merged 2 commits into
mainfrom
codex/syntax-palette-parity-20261102
Nov 2, 2026
Merged

macros0 merged 2 commits into
mainfrom
codex/syntax-palette-parity-20261102

Conversation

@macros0

@macros0 macros0 commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Match fenced JavaScript, Python and YAML token colors and boundaries to the native Obsidian editor across Live, Reading and Source modes, with lazy grammar loading and browser coverage for both themes.
  • Fit both lines of a 250×60 Canvas card using height-dependent padding, match native text and neutral borders, provide compact selection controls with Edit, and cap initial zoom-to-fit at 100%.
  • Add the official Obsidian SVG favicon with a fingerprinted production URL. Update requirements, implementation progress and CT102 deployment records.

Review also caught the height CSS variable matching the colored-card selector. The selector now targets the actual --c: property, with computed-border assertions for both neutral and colored cards.

The hosted CI follow-up makes the toolbar viewport fixture wait for stable measured geometry and command inventory after resizing before opening More. All existing zoom, keyboard, selection and bounds assertions remain in place. The viewport, overflow and navigation browser tests pass locally.

Related

PRD FR-2 and FR-12, version 1.24.

Type of change

  • Bug fix
  • New feature
  • Refactor / chore
  • Docs only

Checklist

  • npm run typecheck passes
  • npm run build succeeds
  • Updated PRD.md and its changelog
  • Updated IMPLEMENTATION_PLAN.md
  • Reviewed the complete diff for secrets and unrelated artifacts

Validation

  • Desktop typecheck and bundle build passed.
  • All three focused Canvas browser tests passed, including a failing-to-passing regression for the border selector.
  • Disposable HTTP integration smoke and all three HTTP/stdio MCP tests passed.
  • Fresh npm test passed 390 server tests with 10 Windows capability skips and all 520 web tests.
  • Independent review completed with no remaining findings after the border-selector correction.

Screenshots / notes

The current production snapshot is favicon-a88455468a4a. Its health, served asset hashes, SVG MIME type and original icon bytes were verified over HTTPS. The border-selector correction found during PR review is included here and awaits deployment.

The first local full run had one Chrome startup failure with bad port before the PDF fragment assertions ran. Both the isolated PDF retry and the final full run passed. The final full run followed all builds on the reviewed tree.

@macros0
macros0 merged commit 947b8d9 into main Nov 2, 2026
3 checks passed
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