feat: ui-flow IPC for device sync and discovery listing JSON mesh (v0.8.691)

Add modal-open, sync-device-sync-json, clear, and push-discovery-listing-export-json
handlers for Phase 715 server settings flows.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 07:03:48 -04:00
co-authored by Cursor
parent fd0b9728fa
commit 3d66b274ae
+5
View File
@@ -2802,6 +2802,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'sync-session-activity-json') { const out = await platform.pushSessionActivityJsonToMesh(); pushState(); send({ type: 'session-activity-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'sync-session-activity-json') { const out = await platform.pushSessionActivityJsonToMesh(); pushState(); send({ type: 'session-activity-json-synced', ...out }); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'clear-session-activity-json') { await platform.clearSessionActivityJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'clear-session-activity-json') { await platform.clearSessionActivityJsonExports(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'push-avatar-decoration-export-json') { await platform.pushAvatarDecorationExportToMesh(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true } if (t === 'push-avatar-decoration-export-json') { await platform.pushAvatarDecorationExportToMesh(); pushState(); if (platform.mode==='guild'&&platform.activeChannelId) send({ type:'composer-focus-channel', channelId: platform.activeChannelId }); return true }
if (t === 'device-json-modal-open') { pushState(); send({ type: 'device-json-modal-opened' }); return true }
if (t === 'discovery-json-modal-open') { pushState(); send({ type: 'discovery-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 === '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-sticker-pack-export-json') { if (t === 'push-sticker-pack-export-json') {
await platform.pushStickerPackExportToMesh() await platform.pushStickerPackExportToMesh()
pushState() pushState()