feat(ui-flow): composer focus after audit filter and schedule IPC

Emit composer-focus-channel after set-audit-log-export-filter and
set-audit-export-schedule in guild mode for Phase 602 audit hub depth.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 17:43:13 -04:00
co-authored by Cursor
parent 21d849668b
commit 130fde0315
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. Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**v0.8.565 (Phase 602):** `set-audit-export-schedule` and `set-audit-log-export-filter` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase602-audit` (app repo).
**v0.8.561 (Phase 598):** `update-user-prefs` and `update-guild-settings` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase598-settings` (app repo). **v0.8.561 (Phase 598):** `update-user-prefs` and `update-guild-settings` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase598-settings` (app repo).
**v0.8.560 (Phase 597):** `select-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching join-invite guild switch behavior). Bundle: `npm run test:phase597-session` (app repo). **v0.8.560 (Phase 597):** `select-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching join-invite guild switch behavior). Bundle: `npm run test:phase597-session` (app repo).
+12
View File
@@ -299,6 +299,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
if (t === 'set-audit-export-schedule') { if (t === 'set-audit-export-schedule') {
await platform.setAuditExportSchedule(msg.schedule || {}) await platform.setAuditExportSchedule(msg.schedule || {})
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }
@@ -1897,6 +1903,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
const filter = await platform.setAuditLogExportFilter(msg.filter || 'all') const filter = await platform.setAuditLogExportFilter(msg.filter || 'all')
pushState() pushState()
send({ type: 'audit-log-export-filter', filter }) send({ type: 'audit-log-export-filter', filter })
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true return true
} }
if (t === 'create-server-folder') { if (t === 'create-server-folder') {