Commit b218dd3
authored
web/admin: SPA Messages tab + Purge button + DLQ chips (Phase 5) (#798)
## Summary
Phase 5 of `docs/design/2026_05_16_proposed_admin_purge_queue.md` —
operator-facing SPA UI for the `AdminPeekQueue` / `AdminPurgeQueue`
endpoints PR #797 wired. The queue detail page now ships:
- **DLQ chip + "DLQ for" sources list** — when another queue's
`RedrivePolicy` points at this queue, a pill in the header marks it as a
DLQ and a section below lists the source queues (each linked to its
detail page so the operator can navigate the topology).
- **Messages section** — paginated table of currently-visible messages:
message-id prefix, sent timestamp, FIFO `MessageGroupId` (column shown
only on FIFO queues), receive count, body preview, original size.
Row-click opens a detail modal showing the full body, every attribute
(typed `String` / `Binary` / `Number` etc.), and a "Copy as JSON" button
writing a schema-versioned payload to the clipboard.
- **Purge button** — labelled `Purge messages` or `Purge DLQ` depending
on `is_dlq`. Confirmation modal requires typing the exact queue name; on
429 `PurgeQueueInProgress` the modal stays open and surfaces the
rate-limit message.
> 4 files changed
Lines changed: 500 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
47 | 44 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 45 | + | |
53 | 46 | | |
54 | 47 | | |
55 | 48 | | |
| |||
698 | 691 | | |
699 | 692 | | |
700 | 693 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
705 | 697 | | |
706 | 698 | | |
707 | 699 | | |
| |||
712 | 704 | | |
713 | 705 | | |
714 | 706 | | |
| 707 | + | |
715 | 708 | | |
716 | 709 | | |
717 | 710 | | |
718 | | - | |
| 711 | + | |
719 | 712 | | |
720 | 713 | | |
721 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
219 | 255 | | |
220 | 256 | | |
221 | 257 | | |
| |||
311 | 347 | | |
312 | 348 | | |
313 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
314 | 365 | | |
315 | 366 | | |
316 | 367 | | |
| |||
0 commit comments