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:
Raven Scott
2026-05-24 17:13:39 -04:00
co-authored by Cursor
parent c0fd2b9a0f
commit 780f873aa7
2 changed files with 8 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.
**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).
+6
View File
@@ -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') {