Rebuild frontend from the Claude Design handoff, DarkSingularity brand

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>
This commit is contained in:
2026-08-13 21:10:58 -06:00
co-authored by Claude Sonnet 5
parent c79e96dd48
commit e9fcb9fea2
51 changed files with 2510 additions and 290 deletions
+96
View File
@@ -0,0 +1,96 @@
.top-bar {
height: 56px;
min-height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--sp-4);
background: var(--ds-surface);
border-bottom: 1px solid var(--ds-border);
}
.top-bar-brand {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.top-bar-logo {
width: 28px;
height: 28px;
border-radius: 6px;
object-fit: cover;
flex: none;
}
.top-bar-title {
font-weight: 700;
font-size: 1.02rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.top-bar-user {
position: relative;
flex: none;
}
.top-bar-avatar {
width: 30px;
height: 30px;
border-radius: var(--radius-pill);
background: var(--ds-accent-3);
border: none;
color: var(--ds-text);
font-size: 0.78rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.top-bar-menu-scrim {
position: fixed;
inset: 0;
z-index: 30;
}
.top-bar-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 31;
background: var(--card-bg);
border: 1px solid var(--ds-border);
border-radius: var(--radius);
padding: var(--sp-2);
min-width: 160px;
display: flex;
flex-direction: column;
gap: 2px;
}
.top-bar-menu-username {
font-size: 0.78rem;
color: var(--ds-muted);
padding: 6px 8px 4px;
font-weight: 700;
}
.top-bar-menu button[role='menuitem'] {
background: transparent;
border: none;
color: var(--ds-text);
text-align: left;
padding: 8px;
border-radius: 6px;
font-size: 0.86rem;
cursor: pointer;
}
.top-bar-menu button[role='menuitem']:hover {
background: var(--ds-surface-2);
}