Skip to content

feat(web): add a theme builder with in-app preview - #1319

Merged
nixuuu merged 2 commits into
devfrom
feat/appearance-theme-builder
Nov 26, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/appearance-theme-builder

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Change

  • Add Theme builder under Settings → Appearance in Canopy web and desktop. Edit 102 colors per scheme, choose corner radius and spacing, or generate coordinated Light and Dark palettes.
  • Preview the draft and applied theme on the open Canopy screen. Returning to the editor restores the saved appearance and retains the draft. Apply theme saves it in the current profile.
  • Let bots propose a theme in a private owner chat with propose_canopy_theme. Review theme opens the proposal in the editor.
  • Use saved custom colors in Electron startup and native window rendering.

Verification

  • Generated the additive protobuf bindings with bun run gen.
  • Typechecked the affected web, UI, domain, gateway, and desktop packages. Lint, formatting, and whitespace checks passed on the changed files.
  • Passed all eight tests in bun run check:tmp ./tests/integration/bot-account-preferences.test.ts, including validation and owner-turn scoping.
  • Checked palette editing, randomization, persistence, proposal links, and the live preview in Chromium. Verified Draft / Applied, keyboard exit and focus restoration, and the controls at 320 px and 390 px.
  • Checked Electron cache and IPC handling with mocked bindings. The live Electron startup test reached a missing GTK library on the Linux worker (libgtk-3.so.0). GitHub CI owns the full verification gate.

Copy audit

  • Replaced the generic Preview label with Preview in app to name where the preview opens. Back returns to the editor and keeps the accessible name Back to editor at narrow widths.
  • Checked action wording, theme terms, contrast feedback, and label wrapping. Draft / Applied and Light / Dark have text labels and expose their selected state.

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 18:08
@nixuuu
nixuuu merged commit 6ac9a45 into dev Nov 26, 2026
24 checks passed
@nixuuu
nixuuu deleted the feat/appearance-theme-builder branch November 26, 2026 18:20
nixuuu added a commit that referenced this pull request Nov 30, 2026
## Change

Require an explicit `Blocks-Promotion: #PR` or `Blocks-Promotion: SHA`
trailer in a fix or perf commit or its merged PR body. Ordinary
references stay informational. Standard revert messages still identify
the reverted commit, and promotion keeps eligible reverts with their
originals.

Expire follow-up holds four hours after the original change qualifies
for beta or stable, including in manual Promote. The promotion report
shows the expiry. Use an open `release-blocker` issue when publication
must wait for a repair beyond that window.

The false hold caused by the notification placement fix (#1468)
motivated this change. The line it edited belonged to the theme builder
(#1319), which caused the old blame heuristic to associate the two
changes.

## Verification

- 51 focused promotion tests passed through `check:tmp`, including Git
fixtures for edits to the same code, explicit trailers, expiry at the
four-hour boundary, manual override and pre-push checks.
- Edited-file lint, formatting and diff checks passed.
- A read-only dry run against GitHub selected the current
`v0.11.0-beta.1` SHA `5f7f61645` for stable `0.11.0`.
- Full CI runs on the PR.
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