Commit 7737d5f
* docs(#79): add HAProxy dashboard stack-layout research
Captures current-state analysis, best-practice survey (Portainer / Lens /
ArgoCD / Datadog / HAProxy stats / Grafana / NN/g), three layout options
with ASCII mockups, and a recommendation (stack-as-section + compact
backend cards). Includes live screenshot of the current dashboard with
the duplicated 6-container Arr stack and live-inspection notes on the
bottom-of-page widgets (which render correctly in current dev — likely
already fixed since the issue was filed).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(#79): hoist stack topology out of repeated backend cards
Previously every backend card re-rendered the full docker-compose stack's
container topology with one container highlighted. A 5-route Arr stack
with 6 containers drew the same 6-container diagram 5 times — visual
noise, wasted vertical space, easy to misread as duplicate state.
Group backends by parsed `BackendGroupInfo.Group` (the docker-compose
project prefix). Multi-backend stacks now render as a labeled `<section>`
with:
- "STACK" badge + capitalized stack name + "N backends · M containers"
- The merged container topology rendered ONCE
(IsBackend OR'd across all members so every actually-routed container
shows blue)
- A grid of compact backend cards below — no inline ContainerDiagram
Singleton non-hardware backends and hardware backends fold into trailing
synthetic Standalone / Hardware buckets, which render as a flat card
grid with no wrapper chrome — preserving the existing look-and-feel for
trivial cases (vaultwarden, gitea, IPMI hosts, etc).
Tooltip text in BackendCard gets a new "Stack Member" branch so cards
inside a stack section no longer mislabel themselves as "Hardware
Service". Hardware check moved to the top of the chain to avoid the
empty-containers fall-through.
Verified against the live light-hugger agent:
- HTML for /htmx/light-hugger/stats contains exactly two `<section>`
blocks: Arr (5 backends · 6 containers) and Qbittorrent (2 backends
· 2 containers). All 26 backends present in the DOM.
- arr_sonarr_backend's card no longer contains a ContainerDiagram
(the bg-blue-100 / bg-gray-100 chips for sibling containers are gone)
- vaultwarden_vaultwarden_backend's standalone card still renders its
single container topology as before.
- `go build -tags dev`, `go build`, `go vet -tags dev ./...`, and
`go vet ./...` all pass.
See docs/research/haproxy-dashboard-stack-layout.md for the full
research, layout-option comparison, and recommendation that this commit
implements (Option 1: stack-as-section + compact backend cards).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat: enhance StackSection rendering for multi-backend stacks and add stackBucketHeader and stackTopologyChip templates
* feat: enhance GetUserPermissions to prefer user from context for improved auth handling
* feat: refactor StackGroup and StackSection to consolidate standalone and hardware backends into a flat bucket
* chore(#79): drop dead singleContainerDiagram; document final layout
singleContainerDiagram was reachable only when BackendCard called
ContainerDiagram with len(containers) == 1, but the per-card diagram
is now only drawn for multi-container topology (len > 1) — the singleton
case renders the IP inline in the card header instead. The len == 1
branch inside ContainerDiagram became unreachable, and the helper that
backed it was dead. Removed both; ContainerDiagram now collapses to
"VPN gateway or simple multi-container," which matches its actual scope.
Also extended docs/research/haproxy-dashboard-stack-layout.md with a
"What shipped" section so the doc isn't stuck at "no code changes yet" —
captures the refinements that landed after the initial Option 1 design
(headerless flat bucket, inStackSection title flag, cursor-help removal,
ACTIVE pill suppression, tooltip anchor flip, baseline alignment).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2dbed9b commit 7737d5f
7 files changed
Lines changed: 812 additions & 61 deletions
File tree
- docs/research
- images
- gearbox/internal/framework
- auth
- templates
- components
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
Large diffs are not rendered by default.
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
641 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
642 | 651 | | |
643 | 652 | | |
644 | 653 | | |
| |||
Lines changed: 7 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | | - | |
14 | 19 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 20 | | |
19 | | - | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 61 | | |
75 | 62 | | |
76 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
353 | 487 | | |
354 | 488 | | |
355 | 489 | | |
| |||
0 commit comments