feat(ui-flow): composer focus after cleared search (v0.8.516)
Emit composer-focus-channel when update-search clears the query in guild mode. 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.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).
|
||||
|
||||
**v0.8.515 (Phase 552):** `run-audit-export-now` and `sync-audit-export-csv` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase552-compliance` (app repo).
|
||||
|
||||
**v0.8.498 (Phase 535):** `ban-member`, `kick-member`, and `timeout-member` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase535-moderation` (app repo).
|
||||
|
||||
@@ -1548,6 +1548,16 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
includeMesh: msg.includeMesh
|
||||
})
|
||||
pushState()
|
||||
if (
|
||||
!String(msg.query || '').trim() &&
|
||||
platform.mode === 'guild' &&
|
||||
platform.activeChannelId
|
||||
) {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'remove-search-recent') {
|
||||
|
||||
Reference in New Issue
Block a user