2026-03-23 22:06:59 +01:00
|
|
|
/* DM Sans — self-hosted (GDPR compliant) */
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'DM Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/dm-sans-400.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'DM Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/dm-sans-500.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'DM Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/dm-sans-600.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'DM Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/dm-sans-700.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'DM Sans';
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/dm-sans-400-italic.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* JetBrains Mono — self-hosted (GDPR compliant) */
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'JetBrains Mono';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/jetbrains-mono-400.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'JetBrains Mono';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/jetbrains-mono-500.woff2') format('woff2');
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'JetBrains Mono';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
src: url('./fonts/jetbrains-mono-600.woff2') format('woff2');
|
|
|
|
|
}
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
|
2026-04-09 18:31:51 +02:00
|
|
|
/* WCAG AA contrast overrides — design system defaults fail 4.5:1 minimum */
|
|
|
|
|
:root {
|
|
|
|
|
/* Light mode: #766A5E on #FFFFFF = 4.5:1 (was #9C9184 = 3.0:1) */
|
|
|
|
|
--text-muted: #766A5E;
|
2026-04-16 19:30:51 +02:00
|
|
|
/* White text on colored badge backgrounds (not in DS yet) */
|
|
|
|
|
--text-inverse: #fff;
|
fix(alerts/ui): page header, scroll, title preview, bell badge polish
Visual regressions surfaced during browser smoke:
1. Page headers — `SectionHeader` renders as 12px uppercase gray (a
section divider, not a page title). Replace with proper h2 title
+ inline subtitle (`N firing · N total` etc.) and right-aligned
actions, styled from `alerts-page.module.css`.
2. Undefined `--space-*` tokens — the project (and `@cameleer/design-system`)
has never shipped `--space-sm|md|lg|xl`, even though many modules
(SensitiveKeysPage, alerts CSS, …) reference them. The fallback
to `initial` silently collapsed gaps/paddings to 0. Define the
scale in `ui/src/index.css` so every consumer picks it up.
3. List scrolling — DataTable was using default pagination, but with
no flex sizing the whole page scrolled. Add `fillHeight` and raise
`pageSize`/list `limit` to 200 so the table gets sticky header +
internal scroll + pinned pagination footer (Gmail-style). True
cursor-based infinite scroll needs a backend change (filed as
follow-up — `/alerts` only accepts `limit` today).
4. Title column clipping — `.titlePreview` used `white-space: nowrap`
+ fixed `max-width`, truncating message mid-UUID. Switch to a
2-line `-webkit-line-clamp` so full context is visible.
5. Notification bell badge invisible — `NotificationBell.module.css`
referenced undefined tokens (`--fg`, `--hover-bg`, `--bg`,
`--muted`). Map to real DS tokens (`--text-primary`, `--bg-hover`,
`#fff`, `--text-muted`). The admin user currently sees no badge
because the backend `/alerts/unread-count` returns 0 (read
receipts) — that's data, not UI.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 10:40:28 +02:00
|
|
|
|
|
|
|
|
/* Spacing scale — DS doesn't ship these, but many app modules reference them.
|
|
|
|
|
Keep local here until the DS grows a real spacing system. */
|
|
|
|
|
--space-xs: 4px;
|
|
|
|
|
--space-sm: 8px;
|
|
|
|
|
--space-md: 16px;
|
|
|
|
|
--space-lg: 24px;
|
|
|
|
|
--space-xl: 32px;
|
2026-04-09 18:31:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="dark"] {
|
|
|
|
|
/* Dark mode: #9A9088 on #242019 = 4.5:1 (was #7A7068 = 2.9:1) */
|
|
|
|
|
--text-muted: #9A9088;
|
|
|
|
|
/* Dark mode: #6A6058 on #242019 = 3:1 (was #4A4238 = 1.4:1 — catastrophic) */
|
|
|
|
|
--text-faint: #6A6058;
|
|
|
|
|
}
|
|
|
|
|
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
:root {
|
|
|
|
|
font-family: 'DM Sans', system-ui, sans-serif;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html, body, #root {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|