refactor: extract shared MCP authorizer dialog chrome into authorizerUi.tsx - #5908
Merged
Merged
Conversation
This was referenced Aug 6, 2026
Merged
|
|
This was referenced Aug 6, 2026
refactor: migrate OAuth flow state/PKCE fields from
oauth_configs to new mcp_oauth_flows table
#5709
Merged
Merged
Merged
Merged
Merged
18 tasks
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ui/app/workspace/mcp-registry/views/mcpClientsTable.tsx`:
- Around line 670-695: Update the DialogContent usage in the exchange
verification dialog to set showCloseButton to false whenever
exchangeVerifyClient.config.client_id is included in verifyingExchangeClients,
while preserving the close button when verification is inactive.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4b35009a-657e-4973-a9cc-29ad81d4651f
📒 Files selected for processing (4)
ui/app/workspace/mcp-registry/views/authorizerUi.tsxui/app/workspace/mcp-registry/views/mcpClientsTable.tsxui/app/workspace/mcp-registry/views/mcpHeadersAuthorizer.tsxui/app/workspace/mcp-registry/views/oauth2Authorizer.tsx
Pratham-Mishra04
force-pushed
the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
from
August 6, 2026 21:53
7a8136b to
d18cb99
Compare
Pratham-Mishra04
force-pushed
the
08-03-feat_allow_gating_the_skills_orphan_cleanup_sweep
branch
from
August 6, 2026 21:53
8bba70c to
cb0f52a
Compare
Contributor
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Pratham-Mishra04
force-pushed
the
08-03-feat_allow_gating_the_skills_orphan_cleanup_sweep
branch
from
August 8, 2026 08:43
cb0f52a to
e459e90
Compare
Pratham-Mishra04
force-pushed
the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
from
August 8, 2026 08:43
d18cb99 to
996b11f
Compare
Pratham-Mishra04
force-pushed
the
08-03-feat_allow_gating_the_skills_orphan_cleanup_sweep
branch
from
August 8, 2026 10:16
e459e90 to
8c7530b
Compare
Pratham-Mishra04
force-pushed
the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
from
August 8, 2026 10:17
996b11f to
3ccecd9
Compare
Pratham-Mishra04
force-pushed
the
08-03-feat_allow_gating_the_skills_orphan_cleanup_sweep
branch
from
August 8, 2026 10:29
8c7530b to
aba52c2
Compare
Pratham-Mishra04
force-pushed
the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
from
August 8, 2026 10:29
3ccecd9 to
2e779cd
Compare
This was referenced Aug 8, 2026
Collaborator
Author
Merge activity
|
Pratham-Mishra04
changed the base branch from
08-03-feat_allow_gating_the_skills_orphan_cleanup_sweep
to
graphite-base/5908
August 8, 2026 10:49
Pratham-Mishra04
dismissed
coderabbitai[bot]’s stale review
August 8, 2026 10:52
The base branch was changed.
Pratham-Mishra04
force-pushed
the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
from
August 8, 2026 10:52
2e779cd to
6687365
Compare
Pratham-Mishra04
deleted the
08-05-fix_resolve_mcp_client_verify_ux_gaps
branch
August 8, 2026 10:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extracts the shared visual building blocks used across the MCP client authorization dialogs (
OAuth2Authorizer,MCPHeadersAuthorizer, and the token-exchange "Re-verify as me" dialog) into a singleauthorizerUi.tsxmodule. Previously,OAuth2Authorizerhad its own inlineIconWrap,InfoBox, andStepDotscomponents, whileMCPHeadersAuthorizerused a divergent ad-hoc layout. This consolidation ensures all three flows share the same dialog chrome and prevents them from drifting apart visually over time.Changes
authorizerUi.tsxexportingIconWrap,InfoBox,StepDots, and theUiVarianttype, covering all tint variants (muted,info,success,danger,warning).IconWrap,InfoBox, andStepDotsfromoauth2Authorizer.tsxand replaced them with imports fromauthorizerUi.tsx. TheSTATUS_ICONmap now drives icon and variant selection declaratively instead of via a switch-style component.MCPHeadersAuthorizer's dialog layout to match the bordered icon-header +InfoBoxbody structure used byOAuth2Authorizer, including aSTATUS_ICONmap,titles/subtitlesrecords, and a proper failed-state retry footer with aClosebutton alongsideRetry.confirmstep and only open the popup from a direct user click, avoiding silent popup-blocking whenwindow.open()is called outside a user-activation context.mcpClientsTable.tsxnow stays open with a spinner while the verify call is in flight, rather than closing immediately on "Continue" and leaving no visible feedback until the toast arrives. The cancel and confirm buttons are disabled during the in-flight state, and the actions menu button is also disabled while a verify is pending.nullnow render a-placeholder, consistent with other empty cells in the table.Type of change
Affected areas
How to test
Breaking changes
Related issues
Security considerations
No new auth paths introduced. The popup-blocking fix ensures
window.open()is only called from a direct user gesture, which is the correct browser security model for OAuth popups.Checklist
docs/contributing/README.mdand followed the guidelines