Skip to content

Header: place Clear OAuth to the right of Disconnect (#3101) - #3102

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/feat/3101-oauth-right-of-disconnect
Nov 30, 2026
Merged

cliffhall merged 1 commit into
v2/mainfrom
v2/feat/3101-oauth-right-of-disconnect

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #3101

What changed

The connected header's right-hand group now reads status indicator, Disconnect, Clear OAuth. Before, it was status indicator, Clear OAuth, Disconnect. Disconnect therefore always sits immediately beside the connection indicator, whether or not the server has stored OAuth credentials. The optional icon now follows it rather than pushing it one slot over.

Tests

  • ViewHeader.test.tsx:
    • asserts the group's exact order ([indicator, Disconnect, Clear OAuth])
    • asserts that without the icon the group is [indicator, Disconnect]
  • npm run local:gate passes.

Screenshot (1280×900, Chromium)

Connected to oauth-revocation-http.json after authorizing, with an isolated HOME. The status dot is followed by Disconnect, then Clear OAuth (shown with its tooltip):

header-disconnect-then-clear-oauth

🤖 Generated with Claude Code

Disconnect now always sits immediately beside the connection status
indicator; the optional Clear OAuth icon follows it instead of sitting
between the two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: cliffhall <cliff@futurescale.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the connected-header control reorder.

No open issues 🎉

What changed in this PR

Reorders the web client’s connected header so Disconnect always sits immediately beside the status indicator, with the optional Clear OAuth icon to its right. Disconnected-state behavior is unchanged.

Changes:

  • Moves Disconnect before Clear OAuth within the connected control group.
  • Adds ordering assertions for headers with and without Clear OAuth.
  • Updates documentation and the story comment to describe the new placement.
File Description
docs/​mcp-server-configuration.md Documents Clear OAuth’s position to the right of Disconnect.
clients/​web/​src/​components/​groups/​ViewHeader/​ViewHeader.tsx Reorders connected controls and records the ordering rule.
clients/​web/​src/​components/​groups/​ViewHeader/​ViewHeader.test.tsx Checks control order with and without Clear OAuth.
clients/​web/​src/​components/​groups/​ViewHeader/​ViewHeader.stories.tsx Updates the connected OAuth story’s descriptive comment.

Review effort: Balanced

@cliffhall
cliffhall merged commit f715c7c into v2/main Nov 30, 2026
12 checks passed
@cliffhall
cliffhall deleted the v2/feat/3101-oauth-right-of-disconnect branch November 30, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Header: place Clear OAuth to the right of Disconnect so Disconnect always sits beside the status indicator

2 participants