Skip to content

feat(web): make settings compact and easier to scan - #96

Merged
nixuuu merged 1 commit into
devfrom
feat/settings-density
Nov 4, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/settings-density

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Settings felt oversized: few things fit on screen. This makes them denser without making them cramped.

  • Density tokens scoped to settings: body 13px desktop / 15px phone, section headings 14px, controls and hit targets 32px desktop / 44px touch, row padding 8px / 10px.
  • Rows: a shared label-left / control-right pattern (title + one-line description, thin dividers) that stacks on phone width.
  • Providers: compact header with the scope picker, list rows with icon, name, version, one status line and an enable toggle; the detail pane is made of rows (identity, connection, runtime fields, workers scope, accent colour) and a compact environment-variables editor with inline secret state. All functionality kept.
  • All other settings pages use the same sizing and rows; no behaviour changes.

Checks: install, typecheck, lint, format:check, check:tmp (1040 pass, 152 skip, 0 fail), web build. All 16 settings pages checked in light/dark at desktop and phone widths (Electron-only views with a fixture bridge).

@nixuuu
nixuuu force-pushed the feat/settings-density branch from 972f314 to 591380e Compare November 4, 2026 20:41
@nixuuu
nixuuu merged commit 7deced7 into dev Nov 4, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/settings-density branch November 4, 2026 20:43
nixuuu added a commit that referenced this pull request Nov 4, 2026
Themes now recolor the whole app, not just the accent, and look like
Canopy rather than T3 Code.

- **Palettes:** each theme has light and dark sets for background and
surfaces (sidebar, panels, cards, popovers, composer), borders, text and
muted text, hover/selection, accent, focus rings and status colours, as
CSS variables layered over the existing palette (shared kit and shell
migrated to the tokens). Themes: Birch (chalk/blue), Fern (forest
green), Lagoon (sea), Cedar (sand/wood), Heather (lilac/violet), Blossom
(rose/mulberry). Lowest measured contrast: primary text 10.61:1,
secondary 4.56:1, status 4.99:1 (table in `docs/appearance.md`).
- **Picker:** mini previews of the app chrome per theme in two columns,
Light and Dark (chosen over swatch strips and leaf labels after
comparing options). Pick the light palette from one theme and the dark
from another; the System/Light/Dark scheme decides which is shown. Both
choices are marked and keyboard/screen-reader accessible (kit control,
no native radios). Uses the compact settings rows from #96.
- **Persistence:** light and dark picks saved per owner (additive
contract), synced across devices; SSR emits both palettes before render
(no flash); the desktop caches them for the window background and
title-bar colours.

Checks: install, gen:check, typecheck, lint, format:check, check:tmp
(1044 pass, 152 skip, 0 fail), web build. Every theme checked in light
and dark, the mixed selection, and the main surfaces at desktop and
phone widths. The native Electron title bar colours still need a look in
the packaged app.
nixuuu added a commit that referenced this pull request Nov 5, 2026
Every Settings field now saves and takes effect. Settings with no
working feature behind them are disabled and marked **Soon**.

**Thread notifications did not stick on desktop.** The desktop web UI
started on a new random port at every launch. The page origin therefore
changed, and with it the browser storage behind every "This device"
setting, so notifications, fonts, diffs, time format and keybindings all
reset after a restart. The app now saves the port in `userData/web-port`
and reuses it. If that port is taken, it picks and saves a new one, and
device settings reset once.

**Notifications**
- The window permission policy also allows `notifications`, for the
app's own pages only. Everything else stays denied.
- A thread with an unseen result alerted twice: when the next turn
started and when it ended. It now alerts once, when the turn ends.
- In the browser, a denied or dismissed permission now shows why
notifications stay off, instead of silently resetting.

**Other fixes**
- **Time format** now applies to bot chats, linked-computer presence and
date fields.
- **Contrast "Strong"** now strengthens muted text in dark mode. Borders
still do not change.
- **Providers:** unsaved edits are kept when the page reloads its data.
- **Worktrees and pairing:** "Inactive for days" accepts only whole
numbers from 0 to 3650, and pairing inputs stay valid.
- **Phone width:** long settings titles are truncated instead of
stretching the row past the screen.

**Soon** (a `soon` prop on the settings row: a badge after the title,
the control disabled, the reset hidden, the stored value untouched)
- Worktrees → Branch naming → Thread title: new threads send no title,
and branches are never renamed.
- Worktrees → Keep worktrees with local changes: cleanup always keeps
local work, so the switch only changed a label.

`docs/settings-map.md` no longer lists settings that do not exist:
worker limits and directories, the listen address, project rename and
schedule deletion.

**Tests**
- `apps/desktop/test/web-port.test.ts`: the port survives restarts, and
a taken or invalid saved port is replaced.
- `apps/desktop/test/window-permissions.test.ts`: only clipboard writes
and notifications are allowed, and only for the app's own origins.
- `check:tmp`: 1208 passed, 0 failed.

**Copy audit (§8)**
- "This device · Only while a Canopy window is open." (closing the
window stops alerts on macOS)
- "Notifications stay off until you allow them. Choose again, then
select Allow."
- The existing "Blocked by your browser…" message is reused.
- The badge text is "Soon".
- No glossary violations. Checked with long titles at phone and desktop
width, light and dark.

**Manual check on a Mac after the nightly**
- Choose "Notifications with sound", quit and relaunch: the choice
stays. Expect one reset after upgrading from an older build.
- A thread that finishes, fails or asks for approval gives exactly one
notification. Sound plays only with sound on.
- Canopy needs alerts allowed in System Settings → Notifications.

Fixes: #136
Fixes: #137
Fixes: #96
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