From f05d739c1355887a6e7fb43814d480cbcafe50ed Mon Sep 17 00:00:00 2001 From: kert Date: Thu, 12 Nov 2026 20:29:17 -0500 Subject: [PATCH] fix(dashboard): grouped sections, aligned tiles, no theme overlay on the landing page (D1, R86) The landing page was getting /fhirworx.css (inject.css, the overlay for third-party UIs) from Traefik's inject-fhirworx rewrite of its head end tag; its generic rules shrank the h1, hid the "Infrastructure" heading on a navy bar and boxed the tagline in mono. index.html now leaves the optional head end tag out, so the rewrite has nothing to match. - tiles grouped into Apps / Data platform / Observability / Infrastructure (8/4/4/3) on a 4-2-1 column grid: no lone last tile - tiles are flex columns: health box and host line pinned to the floor, aligned across each row - GPU/DATA badges sit in the icon row at the right, clear of the top rule and the plate - host label drops under the title below 600px - LEAD and REACH get distinct titles; REACH is described as the explorer alias that also serves /releases - lead, reach and lex get their own glyphs (database-search, link, scale); chart-area-line stays on Grafana - footer year comes from the page script - "checking" stays quiet for 0.8 s, so fast probes do not flash it - keyboard focus ring and hover look on tiles; host line contrast (dropped the 0.7 opacity); reduced-motion turns off transitions - the stylesheet link carries ?v=; Cloudflare caches /dashboard.css at the edge for hours --- assets/css/dashboard.css | 106 ++++++++-- infra/nginx/index.html | 424 ++++++++++++++++++++++----------------- 2 files changed, 330 insertions(+), 200 deletions(-) diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index d110dfa..f9ed8f0 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -93,6 +93,20 @@ h1 { padding-bottom: 0.35rem; } +/* Narrow screens: the host label sits on its own line under the title + instead of squeezing beside it. */ +@media (max-width: 600px) { + .masthead-row { + flex-direction: column; + align-items: flex-start; + gap: 0.35rem; + } + .masthead-eyebrow { + align-self: flex-start; + padding-bottom: 0; + } +} + .tagline { font-family: var(--font-body); font-size: 1.125rem; @@ -102,7 +116,11 @@ h1 { margin-bottom: 1.5rem; } -/* ── Services section ─────────────────────────────────────── */ +/* ── Service sections ─────────────────────────────────────── */ + +.section + .section { + margin-top: 3rem; +} .section-header { margin-bottom: 1.5rem; @@ -129,14 +147,24 @@ h2 { /* ── Tile grid ────────────────────────────────────────────── */ +/* Four columns on a wide screen, two on a tablet, one on a phone. Three + would strand a lone tile in the four-tile sections. */ .grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; padding: 0; margin-top: 0; } +@media (max-width: 1099px) { + .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } +} + +@media (max-width: 639px) { + .grid { grid-template-columns: minmax(0, 1fr); } +} + .tile { background: var(--card); border: 1px solid var(--border); @@ -147,15 +175,31 @@ h2 { transition: border-color 0.15s ease, background 0.15s ease; cursor: pointer; text-decoration: none; - display: block; + /* A column, so the health box and host line sit on the tile's floor + and line up across a row however long the description runs. */ + display: flex; + flex-direction: column; + min-width: 0; } -.tile:hover { +.tile > .icon, +.tile > .tile-port { + align-self: flex-start; +} + +.tile:hover, +.tile:focus-visible { border-color: var(--primary); background: var(--card); } -.tile:hover .tile-title { +.tile:focus-visible { + outline: 2px solid var(--primary); + outline-offset: 2px; +} + +.tile:hover .tile-title, +.tile:focus-visible .tile-title { color: var(--primary); } @@ -164,7 +208,7 @@ h2 { .health { display: flex; flex-direction: column; - margin: 0 0 0.85rem; + margin: auto 0 0.85rem; padding: 8px 10px; border: 1px solid var(--border); border-left-width: 4px; @@ -186,10 +230,29 @@ h2 { color: var(--foreground); } -.health-ok { border-left-color: var(--chart-4) !important; } -.health-warn { border-left-color: var(--chart-5) !important; } -.health-bad { border-left-color: var(--destructive) !important; } -.health-unknown { border-left-color: var(--muted-foreground) !important; } +.health-ok { border-left-color: var(--chart-4); } +.health-warn { border-left-color: var(--chart-5); } +.health-bad { border-left-color: var(--destructive); } +.health-unknown { border-left-color: var(--muted-foreground); } + +/* The probes answer within a few tenths of a second, so "checking" and its + grey edge would only flash. Hold that state quiet for 0.8 s; a slow probe + still shows it. */ +.health-unknown { + animation: health-wait 0s linear 0.8s backwards; +} + +.health-unknown .health-v { + animation: health-wait-v 0s linear 0.8s backwards; +} + +@keyframes health-wait { + from, to { border-left-color: var(--border); } +} + +@keyframes health-wait-v { + from, to { visibility: hidden; } +} /* Icon plate — one navy line glyph in a hairline square, like the identification block on a technical drawing. Glyphs are the inline @@ -222,7 +285,8 @@ h2 { stroke-linejoin: round; } -.tile:hover .icon { +.tile:hover .icon, +.tile:focus-visible .icon { border-color: var(--primary); } @@ -262,7 +326,6 @@ h2 { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted-foreground); - opacity: 0.7; display: inline-block; } @@ -278,16 +341,21 @@ h2 { /* ── Badge labels ─────────────────────────────────────────── */ +/* In the icon row, opposite the plate: clear of the top rule and the + plate at any tile width. 20px tall, centred on the 44px plate. */ .badge { position: absolute; - top: -1px; - left: 1.5rem; /* the tile padding: flush with the icon plate below */ + top: calc(1.5rem + 12px); + right: 1.5rem; + height: 20px; font-family: var(--font-mono); color: var(--primary-foreground); font-size: 0.6rem; + line-height: 14px; padding: 3px 7px; text-transform: uppercase; letter-spacing: 0.08em; + white-space: nowrap; } .badge.new { background: var(--chart-5); } @@ -310,3 +378,13 @@ footer { footer span { color: var(--chart-5); } + +/* ── Motion ───────────────────────────────────────────────── */ + +@media (prefers-reduced-motion: reduce) { + .tile, + .tile .icon, + .tile-title { + transition: none; + } +} diff --git a/infra/nginx/index.html b/infra/nginx/index.html index 859fca3..e6a83b6 100644 --- a/infra/nginx/index.html +++ b/infra/nginx/index.html @@ -7,24 +7,37 @@ - - + + + + theme overlay already uses; database-search and link come from the + 3.49.0 outline set, scale is the lex page's own glyph. Stroke and size + come from dashboard.css. -->
-
- Services -

Infrastructure

-
+
-
- - GPU - -
Chat
-
Comment Chat
-

RAG chat over indexed CMS rulemaking comments, with cited sources

- healthchecking - -
-
+
+
+ Analysis & research +

Apps

+
- - -
Claims
-
BCDA Manager
-

Beneficiary Claims Data API v3 — exports, store, load, crosswalk

- healthchecking - -
-
+
+ + GPU + +
Chat
+
Comment Chat
+

RAG chat over indexed CMS rulemaking comments, with cited sources

+ healthchecking + +
+
- - -
LEAD
-
Public mirror
-

Read-only explorer over the public-data DuckDB mirror

- healthchecking - -
-
+ + +
Claims
+
BCDA Manager
+

Beneficiary Claims Data API v3 — exports, store, load, crosswalk

+ healthchecking + +
+
- - -
REACH
-
Public mirror
-

Read-only explorer over the public-data DuckDB mirror

- healthchecking - -
-
+ + +
LEAD
+
Public-data explorer
+

Write-up, tables, series and SQL over the read-only public-data DuckDB mirror

+ healthchecking + +
+
- - -
LEX
-
Code-family dossiers
-

Legal-epidemiology workbench for CMS payment and quality rules

- healthchecking - -
-
+ + +
REACH
+
Explorer alias
+

The same LEAD explorer at a second address; /releases serves the living-review bags

+ healthchecking + +
+
- - -
Networking
-
Traefik
-

Cloud-native reverse proxy and load balancer with automatic TLS

- healthchecking - -
-
+ + +
LEX
+
Code-family dossiers
+

Legal-epidemiology workbench for CMS payment and quality rules

+ healthchecking + +
+
- - -
Storage
-
RustFS
-

S3-compatible object storage for all your data needs

- healthchecking - -
-
+ + GPU + +
Analysis
+
Notebooks
+

Marimo reactive notebooks with CUDA acceleration

+ healthchecking + +
+
- - -
Version Control
-
Gitea
-

Self-hosted Git service with packages and CI

- healthchecking - -
-
+ + GPU + +
Research
+
Zotero
+

Research reference manager in the cloud

+ healthchecking + +
+
- - GPU - -
Analysis
-
Notebooks
-

Marimo reactive notebooks with CUDA acceleration

- healthchecking - -
-
+ + +
Documentation
+
Docs
+

API reference and CMS bibliography browser

+ healthchecking + +
+
+
+
- - GPU - -
Research
-
Zotero
-

Research reference manager in the cloud

- healthchecking - -
-
+
+
+ Lakehouse +

Data platform

+
- - -
Documentation
-
Docs
-

API reference and CMS bibliography browser

- healthchecking - -
-
+ +
- - -
Observability
-
Grafana
-

Observability dashboards for metrics, logs, and traces

- healthchecking - -
-
+
+
+ Metrics · logs · traces +

Observability

+
- - -
Tracing
-
Tempo
-

Distributed tracing for microservices

- healthchecking - -
-
+ + + +
Tracing
+
Tempo
+

Distributed tracing for microservices

+ healthchecking + +
+
+
+ + +
+
+ Edge · source · API +

Infrastructure

+
+ + +
+ +
@@ -282,6 +328,12 @@ if (port) port.textContent = fqdn; paintHealth(el, origin, sub, fqdn); }); + var year = document.querySelector('.footer-year'); + if (year) { + var y = String(new Date().getFullYear()); + year.textContent = y; + year.setAttribute('datetime', y); + } })();