feat(ui-flow): OAuth grant/install token JSON modal IPC and clear handler (v0.8.698)

Wire modal-open events and clear-oauth-install-token-export-json for Phase 722
dedicated export mesh management.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 08:43:18 -04:00
co-authored by Cursor
parent aeca21c366
commit f5e68745c1
+21
View File
@@ -2647,6 +2647,16 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
send({ type: 'oauth-json-modal-opened' }) send({ type: 'oauth-json-modal-opened' })
return true return true
} }
if (t === 'oauth-grant-json-modal-open') {
pushState()
send({ type: 'oauth-grant-json-modal-opened' })
return true
}
if (t === 'oauth-install-token-json-modal-open') {
pushState()
send({ type: 'oauth-install-token-json-modal-opened' })
return true
}
if (t === 'sync-oauth-grant-json') { if (t === 'sync-oauth-grant-json') {
const out = await platform.pushOAuthGrantJsonToMesh() const out = await platform.pushOAuthGrantJsonToMesh()
pushState() pushState()
@@ -2681,6 +2691,17 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
return true return true
} }
if (t === 'clear-oauth-install-token-export-json') {
await platform.clearOAuthInstallTokenExportJsonExports()
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'invite-json-modal-open') { if (t === 'invite-json-modal-open') {
pushState() pushState()
send({ type: 'invite-json-modal-opened' }) send({ type: 'invite-json-modal-opened' })