From c04227a7631553100f71d69fa6253bb0bb88e0d6 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 26 Nov 2026 13:53:25 -0500 Subject: [PATCH 1/2] UI: light/dark switch in the header (operator request) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The design system already renders light when the browser prefers it; this adds the same ☀ button Gandalf has (lt.theme.toggle). The choice is remembered per browser (localStorage) and synced across tabs; until it is used, the browser's preference still decides. Co-Authored-By: Claude Opus 5.5 --- tests/test_web_ui_api.py | 1 + thor/web/templates/base.html | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_web_ui_api.py b/tests/test_web_ui_api.py index 4f85c28..b46ca6e 100644 --- a/tests/test_web_ui_api.py +++ b/tests/test_web_ui_api.py @@ -145,6 +145,7 @@ def test_needs_attention_page(store): assert 'Loki: blind' in html and 'HTTP 500' in html assert 'On the timeline only' in html and 'monitor-01 slow' in html # unexplained symptom assert 'Last 7 days' in html and 'storage-01 oom' in html + assert 'id="lt-theme-btn"' in html and 'lt.theme.toggle()' in html # light/dark switch def test_incident_and_known_pages(store): diff --git a/thor/web/templates/base.html b/thor/web/templates/base.html index b23eea8..4b02998 100644 --- a/thor/web/templates/base.html +++ b/thor/web/templates/base.html @@ -48,6 +48,8 @@
+ {% if user.name %}{{ user.name }}{% endif %} {% if 'admin' in user.groups %}admin{% endif %}
@@ -64,7 +66,12 @@ {% block scripts %}{% endblock %} From 2e19c8bfe296189179ecc40f9d937cdd112371b1 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 26 Nov 2026 13:55:05 -0500 Subject: [PATCH 2/2] UI: spell out THOR in the header like Gandalf does THOR is Total Hardware Operations Resolver: glitch title plus the expansion with the initials picked out, the same treatment as Gandalf's header (operator request). Co-Authored-By: Claude Opus 5.5 --- tests/test_web_ui_api.py | 1 + thor/web/static/style.css | 4 ++++ thor/web/templates/base.html | 7 ++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/test_web_ui_api.py b/tests/test_web_ui_api.py index b46ca6e..5560497 100644 --- a/tests/test_web_ui_api.py +++ b/tests/test_web_ui_api.py @@ -146,6 +146,7 @@ def test_needs_attention_page(store): assert 'On the timeline only' in html and 'monitor-01 slow' in html # unexplained symptom assert 'Last 7 days' in html and 'storage-01 oom' in html assert 'id="lt-theme-btn"' in html and 'lt.theme.toggle()' in html # light/dark switch + assert 'Total Hardware
Operations Resolver' in html def test_incident_and_known_pages(store): diff --git a/thor/web/static/style.css b/thor/web/static/style.css index eade92c..932d7db 100644 --- a/thor/web/static/style.css +++ b/thor/web/static/style.css @@ -11,6 +11,10 @@ .t-note { color: var(--text-secondary); font-size: .88em; max-width: 70ch; } .t-err { color: var(--accent-red); } +/* Brand: the acronym spelled out under the title, as Gandalf does */ +.t-brand-expansion { letter-spacing: .08em; line-height: 1.35; } +.t-brand-expansion b { color: var(--accent-cyan); font-weight: 700; } + /* 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; } diff --git a/thor/web/templates/base.html b/thor/web/templates/base.html index 4b02998..3d79f08 100644 --- a/thor/web/templates/base.html +++ b/thor/web/templates/base.html @@ -5,7 +5,7 @@ - + {% block title %}Needs attention{% endblock %} | THOR @@ -37,8 +37,9 @@
- THOR - Host and cluster health, seen from outside + THOR + Total Hardware
Operations Resolver