feat(ui-flow): multi-guild and partition heal JSON IPC (Phase 717)

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 07:37:48 -04:00
co-authored by Cursor
parent f4456861e6
commit c1c5e73fc5
+6
View File
@@ -2806,6 +2806,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'discovery-json-modal-open') { pushState(); send({ type: 'discovery-json-modal-opened' }); return true } if (t === 'discovery-json-modal-open') { pushState(); send({ type: 'discovery-json-modal-opened' }); return true }
if (t === 'federation-json-modal-open') { pushState(); send({ type: 'federation-json-modal-opened' }); return true } if (t === 'federation-json-modal-open') { pushState(); send({ type: 'federation-json-modal-opened' }); return true }
if (t === 'mesh-json-modal-open') { pushState(); send({ type: 'mesh-json-modal-opened' }); return true } if (t === 'mesh-json-modal-open') { pushState(); send({ type: 'mesh-json-modal-opened' }); return true }
if (t === 'multi-guild-json-modal-open') { pushState(); send({ type: 'multi-guild-json-modal-opened' }); return true }
if (t === 'partition-heal-json-modal-open') { pushState(); send({ type: 'partition-heal-json-modal-opened' }); 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 === '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 === '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 } 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 }
@@ -2813,6 +2815,10 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'clear-federation-sync-json') { await platform.clearFederationSyncJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'clear-federation-sync-json') { await platform.clearFederationSyncJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'push-mesh-replication-diagnostics-json') { const out = await platform.pushMeshReplicationDiagnosticsJsonToMesh(); pushState(); send({ type: 'mesh-replication-diagnostics-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'push-mesh-replication-diagnostics-json') { const out = await platform.pushMeshReplicationDiagnosticsJsonToMesh(); pushState(); send({ type: 'mesh-replication-diagnostics-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'clear-mesh-replication-diagnostics-json') { await platform.clearMeshReplicationDiagnosticsJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'clear-mesh-replication-diagnostics-json') { await platform.clearMeshReplicationDiagnosticsJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'sync-multi-guild-sync-json') { const out = await platform.pushMultiGuildSyncJsonToMesh(); pushState(); send({ type: 'multi-guild-sync-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'clear-multi-guild-sync-json') { await platform.clearMultiGuildSyncJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'push-partition-heal-diagnostics-json') { const out = await platform.pushPartitionHealDiagnosticsJsonToMesh(); pushState(); send({ type: 'partition-heal-diagnostics-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'clear-partition-heal-diagnostics-json') { await platform.clearPartitionHealDiagnosticsJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'push-sticker-pack-export-json') { if (t === 'push-sticker-pack-export-json') {
await platform.pushStickerPackExportToMesh() await platform.pushStickerPackExportToMesh()
pushState() pushState()