Skip to content

feat(desktop): fold Settings details and glide the section highlight - #4311

Merged
LHagfoss merged 2 commits into
mainfrom
feat/desktop-settings-polish
Nov 24, 2026
Merged

LHagfoss merged 2 commits into
mainfrom
feat/desktop-settings-polish

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

Settings motion pass. Controls (switch, segmented, slider) already animated; what still snapped was everything that opens or moves between pages.

  • ui/Fold.tsx: the sidebar's height fold, now shared. Used for an MCP server's details, a harness's details, the inline Add server and New skill forms, and a Settings card that a feature switch turns on (Group with onEnabledChange, footer included).
  • Fixed the fold's opening: it set the open state in the frame it mounted, so the browser never painted the folded state and opening jumped (closing already animated). It now waits two frames, lifts its clip and unmounts on transitionend, with a 400 ms fallback for a hidden parent.
  • Settings nav: the open page's fill is one pill that glides to the next page (200 ms --ease-snappy, transform only), instead of one row going dark and another lighting up.

Reduced motion collapses all of it through the existing global rule.

Changelog

Settings: details, add forms and feature cards unfold smoothly, and the section highlight glides between pages.

Testing

  • bun run check in apps/desktop; check-comments.py, check-rust-size.py.
  • Mock window, Settings › Capabilities: sampled an MCP row's fold height in page. Opening: 0 → 51 → 131 → 150 → 153 px at 10/60/120/180 ms, clipped while moving and unclipped at rest. Closing: 153 → 102 → 13 → 3 px, then unmounted. Before this change, opening read 153 px from the first frame.
  • Clicked between Settings pages: the highlight travels between rows.

@github-actions github-actions Bot added the feature New feature or request label Nov 24, 2026
@LHagfoss
LHagfoss merged commit 5506b24 into main Nov 24, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-settings-polish branch November 24, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants