Private
Public Access
Replaces the Phase 1 placeholder UI with a single persistent app shell (top bar + sidebar + chat pane, 860px responsive breakpoint) matching the "PWA chat system UI" design handoff: message bubbles with consecutive-run avatar/name grouping, auto-growing composer, room search, and the real DarkSingularity logo (also used to regenerate the PWA icons). The handoff didn't cover Phase 2 (private rooms, roles, invites) or browsing/joining open rooms, so those are added using the same visual language: a room info panel with role badges, invite-by-username with a pending-invites list, member management (remove/promote/demote/transfer ownership), room settings (rename/describe/delete), and separate browse-rooms/invites-inbox modals. Unread badges, last-message preview, and the typing indicator are deliberately deferred -- both need new backend features (read-tracking, a WS typing event) that weren't in scope this pass. Two small backend additions round out data the new UI needs but the API didn't expose: MessageRead.username (historic messages had no sender name) and InviteRead.target_username / MyInviteRead.room_name+invited_by_username (a recipient's invite list can't otherwise resolve a room they're not in). Both are additive; 35 backend tests still pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
53 lines
904 B
CSS
53 lines
904 B
CSS
.room-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px var(--sp-4);
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border-left: 2px solid transparent;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.room-row:hover {
|
|
background: color-mix(in srgb, var(--ds-text) 5%, transparent);
|
|
}
|
|
|
|
.room-row-active,
|
|
.room-row-active:hover {
|
|
background: var(--ds-surface-2);
|
|
border-left-color: var(--ds-accent);
|
|
}
|
|
|
|
.room-row-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.room-row-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--ds-text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.room-row-lock {
|
|
flex: none;
|
|
color: var(--ds-muted);
|
|
}
|
|
|
|
.room-row-subtitle {
|
|
font-size: 0.8rem;
|
|
color: var(--ds-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-top: 2px;
|
|
}
|