feat(ui-flow): composer focus after select-guild IPC
Phase 597 parity — autofocus message composer when switching guilds and a text channel is selected, matching join-invite behavior. 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.
|
||||||
|
|
||||||
|
**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.559 (Phase 596):** `create-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching existing `join-invite` behavior). Bundle: `npm run test:phase596-onboarding` (app repo).
|
**v0.8.559 (Phase 596):** `create-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching existing `join-invite` behavior). Bundle: `npm run test:phase596-onboarding` (app repo).
|
||||||
|
|
||||||
**v0.8.550 (Phase 587):** `pin-message` and `unpin-message` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase587-pins` (app repo).
|
**v0.8.550 (Phase 587):** `pin-message` and `unpin-message` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase587-pins` (app repo).
|
||||||
|
|||||||
@@ -599,6 +599,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
pushState()
|
pushState()
|
||||||
|
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||||
|
send({
|
||||||
|
type: 'composer-focus-channel',
|
||||||
|
channelId: platform.activeChannelId
|
||||||
|
})
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (t === 'join-stage') {
|
if (t === 'join-stage') {
|
||||||
|
|||||||
Reference in New Issue
Block a user