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:
@@ -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.
|
||||||
|
|
||||||
|
**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 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`.
|
**Phase 680 (v0.8.655):** `announcement-follow-changed`, `retry-announcement-crosspost` IPC + composer blur sidecar. Bundle: `npm run test:ci-phase680`.
|
||||||
|
|||||||
@@ -2379,6 +2379,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
send({ type: 'permissions-modal-opened' })
|
send({ type: 'permissions-modal-opened' })
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (t === 'member-roles-modal-open') {
|
||||||
|
pushState()
|
||||||
|
send({ type: 'member-roles-modal-opened' })
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (t === 'revoke-invite') {
|
if (t === 'revoke-invite') {
|
||||||
await platform.revokeInvite(msg.code)
|
await platform.revokeInvite(msg.code)
|
||||||
pushState()
|
pushState()
|
||||||
@@ -2503,6 +2508,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
}
|
}
|
||||||
if (t === 'set-member-custom-roles') {
|
if (t === 'set-member-custom-roles') {
|
||||||
await platform.setMemberCustomRoles(msg.userId, msg.roleIds || [])
|
await platform.setMemberCustomRoles(msg.userId, msg.roleIds || [])
|
||||||
|
if (platform.mode === 'guild' && platform.activeChannelId) {
|
||||||
|
send({
|
||||||
|
type: 'composer-focus-channel',
|
||||||
|
channelId: platform.activeChannelId
|
||||||
|
})
|
||||||
|
}
|
||||||
pushState()
|
pushState()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user