[fix] connect/roles/avatar: pill width, pinned tabs, per-peer roles, redesigned request toast - #46
Merged
Merged
Conversation
…oles, redesigned request toast Core half of a fix batch (pairs with the cloud plugin PR). - Pill WIDTH is now stable across states: connected/pending keep a gray disabled input the same width as idle, so the drawer (which matches the pill width) never reflows on connect. - PINNED-tab UX: the chevron reopens the LAST-viewed tab (not Info); clicking a tab opens the body to it; clicking the active tab collapses the body; the highlight only shows while the body is open (so a pinned bar with a closed body shows no active tab, and clicking away clears it). - ROLES bridge: new cloudHooks `rolesInfo` (+ cloudApi setRolesInfo) lets the plugin publish live roles. Core renders a per-peer role control in the peers popover NEXT TO Watch (a badge, or a select for the admin), shows your own role, adds a name TOOLTIP, and the peer list SCROLLS (max ~6-7 rows) instead of growing unbounded. Peer avatars get rounded-full (they were square when a peer had no picture). - Connection-request toast REDESIGNED (off-pattern green flowbite → a clean dark card): Approve / Approve + edit (grants editor via rolesInfo when the cloud plugin is on) / Reject. Same actions in the drawer's Toasts tab. svelte-check 485/72 (under the 489/72 baseline). Verified headless: pinned-tab UX (open/collapse/click-away/chevron-reopens-last), plugin registration, no runtime 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.
Core half of a fix batch (pairs with a cloud plugin PR).
rolesInfohook +setRolesInfo): per-peer role control in the peers popover next to Watch (badge / admin select), own-role badge, name tooltip, and the peer list scrolls (~6-7 rows). Peer avatars rounded.svelte-check 485/72 (under baseline). Headless-verified pinned-tab UX + registration + no errors.