feat(ui-flow): server-folder-created IPC for undo toast (Phase 129)

After create-server-folder (with optional initialGuildId assign), emit
server-folder-created so the desktop UI can show an undo toast that
deletes the folder and unassigns the guild.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 10:44:40 -04:00
co-authored by Cursor
parent 26a1a718de
commit 8d9a39b9d8
+5
View File
@@ -1026,6 +1026,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
await platform.assignGuildToFolder(msg.initialGuildId, folder.id)
}
pushState()
send({
type: 'server-folder-created',
folder,
initialGuildId: msg.initialGuildId || null
})
return true
}
if (t === 'delete-server-folder') {