feat(ui-flow): IPC for Phase 720 vanity and effective permission JSON modals

Wire modal-open and clear-vanity-url-export-json / clear-effective-permission-export-json
handlers so mesh export management matches read-state and webhook JSON flows.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 08:19:48 -04:00
co-authored by Cursor
parent b4909deec7
commit 32fa2b298e
+18
View File
@@ -2824,6 +2824,24 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'guild-widget-json-modal-open') { pushState(); send({ type: 'guild-widget-json-modal-opened' }); return true }
if (t === 'read-state-json-modal-open') { pushState(); send({ type: 'read-state-json-modal-opened' }); return true }
if (t === 'webhook-json-modal-open') { pushState(); send({ type: 'webhook-json-modal-opened' }); return true }
if (t === 'vanity-url-json-modal-open') { pushState(); send({ type: 'vanity-url-json-modal-opened' }); return true }
if (t === 'effective-permission-json-modal-open') { pushState(); send({ type: 'effective-permission-json-modal-opened' }); return true }
if (t === 'clear-vanity-url-export-json') {
await platform.clearVanityUrlExportJsonExports()
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({ type: 'composer-focus-channel', channelId: platform.activeChannelId })
}
return true
}
if (t === 'clear-effective-permission-export-json') {
await platform.clearEffectivePermissionExportJsonExports()
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({ type: 'composer-focus-channel', channelId: platform.activeChannelId })
}
return true
}
if (t === 'sync-device-sync-json') { const out = await platform.pushDeviceSyncJsonToMesh(); pushState(); send({ type: 'device-sync-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'clear-device-sync-json') { await platform.clearDeviceSyncJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'push-discovery-listing-export-json') { await platform.pushDiscoveryListingExportToMesh(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }