feat(ui-flow): announcement follow sidecar and cross-post retry IPC

Emit announcement-follow-changed after follow/unfollow and handle
retry-announcement-crosspost for failed mirror fanout (Phase 680).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 23:39:50 -04:00
co-authored by Cursor
parent 0d4bbcf87f
commit 38c9034424
2 changed files with 9 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. Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 680 (v0.8.655):** `announcement-follow-changed`, `retry-announcement-crosspost` IPC + composer blur sidecar. Bundle: `npm run test:ci-phase680`.
**Phase 679 (v0.8.654):** `thread-modal-open``thread-modal-opened`; `create-thread` passes `autoArchiveMinutes`. Bundle: `npm run test:ci-phase679`. **Phase 679 (v0.8.654):** `thread-modal-open``thread-modal-opened`; `create-thread` passes `autoArchiveMinutes`. Bundle: `npm run test:ci-phase679`.
**Phase 668 (v0.8.643):** IPC `composer-embed-prefetch` → platform `prefetchComposerEmbed`; `composer-embed-preview-clear``clearComposerEmbedPreview`. Bundle: `npm run test:ci-phase668`. **Phase 668 (v0.8.643):** IPC `composer-embed-prefetch` → platform `prefetchComposerEmbed`; `composer-embed-preview-clear``clearComposerEmbedPreview`. Bundle: `npm run test:ci-phase668`.
+7
View File
@@ -640,11 +640,18 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'follow-announcement') { if (t === 'follow-announcement') {
await platform.followAnnouncementChannel(msg.channelId) await platform.followAnnouncementChannel(msg.channelId)
pushState() pushState()
send({ type: 'announcement-follow-changed', channelId: msg.channelId, following: true })
return true return true
} }
if (t === 'unfollow-announcement') { if (t === 'unfollow-announcement') {
await platform.unfollowAnnouncementChannel(msg.channelId) await platform.unfollowAnnouncementChannel(msg.channelId)
pushState() pushState()
send({ type: 'announcement-follow-changed', channelId: msg.channelId, following: false })
return true
}
if (t === 'retry-announcement-crosspost') {
await platform.retryAnnouncementCrosspost(msg.messageId)
pushState()
return true return true
} }
if (t === 'add-guild-boost') { if (t === 'add-guild-boost') {