feat(ui-flow): composer focus after scheduled audit export (v0.8.515)

Emit composer-focus-channel after run-audit-export-now and sync-audit-export-csv
when guild mode has an active channel.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:54:06 -04:00
co-authored by Cursor
parent 73d315b745
commit 7a28cca81d
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**v0.8.515 (Phase 552):** `run-audit-export-now` and `sync-audit-export-csv` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase552-compliance` (app repo).
**v0.8.498 (Phase 535):** `ban-member`, `kick-member`, and `timeout-member` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase535-moderation` (app repo).
**v0.8.497 (Phase 534):** `create-guild-custom-role`, `update-guild-custom-role`, `upsert-channel-overwrite`, and `delete-channel-overwrite` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase534-roles` (app repo).
+12
View File
@@ -269,6 +269,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
pushState()
send({ type: 'audit-export-csv-synced', ...out })
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'export-hook-failure-digest') {
@@ -294,6 +300,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
const out = await platform.runScheduledAuditExportNow()
pushState()
send({ type: 'audit-export-scheduled', result: out })
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'set-digest-export-schedule') {