Skip to content

feat(settings): expand appearance and diff preferences - #137

Merged
nixuuu merged 1 commit into
feat/settings-expansion-1from
feat/settings-expansion-2
Nov 5, 2026
Merged

nixuuu merged 1 commit into
feat/settings-expansion-1from
feat/settings-expansion-2

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Stage 2 of 3.

Appearance:

  • Contrast.
  • Thread width, renamed from "Chat width".
  • Effort display.
  • Render math.
  • Animated mascots.
  • Interface and monospace fonts and sizes, with previews of a message, a diff and terminal output.

New Settings → Diffs page: diff preferences that apply to the real diff views.

Copy audit (docs/copy.md §8):

@nixuuu
nixuuu added this pull request to stack #139 November 5, 2026 06:25
@nixuuu
nixuuu marked this pull request as ready for review November 5, 2026 06:29
@nixuuu
nixuuu merged commit 4355015 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/settings-expansion-2 branch November 5, 2026 06:29
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
nixuuu added a commit that referenced this pull request Nov 28, 2026
)

## Changes

- Center the icons in the rounded ends of Continue and standalone Queue.
Align their labels using the font’s cap height and baseline, and
compensate for the curved edge beside the text.
- Align the reasoning effort label within its existing line height.
Scale the bars with the interface size and center the group in the
compact composer.
- Use the same inset range for the color slider thumb and pointer input.
Its endpoints follow the track radius at every interface size.

## Verification

- Checked the composer in Chromium on a running Canopy test stack at
wide and narrow viewport widths. At the default desktop size, the
visible letters in “Medium” were centered with both Inter and the system
font. The trigger retained its 32 px height.
- Checked the four interface sizes, compact bars, keyboard selection,
standalone Queue during a sandboxed turn, and split Steer during a
regular turn.
- Checked the color slider endpoints, pointer and touch input, dragging,
and keyboard controls in Chromium.
- The web typecheck and lint on the edited components passed locally.
Repository-wide checks and builds run in CI.

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