Repository navigation
feat: add selectable outlined message layout - #84
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a device-local Message layout appearance preference that allows users to switch between the default “Standard” layout and a new “Outlined chains” layout, applied via a data-message-layout attribute on <html> (bootstrapped before first paint and re-applied at mount).
Changes:
- Introduces message-layout preference plumbing (types, load/apply/persist/init) and wires it into the Appearance settings UI.
- Adds the outlined-chain CSS treatment for message rows + adds settings UI styles and previews.
- Extends Playwright coverage to validate layout persistence and outlined-chain geometry/ordering behaviors.
Reviewed changes
Copilot reviewed 7 out of 21 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/e2e/chat.spec.ts | Extends durable agent activity test to cover outlined chain sequencing + geometry invariants. |
| tests/e2e/appearance.spec.ts | Adds appearance test for message layout switching + persistence (localStorage + data-message-layout). |
| apps/web/src/styles/settings.css | Adds layout-option grid + card styles for the new Message layout selector. |
| apps/web/src/styles/messages.css | Implements the outlined-chain message layout styling via :root[data-message-layout="outlined"] …. |
| apps/web/src/lib/appearance.ts | Adds MessageLayout preference (storage key, validators, load/apply/set, init wiring). |
| apps/web/src/components/settings/AppearanceSection.svelte | Adds “Message layout” radiogroup UI bound to the new preference. |
| apps/web/src/app.html | Bootstraps data-message-layout before first paint from localStorage. |
| apps/api/internal/webassets/dist/index.html | Updates embedded web asset HTML (boot script + hashed bundle references). |
| apps/api/internal/webassets/dist/200.html | Updates embedded web asset HTML (boot script + hashed bundle references). |
| apps/api/internal/webassets/dist/_app/immutable/nodes/5.DRT8LUq6.js | Refreshed embedded build output. |
| apps/api/internal/webassets/dist/_app/immutable/nodes/4.CvNHglQf.js | Refreshed embedded build output. |
| apps/api/internal/webassets/dist/_app/immutable/nodes/3.DW668VJZ.js | Refreshed embedded build output. |
| apps/api/internal/webassets/dist/_app/immutable/nodes/11.BN4GCte-.js | Refreshed embedded build output. |
| apps/api/internal/webassets/dist/_app/immutable/nodes/0.BEbUBMR7.js | Refreshed embedded build output. |
| apps/api/internal/webassets/dist/_app/immutable/entry/app.gPfvaOx4.js | Refreshed embedded build output. |
Comments suppressed due to low confidence (1)
apps/web/src/lib/appearance.ts:5
- The header comment still says "Both" preferences and implies base.css maps all prefs, but this module now manages three prefs (color mode, board theme, message layout) and message layout is styled in messages.css. This makes the file-level documentation misleading for future updates to storage keys/attributes.
// Appearance preferences: color mode, board theme, and message layout.
//
// Both are personal, device-local prefs stored in localStorage and applied as
// data attributes on <html>; base.css maps them to color-scheme and token
// overrides. An inline script in app.html applies the stored values before
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e52047a to
2c68506
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 15, 2026, 11:55 PM ET / July 16, 2026, 03:55 UTC. Summary Reproducibility: not applicable. This PR proposes a new visual preference rather than reporting broken current behavior. Its screenshots and E2E coverage demonstrate the proposed result instead of reproducing a defect. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: If maintainers want the option, retain the standard default and device-local architecture, resolve the current-main conflicts narrowly, then rerun the focused Appearance and chat E2E checks and capture refreshed browser proof from the resolved head. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new visual preference rather than reporting broken current behavior. Its screenshots and E2E coverage demonstrate the proposed result instead of reproducing a defect. Is this the best way to solve the issue? Yes, conditionally: if maintainers want this product surface, extending the existing device-local Appearance pattern while preserving standard as the default is a narrow and maintainable implementation. Product acceptance and conflict resolution remain separate gates. AGENTS.md: found, but no applicable review policy affected this item. Codex review notes: model internal, reasoning high; reviewed against 28ca65cb2617. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
Keep the standard presentation unchanged while allowing users to opt into grouped outlined message chains from Appearance settings. Apply the device-local preference before first paint and cover persistence, message geometry, alignment, themed surfaces, and agent activity chains. Co-authored-by: Chisel <[email protected]>
2c68506 to
fdae314
Compare
fdae314 to
c9e7653
Compare
|
Merged using rebase. What changed after review:
Verification:
Landed on
Thanks @ragesaq! |
Related: #58, #60
What Problem This Solves
Users who prefer visually bounded messages cannot currently choose that presentation without carrying unrelated application changes. Agent answers also have different visual weight depending on whether they include an activity preamble.
Why This Change Was Made
This adds a device-local Message layout choice to Appearance settings. The existing standard layout remains the default; the optional Outlined chains layout gives every message a consistent boundary and joins same-turn agent activity to its final answer without changing message models, turn grouping, or server state.
AI-assisted. Authored by ragesaq and implemented with Chisel using
openai/gpt-5.6-sol; an independent review pass usedanthropic/claude-opus-4-8.User Impact
Users can opt into outlined message chains and switch back instantly. The choice persists on the current device. Existing users see no change unless they select the new layout, and no code-room schema, workspace rail, migrations, or backend APIs are included.
Outlined mode follows the active board theme for fill, text color, and shadow. For right-positioned messages, Standard keeps its existing right-aligned body text while Outlined uses start-aligned text inside the bounded chain.
Evidence
Real browser proof against a local ClickClack instance with durable bot activity:
Outlined chain expanded through commentary, tool, commentary, tool, and final:
Current-head validation at
2c6850651ceb4e49041a32c19c896dc970c86818:pnpm checkpassed, including Go tests, TypeScript tests and typechecks, FakeCo tests, desktop tests, lint, formatting, and embedded asset verification.pnpm buildpassed, and a second embedded-asset comparison produced no diff.codex review --base origin/mainwas attempted but could not start because the installed CLI credential resolves to an invalid environment placeholder and the API returned HTTP 401. No code finding was produced.Not tested: deployment to the shared ClickClack service. The feature is presentation-only and was exercised in the repository's real local app path with SQLite-backed messages.