feat(ui-flow): composer focus after create-guild IPC
Phase 596 parity — autofocus message composer when a new guild's default 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.
|
||||
|
||||
**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.516 (Phase 553):** Cleared `update-search` (empty query) emits `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase553-search` (app repo).
|
||||
|
||||
@@ -68,6 +68,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
publicListing: msg.publicListing !== false
|
||||
})
|
||||
pushState()
|
||||
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'join-invite') {
|
||||
|
||||
Reference in New Issue
Block a user