Commit dfffbd8
authored
Adds the next L2 admin UI tab after Personas (#170). Three sub-tabs:
1. In-L2 threads — peer-to-peer agent communication inside this L2
(rendered from GET /crosstalk/threads). Subject, participants
count + 5-min "live" indicator, status, opened-at. Click a row →
drawer with full message timeline, admin-override close, and
markdown export.
2. Consult inbox — peer-Enterprise consults addressed to this L2
(GET /consults/inbox). From-Enterprise + persona, topic, status,
opened-at. Drawer shows envelope timeline + claimed_by.
3. Consult outbox — derived from /activity event_type=consult_open
(no /consults/outbox endpoint yet, surfaced as backend gap).
Best-effort; the inline note flags that receiver-side status is
not preserved in the activity-log payload.
Frontend-only. Reuses the cyan-eyebrow brand chrome from #181 and the
row+drawer pattern from #183 — no new design primitives.
Bundle delta: +4.56 KB gzipped (255.24 → 259.80) — under the 5 KB
ceiling specified in the issue.
Backend gaps (to be opened as follow-up issues):
- GET /consults/outbox does not exist; the page reconstructs from
activity log.
- ThreadSummary lacks message_count + last_message_at; the list
view defers to per-thread fetch for the authoritative count.
- Per-thread routing health (AIGRP latency, signature success-rate)
needs an aggregated read; placeholder copy in the drawer.
Tests: 5 vitest cases covering empty-state, in-L2 listing, search
filter, consult-inbox sub-tab, and outbox derivation. All 32 frontend
tests pass; biome lint clean.
1 parent 528222d commit dfffbd8
7 files changed
Lines changed: 1717 additions & 0 deletions
File tree
- server/frontend/src
- components
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
170 | 233 | | |
171 | 234 | | |
172 | 235 | | |
0 commit comments