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:
@@ -2647,6 +2647,16 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
send({ type: 'oauth-json-modal-opened' })
|
||||
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') {
|
||||
const out = await platform.pushOAuthGrantJsonToMesh()
|
||||
pushState()
|
||||
@@ -2681,6 +2691,17 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
}
|
||||
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') {
|
||||
pushState()
|
||||
send({ type: 'invite-json-modal-opened' })
|
||||
|
||||
Reference in New Issue
Block a user