feat(ui-flow): member roles modal IPC and assign composer focus

Handle member-roles-modal-open blur and composer focus after
set-member-custom-roles (Phase 682 / v0.8.657).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 23:57:13 -04:00
co-authored by Cursor
parent fc868935f9
commit 4cad60e4ae
2 changed files with 13 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.
**Phase 682 (v0.8.657):** `member-roles-modal-open``member-roles-modal-opened`; `set-member-custom-roles` composer focus. Bundle: `npm run test:ci-phase682`.
**Phase 681 (v0.8.656):** `permissions-modal-open``permissions-modal-opened`; `update-guild-custom-role` passes `mentionable`. Bundle: `npm run test:ci-phase681`.
**Phase 680 (v0.8.655):** `announcement-follow-changed`, `retry-announcement-crosspost` IPC + composer blur sidecar. Bundle: `npm run test:ci-phase680`.
+11
View File
@@ -2379,6 +2379,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
send({ type: 'permissions-modal-opened' })
return true
}
if (t === 'member-roles-modal-open') {
pushState()
send({ type: 'member-roles-modal-opened' })
return true
}
if (t === 'revoke-invite') {
await platform.revokeInvite(msg.code)
pushState()
@@ -2503,6 +2508,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}
if (t === 'set-member-custom-roles') {
await platform.setMemberCustomRoles(msg.userId, msg.roleIds || [])
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState()
return true
}