Files
thor/thor/web/static/style.css
T
jaredandClaude Opus 5.5 ab4b20d15f
CI / Lint (flake8, house style) (pull_request) Successful in 56s
CI / Test (pytest) (pull_request) Successful in 53s
CI / Security (bandit, pip-audit) (pull_request) Successful in 1m8s
CI / Integration (MariaDB) (pull_request) Successful in 1m49s
CI / UI (screenshots) (pull_request) Failing after 1m7s
CI / Scan (secrets, workflows, shell, patterns) (pull_request) Successful in 1m58s
CI / Deploy (pull_request) Skipped
UI and API: Needs attention, incident pages, known conditions, /covering for Gandalf and hwmonDaemon
- thor/web/api.py: /api/incidents/covering (thor#1 pre-check), /api/incidents, /api/incident/<key>,
  machine keys by SHA-256 with optional source CIDRs, like Gandalf's (gandalf#68); 503 when the
  database is away so callers fail open. covered=true only when there is a ticket to comment on;
  shadow incidents are listed but never cover.
- thor/web/ui.py + templates: Needs attention (incidents, Thor itself, timeline-only, known
  conditions seen again, unexplained symptoms), incident page (what happened, also seen, what
  Thor sent or would have sent, ticket text), known conditions. Read-only; CSP with nonces;
  Authelia identity shown only when it comes from NPM. Mobile nav drawer.
- web_template v1.2 (8286bb2) vendored and checked against upstream in CI.
- docs/contract.md: the /covering contract for the Gandalf and hwmonDaemon sessions.
- scripts/ui_demo.py + scripts/screenshots.py, and a CI job that renders every page with replay
  data (desktop, mobile, dark, light) and uploads the screenshots.
- Fix: systemd-escaped cpusets (system-ceph\x2dosd.slice) were not recognised as Ceph; four of
  the 11-23 kills came from the OSD slice. Found while reviewing the screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:23:43 -05:00

60 lines
3.8 KiB
CSS

/* Thor's own styles, on top of the LotusGuild design system (web_template/base.css).
The "Needs attention" groups follow Gandalf's dashboard so the two apps read alike. */
.t-section { margin: 0 0 var(--space-xl); }
.t-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md);
border-bottom: 1px solid var(--border-dim); margin-bottom: var(--space-md); padding-bottom: var(--space-xs); }
.t-section-title { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; margin: 0;
color: var(--text-accent); display: flex; align-items: center; gap: var(--space-sm); }
.t-section-meta { color: var(--text-muted); font-size: .82em; }
.t-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.t-note { color: var(--text-secondary); font-size: .88em; max-width: 70ch; }
.t-err { color: var(--accent-red); }
/* Needs attention (same shape as Gandalf's) */
.attention-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.attention-group { border: 1px solid var(--border-dim); background: var(--bg-card); padding: 12px 14px; }
.attention-group-title { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px;
color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.attention-group-broken .attention-group-title { color: var(--accent-red); }
.attention-count { font-size: .78em; padding: 0 6px; border: 1px solid var(--border-color); color: var(--text-secondary); }
.attention-list { list-style: none; margin: 0; padding: 0; }
.attention-item { position: relative; padding: 7px 0 7px 14px; border-top: 1px solid var(--border-dim); font-size: .9em; }
.attention-item:first-child { border-top: 0; }
.attention-item::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; }
.attention-bad::before { background: var(--accent-red); }
.attention-warn::before { background: var(--accent-amber); }
.attention-info::before { background: var(--accent-cyan); }
.attention-link { color: var(--text-primary); text-decoration: none; }
.attention-link:hover, .attention-link:focus-visible { color: var(--accent-cyan); text-decoration: underline; }
.attention-detail { color: var(--text-muted); font-size: .86em; margin: 2px 0 0; }
.attention-clear { color: var(--accent-green); font-size: .86em; margin: 0; }
.attention-empty { color: var(--text-muted); font-size: .86em; margin: 0; }
/* Priority chips */
.t-prio { display: inline-block; font-size: .75em; font-weight: 700; padding: 0 5px; margin-right: 6px;
border: 1px solid currentColor; vertical-align: 1px; }
.t-prio-bad { color: var(--accent-red); }
.t-prio-warn { color: var(--accent-amber); }
.t-prio-info { color: var(--accent-cyan); }
/* Incident page */
.t-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: .9em; }
.t-facts dt { color: var(--text-muted); }
.t-facts dd { margin: 0; }
.t-timeline { list-style: none; margin: 0; padding: 0; font-size: .88em; }
.t-timeline li { padding: 5px 0; border-top: 1px solid var(--border-dim); }
.t-timeline li:first-child { border-top: 0; }
.t-timeline time { color: var(--accent-cyan); margin-right: 8px; font-variant-numeric: tabular-nums; }
.t-preview-title { font-size: .85em; }
.t-preview { white-space: pre-wrap; font-size: .82em; background: var(--bg-terminal); border: 1px solid var(--border-dim);
padding: 12px; max-height: 520px; overflow: auto; color: var(--text-secondary); }
.t-footer { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px var(--space-lg); color: var(--text-muted);
font-size: .78em; border-top: 1px solid var(--border-dim); }
.t-footer a { color: var(--text-muted); }
@media (max-width: 900px) {
.attention-groups, .t-columns { grid-template-columns: 1fr; }
}