Skip to content

[fix] connect/roles/avatar: pill width, pinned tabs, per-peer roles, redesigned request toast - #46

Merged
AlexZ005 merged 1 commit into
mainfrom
feature/connect-roles-avatar-fixes
Jul 25, 2026
Merged

[fix] connect/roles/avatar: pill width, pinned tabs, per-peer roles, redesigned request toast#46
AlexZ005 merged 1 commit into
mainfrom
feature/connect-roles-avatar-fixes

Conversation

@AlexZ005

Copy link
Copy Markdown
Collaborator

Core half of a fix batch (pairs with a cloud plugin PR).

  • Pill width stable across states (gray disabled input in connected/pending → drawer never reflows on connect).
  • Pinned tabs: chevron reopens the last tab; clicking a tab opens the body; clicking the active tab collapses; highlight only shows while open (click-away clears it).
  • Roles bridge (rolesInfo hook + 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.
  • Connection-request toast redesigned → clean dark card with Approve / Approve + edit / Reject (edit grants editor via roles). Same in the drawer's Toasts tab.

svelte-check 485/72 (under baseline). Headless-verified pinned-tab UX + registration + no errors.

…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>
@AlexZ005
AlexZ005 merged commit 0f7db34 into main Jul 25, 2026
@AlexZ005
AlexZ005 deleted the feature/connect-roles-avatar-fixes branch August 5, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant