# Felhom Hub — Changelog ## docs — Felhom skills introduced + CLAUDE.md refresh (2026-07-03) Repo-level docs work alongside v0.31.0 (no hub code in this entry): - **`skills/`** (new, repo root): three versioned Claude Code skills — `felhom-build-deploy` (per-artifact runbooks, all commands verified live), `felhom-ui-design` (v2 tokens + gates), `felhom-testing` (non-hollow doctrine + red-proof procedure). Installed to `~/.claude/skills/` via `scripts/install_skills.py` (junction mode verified). - **CLAUDE.md refresh:** the "Hub — current state (v0.7.x)" narrative (stale by ~23 versions) replaced with a version-free architecture section; standing rule adopted — CLAUDE.md carries NO version-pinned state (that lives in CONTEXT/CHANGELOG/REUSE); skills pointers added. Same rule applied to the sibling repos' CLAUDE.md in their own commits. ## v0.31.0 — critical severity accepted at event ingest + visible in UI (2026-07-03) Fixes the gotcha the REUSE sweep surfaced: `handleEvent` coerced any severity outside {info,warning,error} — including `"critical"` — to `"info"` at ingest, so a controller-POSTed critical event never notified even though the dispatcher (`severityNotifies`, v0.24.0) and `FormatOperatorEmail` already handle critical correctly. - **Ingest (`internal/api/handler.go` `handleEvent`):** `"critical"` added to the severity case list. Unknown values (and case-variants like `"Critical"`) still coerce to `"info"` — the exact-match-lowercase coercion contract is kept and now locked by test. - **Hungarian label (`internal/notify/templates.go`):** `severityLabels["critical"] = "Kritikus hiba"` (was missing — customer emails would have shown the raw English word). - **UI counts:** dashboard consumer (`internal/web/server.go`) gains `EventCriticals`; `dashboard.html` renders the critical badge FIRST in the 24h count chain (guard extended); `customer_unified.html` gains the `{{.}} critical` summary badge before errors. - **style.css:** defines the previously-referenced-but-undefined `.severity-critical` (`--crit`/`--crit-dim` tokens) and `.severity-ok` (neutral, exception-color principle). No other restyle. - **Tests (`internal/api/event_test.go`, new):** critical preserved to store (companion red-proof: shown failing against the pre-fix switch — stored `"info"`); unknown severity → info; unknown event_type → 400 + nothing stored; no-auth → 401. First tests on the /event endpoint. - REUSE.md §1/§3 updated in the same commit (the maintenance rule's first outing). ## docs — REUSE.md introduced (2026-07-03) Cross-repo reuse-map rollout (docs-only, no code change, no version bump). New `REUSE.md` at the repo root covering hub + website + scripts + manifests: canonical helpers (34 rows), patterns (monitor checker, website page, gate script, GitOps deploy), dangerous lookalikes (legacy /notify trio, severity-`critical` coercion at handleEvent ingest, inline stringData secrets, kubectl-apply drift…), seams, extension points, and observed duplication (5 clusters, NOT fixed). New `scripts/reuse_refs_check.py` machine-checks every cited path in all four repos' REUSE.md files. CLAUDE.md gains the REUSE.md pointer + same-commit maintenance rule. ## v0.30.1 — status badge no-wrap (2026-07-02) Found in the authenticated D4 validation pass: multi-word status tags (PENDING in a narrow dashboard column, NO REPORT on hosts) wrapped between the CSS dot and the label. One line: `white-space: nowrap` on `.status-badge`. ## v0.30.0 — TASK-D4: design system v2 re-skin (appearance only) (2026-07-02) Last surface of the design sprint (controller D0/D1, website D3). The hub leaves its Tailwind-slate theme for the canonical navy v2 language. **API surface untouched** (`/api/*` ingestion, artifact manifest, config generation, DR/escrow — `git diff` clean under internal/api + internal/store). - **Fonts (`internal/web/static/fonts/`, embed.go, server.go):** the 4 vendored woff2 (byte-copied from felhom-controller; latin-ext for Hungarian customer names in an English UI), embedded and served at `/static/fonts/` (font/woff2, immutable), mirroring the chart.min.js pattern. No CDN before or after. - **`statusColor` semantic remap (server.go):** returns `nominal/warn/crit/neutral` class tokens instead of raw hex colors — ok→nominal, warn+stale→warn, down+fail→crit, pending+disabled→neutral (a not-yet-provisioned or deliberately paused customer is a normal fleet state), blocked→warn (intentional operator cut-off: attention-worthy, not an outage). The inline `style="color: {{statusColor}}"` pattern is dead (dashboard + customer_unified use class-based `.status-dot-`); `statusIcon` ("●") retired. Truth-table test red-proven vs the old implementation; new template-parse test (neither existed for the hub). - **style.css v2:** navy tokens + @font-face; 2px radius; hairline `--line-soft` table rows (fleet-NOC density kept); `.status-badge` re-expressed as an outline tag + CSS dot per the design-system addendum (ok=blue, warn/blocked/stale=amber+dim, down/fail=red+dim, pending/disabled=quiet neutral with hollow dot); severity badges stay filled amber/red (exceptions stay loud); config badges = filled informational chips in v2; row tint only for warn/down. Two-tone brand H1 (`Felhom Hub`) on all pages; 12-symbol Lucide sprite partial included per page. - **Charts (app_detail):** avg memory `#2EA8F5`, peak `#8E7CE8` (secondary DATA series — not status red), catalog-limit line `#E0A93E` (threshold marker); legend/tick/grid → v2 literals. - customer_unified JS status-message colors → blue-bright/crit; login page inline HTML retinted. - Grep gate: all slate hexes (`#0f172a #1e293b #334155 #60a5fa #4ade80 #facc15 #f87171 #94a3b8 #64748b #475569 #e2e8f0`) at zero across internal/web (non-test). ## v0.29.0 — Day-0 artifact manifest: version dropdowns + auto-derived sha (2026-07-01) Removes the hand-copied sha256 from the Day-0 artifact manifest. The operator now **picks a version** from a dropdown of what's actually in Gitea (olders get pruned), and the hub **reads that version's sha256 from Gitea itself** — no transcription, no stale checksums. Keeps the human-in-the-loop trust gate (the operator still deliberately chooses the version; "latest" is never auto-promoted) while the hub stays the checksum trust root. - **`internal/gitea`** (new): a minimal read-only Gitea packages client — `ListVersions` (generic package versions, newest-semver first) + `FileSHA256` (a version's file sha256 via the files-metadata API, **without downloading** the artifact — important for the ~GB golden). Basic-auth with the registry creds the hub already holds. Unit-tested against an httptest server (filter+sort, preferred file match + fallback, non-200 → error). - **Configuration → Day-0 artifacts:** the two version text inputs are now `