Skip to content

UX: Move approval toggles off topbar; outline destructive Disconnect#231

Open
parkerbyrd-ux wants to merge 2 commits into
mainfrom
parkerbyrd-ux/move-approval-toggles
Open

UX: Move approval toggles off topbar; outline destructive Disconnect#231
parkerbyrd-ux wants to merge 2 commits into
mainfrom
parkerbyrd-ux/move-approval-toggles

Conversation

@parkerbyrd-ux
Copy link
Copy Markdown
Contributor

Summary

  • Removed Auto-Approve All, Pause Incoming Commands, and Disconnect from the topbar header so approval/connection UI is no longer surfaced in the top navigation
  • Inlined Auto-Approve All and Pause Incoming Commands with Refresh/Clear on the Approvals page, right-aligned opposite the action buttons
  • Moved Disconnect to the bottom of the Connection Status section in Settings -> Relay / Gateway
  • Added an outline-destructive button style; Disconnect uses it when the action is destructive and flips to the secondary style when the label switches to Reconnect
  • Bumped desktop to 0.15.74

Test plan

  • just desktop-typecheck
  • just desktop-lint
  • Manual: open Approvals page and confirm the two toggles sit right-aligned next to Refresh / Clear
  • Manual: open Settings -> Relay / Gateway and confirm Disconnect appears at the bottom of the Connection Status section, styled with the destructive outline; click it and confirm the label flips to Reconnect and the style switches to the neutral secondary outline
  • Manual: confirm the topbar header now only shows the breadcrumb (no toggles, no Disconnect)

Feature flags

[flag:N/A] Not applicable -- this is a UI relocation/restyle within the desktop app, with no critical-path or rollout risk.

Generated with Claude Code

- Remove Auto-Approve All, Pause Incoming Commands, and Disconnect from
  the topbar header so approval/connection UI is no longer surfaced in
  the top navigation
- Inline the two toggles with Refresh/Clear on the Approvals page,
  right-aligned via margin-left: auto so they sit opposite the actions
- Move Disconnect to the bottom of the Connection Status section in
  Settings -> Relay / Gateway
- Add a .actions button.destructive-outline style (transparent bg,
  destructive border + text, soft hover) and apply it to Disconnect;
  toggle to .secondary when the label flips to "Reconnect" so the
  destructive treatment only shows for the destructive action
- Bump desktop to 0.15.74

Testing: just desktop-typecheck and just desktop-lint both pass

Risks: None identified -- DOM ids (dangerAutoApproveToggle,
headerPauseToggle, dangerAutoApproveLabel, headerConnectionToggle)
are preserved so all existing JS wiring continues to work.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@parkerbyrd-ux parkerbyrd-ux requested a review from a team May 22, 2026 20:56
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown
Contributor

@thadeusb thadeusb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward UI shuffle. IDs stayed the same so all the JS bindings still work, class toggle logic is correct.

…proval-toggles

# Conflicts:
#	apps/desktop/package.json
Copy link
Copy Markdown
Contributor

@mikeangstadt mikeangstadt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Clean UI shuffle — the Auto-Approve All and Pause toggles belong in the Approvals panel next to the queue actions, and the Disconnect button fits naturally in Settings > Connection Status.

IDs preserved, JS bindings intact — all element references use document.getElementById(), so relocating them in the DOM is safe. The headerConnectionToggle class toggle (destructive-outline when connected, secondary when reconnecting) is wired correctly.

One cleanup opportunity: The CSS rule .topbar .topbar-actions at index.html:2967 is now orphaned since the <div class="topbar-actions"> was removed from the header. Consider dropping it to keep stylesheet clean.

Otherwise looks good.

Auto-reviewed by opencode headless

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.

3 participants