Uh oh!
There was an error while loading. Please reload this page.
fix(notifications): credentials connection notifs showing up in right resource - #3599
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Integrations now routes back to the originating page ( Written by Cursor Bugbot for commit 5193687. Configure here. |
Greptile SummaryThis PR fixes credential connection notifications being shown in the wrong place (always in the workflow notification panel, even when initiated from a KB connector or the integrations settings page). It introduces a typed Key changes:
Issues found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant WF as Workflow Block<br/>(credential-selector)
participant KB as KB Connector<br/>(add-connector-modal / connectors-section)
participant INT as Integrations Page<br/>(integrations-manager)
participant SS as sessionStorage
participant OA as OAuth Provider
Note over WF: Flow 1 — from Workflow Block
WF->>SS: writePendingCredentialCreateRequest<br/>{ returnOrigin: { type:'workflow', workflowId } }
WF->>INT: navigateToSettings('integrations')
INT->>SS: pendingReturnOriginRef ← request.returnOrigin
INT->>SS: writeOAuthReturnContext<br/>{ origin:'workflow', workflowId }
INT->>OA: connectOAuthService (callbackURL = integrations page)
OA-->>INT: redirect back
INT->>SS: readOAuthReturnContext → origin='workflow'
INT->>WF: router.replace(…/w/workflowId)
WF->>SS: consumeOAuthReturnContext
WF->>WF: addNotification (workflow-scoped)
Note over KB: Flow 2 — from KB Connector page
KB->>SS: writeOAuthReturnContext<br/>{ origin:'kb-connectors', knowledgeBaseId }
KB->>OA: connectOAuthService (callbackURL = KB page)
OA-->>KB: redirect back
KB->>SS: consumeOAuthReturnContext
KB->>KB: toast.success(message)
Note over INT: Flow 3 — from Integrations page directly
INT->>SS: writeOAuthReturnContext<br/>{ origin:'integrations' }
INT->>OA: connectOAuthService (callbackURL = integrations page)
OA-->>INT: redirect back
INT->>SS: consumeOAuthReturnContext
INT->>INT: toast.success(message)
Last reviewed commit: 62e5b8a |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 15, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 15, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
… resource (simstudioai#3599) * fix(notifications): credentials connection notifs showing up in right resource * fix new label * address comments * reset ref correctly:
Summary
Need to redirect back to the right place with either workflow notification when connecting from a workflow block. Or using EMCN toast component when connecting from KB connector or directly from Integrations settings page.
Type of Change
Testing
Tested manually
Checklist