improvement: required permissions, oauth modal badge#2609
Merged
emir-karabeg merged 1 commit intostagingfrom Dec 27, 2025
Merged
improvement: required permissions, oauth modal badge#2609emir-karabeg merged 1 commit intostagingfrom
emir-karabeg merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryUpdated styling for OAuth permission notifications and badge components. The changes improve visual consistency by:
All changes follow EMCN component library patterns and Tailwind styling conventions. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant CredentialSelector
participant OAuthModal
participant Badge
User->>CredentialSelector: Selects credential with missing scopes
CredentialSelector->>CredentialSelector: Check needsUpdate (missing scopes detected)
CredentialSelector->>User: Display "Additional permissions required" notification
Note over CredentialSelector: New styling: amber dot indicator,<br/>stacked layout with full-width button
User->>CredentialSelector: Click "Update access" button
CredentialSelector->>OAuthModal: Open modal (setShowOAuthModal(true))
OAuthModal->>User: Display permissions list
loop For each scope
OAuthModal->>OAuthModal: Check if scope is new (newScopesSet.has(scope))
alt Scope is new
OAuthModal->>Badge: Render Badge with variant='amber', size='sm'
Badge->>User: Show "New" badge
end
end
User->>OAuthModal: Click "Connect"
OAuthModal->>OAuthModal: handleConnectDirectly()
OAuthModal->>User: Redirect to OAuth provider
|
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
Fixed styling for the required permissions beneath credential selector in editor and tool input.
Adjusted oauth modal to use EMCN badge.
Type of Change
Testing
Solo.
Checklist