[feat] connect drawer: pinnable tabs + status in header + live Toasts tab + toast routing; expose sessionHost - #45
Merged
Conversation
…ab + toast routing; expose sessionHost Reworks the connect drawer per the 2026-07-25 UX decisions. - PIN replaces the ✕: the pin keeps the tab bar (+ status) visible even when the body is collapsed, so it acts as a persistent mini-bar under the pill. The drawer renders when open OR pinned (drawerVisible); the body only when open. Persisted (connectDrawerPinned). - CONNECTION STATUS moved OUT of the Connect pill INTO the drawer tab-header (left of the pin): a dot + Offline/Waiting…/Connected(+N), plus a "N new request(s)" cue when a join request is pending. The pill now carries only actions (Connect/Cancel/ Disconnect) + invite id + chevron + Rooms. Removed the pill's now-unused status markup, host* deriveds, sessionHost import and cx-status/cx-dot CSS. - TOASTS TAB is now the LIVE toasts (pending connection requests with Approve/Reject, outbound Waiting…+Cancel, current messages with their actions) — the top-right bell keeps the full HISTORY. Toast ROUTING: viewport containers are hidden via CSS (timers keep running) — approval toasts hide when the drawer is OPEN (they surface in the Toasts tab + the header cue) but always pop in the viewport when it's closed; informational toasts also hide when the drawer is open OR when "Toasts in drawer only" is on. New stores connectDrawerPinned + toastsInDrawerOnly. - SETTINGS: the two connect options are TOGGLES now (not checkboxes) — "Toasts in drawer only" (core) + "Show Rooms button" (cloud, gated on the plugin). - cloudApi gains sessionHost() (v2.1) so the cloud plugin can make the session HOST the roles authority (admin) — paired with the cloud roles change. svelte-check 489/72 (under the 491/72 baseline — the onClose typing + removed deriveds netted -2). Verified headless via the engine + plugin: tabs + header status + pin, pin-collapse keeps the tab bar, live Toasts tab, pill status removed, no errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks the connect drawer per the latest UX decisions (pairs with the cloud roles PR).
svelte-check 489/72 (under baseline). Verified headless (pin-collapse, header status, live Toasts tab, pill status removed).