2026-02-20 02:51:41 +00:00
|
|
|
/* ── Mission Control palette ──────────────────────── */
|
2026-02-19 19:05:01 +00:00
|
|
|
:root {
|
|
|
|
|
--bg-deep: #060d14;
|
|
|
|
|
--bg-panel: #0c1824;
|
|
|
|
|
--bg-card: #0f2030;
|
|
|
|
|
--border: #1a3a55;
|
|
|
|
|
--border-glow: #1e4d72;
|
|
|
|
|
--text: #b8d0e8;
|
|
|
|
|
--text-dim: #4a7a9a;
|
|
|
|
|
--text-bright: #ddeeff;
|
|
|
|
|
--green: #00e87a;
|
|
|
|
|
--green-dim: #00704a;
|
|
|
|
|
--amber: #ffb800;
|
|
|
|
|
--amber-dim: #7a5800;
|
|
|
|
|
--red: #ff4455;
|
|
|
|
|
--red-dim: #7a1a22;
|
|
|
|
|
--blue: #00aaff;
|
2026-02-20 02:51:41 +00:00
|
|
|
--font: 'JetBrains Mono', 'Courier New', monospace;
|
|
|
|
|
--header-h: 52px;
|
|
|
|
|
|
|
|
|
|
/* Bootstrap dark-mode overrides */
|
|
|
|
|
--bs-body-bg: var(--bg-deep);
|
|
|
|
|
--bs-body-color: var(--text);
|
|
|
|
|
--bs-body-font-family: var(--font);
|
|
|
|
|
--bs-body-font-size: 13px;
|
|
|
|
|
--bs-card-bg: var(--bg-panel);
|
|
|
|
|
--bs-card-border-color: var(--border);
|
|
|
|
|
--bs-card-cap-bg: var(--bg-card);
|
|
|
|
|
--bs-card-cap-color: var(--text-dim);
|
|
|
|
|
--bs-border-color: var(--border);
|
|
|
|
|
--bs-form-control-bg: var(--bg-deep);
|
|
|
|
|
--bs-form-control-color: var(--text-bright);
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
* { box-sizing: border-box; }
|
2026-02-19 19:05:01 +00:00
|
|
|
|
|
|
|
|
body {
|
2026-02-20 02:51:41 +00:00
|
|
|
font-family: var(--font);
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--bg-deep);
|
|
|
|
|
color: var(--text);
|
|
|
|
|
font-size: 13px;
|
2026-02-19 19:15:43 +00:00
|
|
|
min-height: 100dvh;
|
2026-02-19 19:05:01 +00:00
|
|
|
overflow-x: hidden;
|
2026-02-19 19:15:43 +00:00
|
|
|
overscroll-behavior: none;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Header ─────────────────────────────────────── */
|
|
|
|
|
.mc-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 12px 24px;
|
2026-02-19 19:15:43 +00:00
|
|
|
padding-top: max(12px, env(safe-area-inset-top));
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--bg-panel);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
2026-02-19 19:15:43 +00:00
|
|
|
.mc-header-left { display: flex; align-items: baseline; gap: 0; }
|
feat: quality analysis — bug fixes, mobile tests, HITL checklist
Senior architect review findings + remediations:
BUG FIX — critical interface mismatch
- TimmyAirLLMAgent only exposed print_response(); dashboard route calls
agent.run() → AttributeError when AirLLM backend is selected.
Added run() → RunResult(content) as primary inference entry point;
print_response() now delegates to run() so both call sites share
one inference path.
- Added RunResult dataclass for Agno-compatible structured return.
BUG FIX — hardcoded model name in health status partial
- health_status.html rendered literal "llama3.2" regardless of
OLLAMA_MODEL env var. Route now passes settings.ollama_model to
the template context; partial renders {{ model }} instead.
FEATURE — /mobile-test HITL checklist page
- 22 human-executable test scenarios across: Layout, Touch & Input,
Chat behaviour, Health, Scroll, Notch/Home Bar, Live UI.
- Pass/Fail/Skip buttons with sessionStorage state persistence.
- Live progress bar + final score summary.
- TEST link added to Mission Control header for quick access on phone.
TEST — 32 new automated mobile quality tests (M1xx–M6xx)
- M1xx: viewport/meta tags (8 tests)
- M2xx: touch target sizing — 44 px min-height, manipulation (4 tests)
- M3xx: iOS zoom prevention, autocapitalize, enterkeyhint (5 tests)
- M4xx: HTMX robustness — hx-sync drop, disabled-elt, polling (5 tests)
- M5xx: safe-area insets, overscroll, dvh units (5 tests)
- M6xx: AirLLM interface contract — run(), RunResult, delegation (5 tests)
Total test count: 61 → 93 (all passing).
https://claude.ai/code/session_01RBuRCBXZNkAQQXXGiJNDmt
2026-02-21 17:21:47 +00:00
|
|
|
.mc-header-right { display: flex; align-items: center; gap: 16px; }
|
2026-02-19 19:05:01 +00:00
|
|
|
.mc-title {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--text-bright);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
}
|
|
|
|
|
.mc-subtitle {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--text-dim);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
}
|
|
|
|
|
.mc-time {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--blue);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
}
|
feat: quality analysis — bug fixes, mobile tests, HITL checklist
Senior architect review findings + remediations:
BUG FIX — critical interface mismatch
- TimmyAirLLMAgent only exposed print_response(); dashboard route calls
agent.run() → AttributeError when AirLLM backend is selected.
Added run() → RunResult(content) as primary inference entry point;
print_response() now delegates to run() so both call sites share
one inference path.
- Added RunResult dataclass for Agno-compatible structured return.
BUG FIX — hardcoded model name in health status partial
- health_status.html rendered literal "llama3.2" regardless of
OLLAMA_MODEL env var. Route now passes settings.ollama_model to
the template context; partial renders {{ model }} instead.
FEATURE — /mobile-test HITL checklist page
- 22 human-executable test scenarios across: Layout, Touch & Input,
Chat behaviour, Health, Scroll, Notch/Home Bar, Live UI.
- Pass/Fail/Skip buttons with sessionStorage state persistence.
- Live progress bar + final score summary.
- TEST link added to Mission Control header for quick access on phone.
TEST — 32 new automated mobile quality tests (M1xx–M6xx)
- M1xx: viewport/meta tags (8 tests)
- M2xx: touch target sizing — 44 px min-height, manipulation (4 tests)
- M3xx: iOS zoom prevention, autocapitalize, enterkeyhint (5 tests)
- M4xx: HTMX robustness — hx-sync drop, disabled-elt, polling (5 tests)
- M5xx: safe-area insets, overscroll, dvh units (5 tests)
- M6xx: AirLLM interface contract — run(), RunResult, delegation (5 tests)
Total test count: 61 → 93 (all passing).
https://claude.ai/code/session_01RBuRCBXZNkAQQXXGiJNDmt
2026-02-21 17:21:47 +00:00
|
|
|
.mc-test-link {
|
|
|
|
|
font-size: 9px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--text-dim);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
transition: border-color 0.15s, color 0.15s;
|
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
}
|
|
|
|
|
.mc-test-link:hover { border-color: var(--blue); color: var(--blue); }
|
2026-02-19 19:05:01 +00:00
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* ── Main layout ─────────────────────────────────── */
|
2026-02-19 19:05:01 +00:00
|
|
|
.mc-main {
|
|
|
|
|
padding: 16px;
|
2026-02-19 19:15:43 +00:00
|
|
|
height: calc(100dvh - var(--header-h));
|
2026-02-22 15:19:51 +00:00
|
|
|
overflow: clip; /* clip = visual clipping only, no scroll container; lets trackpad events reach scrollable children */
|
2026-02-20 02:51:41 +00:00
|
|
|
}
|
|
|
|
|
.mc-content {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
.mc-content > .row {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Sidebar ─────────────────────────────────────── */
|
|
|
|
|
.mc-sidebar {
|
|
|
|
|
overflow-y: auto;
|
2026-02-22 15:19:51 +00:00
|
|
|
min-height: 0; /* allow flex item to shrink so overflow-y: auto actually triggers */
|
2026-02-20 02:51:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Chat column ─────────────────────────────────── */
|
|
|
|
|
.mc-chat-panel {
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
.mc-chat-panel > .card {
|
|
|
|
|
height: 100%;
|
2026-02-22 15:19:51 +00:00
|
|
|
overflow: clip; /* visual clip only, preserves scroll events to .chat-log child */
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* ── Panel / Card overrides ──────────────────────── */
|
|
|
|
|
.mc-panel {
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--bg-panel);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-panel-header {
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--text-dim);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
2026-02-20 02:51:41 +00:00
|
|
|
padding: 8px 14px;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Agent Card ──────────────────────────────────── */
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-agent-card {
|
2026-02-19 19:05:01 +00:00
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
}
|
|
|
|
|
.status-dot {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
flex-shrink: 0;
|
2026-02-20 02:51:41 +00:00
|
|
|
display: inline-block;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
.status-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
|
|
|
|
|
.status-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
|
|
|
|
|
.status-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
|
|
|
|
|
|
|
|
|
|
.agent-name {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--text-bright);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
}
|
|
|
|
|
.agent-meta { font-size: 11px; line-height: 2; }
|
|
|
|
|
.meta-key { color: var(--text-dim); display: inline-block; width: 60px; }
|
|
|
|
|
.meta-val { color: var(--text); }
|
|
|
|
|
|
|
|
|
|
/* ── Health ──────────────────────────────────────── */
|
|
|
|
|
.health-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 7px 0;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
.health-row:last-child { border-bottom: none; }
|
|
|
|
|
.health-label { color: var(--text-dim); letter-spacing: 0.08em; }
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* Status badges (use Bootstrap .badge base + mc-badge-* modifier) */
|
|
|
|
|
.mc-badge-up { background: var(--green-dim) !important; color: var(--green) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
|
|
|
|
.mc-badge-down { background: var(--red-dim) !important; color: var(--red) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
|
|
|
|
.mc-badge-ready { background: var(--amber-dim) !important; color: var(--amber) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
2026-02-19 19:05:01 +00:00
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* ── Chat ────────────────────────────────────────── */
|
2026-02-19 19:05:01 +00:00
|
|
|
.chat-log {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
2026-02-19 19:15:43 +00:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
|
|
|
|
.chat-message { margin-bottom: 16px; }
|
|
|
|
|
.msg-meta {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
color: var(--text-dim);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
}
|
2026-02-19 19:15:43 +00:00
|
|
|
.chat-message.user .msg-meta { color: var(--blue); }
|
|
|
|
|
.chat-message.agent .msg-meta { color: var(--green); }
|
2026-02-19 19:05:01 +00:00
|
|
|
.chat-message.error-msg .msg-meta { color: var(--red); }
|
|
|
|
|
|
|
|
|
|
.msg-body {
|
|
|
|
|
background: var(--bg-card);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
line-height: 1.65;
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
}
|
|
|
|
|
.chat-message.user .msg-body { border-color: var(--border-glow); }
|
|
|
|
|
.chat-message.agent .msg-body { border-left: 3px solid var(--green); }
|
|
|
|
|
.chat-message.error-msg .msg-body { border-left: 3px solid var(--red); color: var(--red); }
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* ── Chat input footer ───────────────────────────── */
|
|
|
|
|
.mc-chat-footer {
|
2026-02-19 19:05:01 +00:00
|
|
|
padding: 12px 14px;
|
2026-02-19 19:15:43 +00:00
|
|
|
padding-bottom: max(12px, env(safe-area-inset-bottom));
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--bg-card);
|
|
|
|
|
border-top: 1px solid var(--border);
|
2026-02-19 19:15:43 +00:00
|
|
|
flex-shrink: 0;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
|
2026-02-20 14:00:16 +00:00
|
|
|
.mc-btn-clear {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
color: var(--text-dim);
|
|
|
|
|
font-family: var(--font);
|
|
|
|
|
font-size: 9px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: border-color 0.15s, color 0.15s;
|
|
|
|
|
touch-action: manipulation;
|
|
|
|
|
}
|
|
|
|
|
.mc-btn-clear:hover { border-color: var(--red); color: var(--red); }
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* Bootstrap form-control overrides */
|
|
|
|
|
.mc-input {
|
|
|
|
|
background: var(--bg-deep) !important;
|
|
|
|
|
border: 1px solid var(--border) !important;
|
|
|
|
|
border-radius: 3px !important;
|
|
|
|
|
color: var(--text-bright) !important;
|
|
|
|
|
font-family: var(--font) !important;
|
|
|
|
|
font-size: 13px !important;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-input:focus {
|
|
|
|
|
border-color: var(--border-glow) !important;
|
|
|
|
|
box-shadow: 0 0 0 1px var(--border-glow) !important;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-input::placeholder { color: var(--text-dim) !important; }
|
|
|
|
|
|
|
|
|
|
.mc-btn-send {
|
2026-02-19 19:05:01 +00:00
|
|
|
background: var(--border-glow);
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
color: var(--text-bright);
|
|
|
|
|
font-family: var(--font);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
padding: 8px 18px;
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
transition: background 0.15s, color 0.15s;
|
2026-02-19 19:15:43 +00:00
|
|
|
touch-action: manipulation;
|
2026-02-20 02:51:41 +00:00
|
|
|
white-space: nowrap;
|
2026-02-19 19:05:01 +00:00
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-btn-send:hover { background: var(--blue); color: var(--bg-deep); }
|
2026-02-19 19:05:01 +00:00
|
|
|
|
|
|
|
|
/* ── HTMX Loading ────────────────────────────────── */
|
|
|
|
|
.htmx-indicator { display: none; }
|
|
|
|
|
.htmx-request .htmx-indicator,
|
|
|
|
|
.htmx-request.htmx-indicator { display: inline-block; color: var(--amber); animation: blink 0.8s infinite; }
|
|
|
|
|
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
|
|
|
|
|
|
|
|
|
|
/* ── Scrollbar ───────────────────────────────────── */
|
|
|
|
|
::-webkit-scrollbar { width: 4px; }
|
|
|
|
|
::-webkit-scrollbar-track { background: var(--bg-deep); }
|
|
|
|
|
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
|
|
|
|
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }
|
2026-02-19 19:15:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ════════════════════════════════════════════════════
|
|
|
|
|
MOBILE (≤ 768 px)
|
|
|
|
|
════════════════════════════════════════════════════ */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
|
|
:root { --header-h: 44px; }
|
|
|
|
|
|
|
|
|
|
/* Compact header */
|
|
|
|
|
.mc-header { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
|
|
|
|
|
.mc-title { font-size: 14px; letter-spacing: 0.1em; }
|
|
|
|
|
.mc-subtitle { display: none; }
|
|
|
|
|
.mc-time { font-size: 12px; }
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* Full-height layout becomes scrollable column stack */
|
|
|
|
|
.mc-main { height: auto; overflow: visible; padding: 8px; }
|
|
|
|
|
.mc-content, .mc-content > .row { height: auto; }
|
2026-02-19 19:15:43 +00:00
|
|
|
|
|
|
|
|
/* Sidebar becomes a horizontal scroll strip */
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-sidebar {
|
|
|
|
|
flex-direction: row !important;
|
2026-02-19 19:15:43 +00:00
|
|
|
overflow-x: auto;
|
|
|
|
|
overflow-y: hidden;
|
2026-02-20 02:51:41 +00:00
|
|
|
scrollbar-width: none;
|
2026-02-19 19:15:43 +00:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-sidebar::-webkit-scrollbar { display: none; }
|
|
|
|
|
.mc-sidebar .mc-panel {
|
2026-02-19 19:15:43 +00:00
|
|
|
min-width: 200px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* Chat fills remaining space with defined height */
|
|
|
|
|
.mc-chat-panel { min-height: 60dvh; }
|
|
|
|
|
.mc-chat-panel > .card { height: 60dvh; }
|
2026-02-19 19:15:43 +00:00
|
|
|
|
|
|
|
|
/* Tighter message padding */
|
2026-02-20 02:51:41 +00:00
|
|
|
.chat-log { padding: 10px !important; }
|
2026-02-19 19:15:43 +00:00
|
|
|
.msg-body { padding: 8px 10px; font-size: 13px; }
|
|
|
|
|
.chat-message { margin-bottom: 12px; }
|
|
|
|
|
|
2026-02-20 02:51:41 +00:00
|
|
|
/* Touch-friendly input */
|
|
|
|
|
.mc-chat-footer {
|
2026-02-19 19:15:43 +00:00
|
|
|
padding: 8px 10px;
|
|
|
|
|
padding-bottom: max(8px, env(safe-area-inset-bottom));
|
|
|
|
|
}
|
2026-02-20 02:51:41 +00:00
|
|
|
.mc-input { font-size: 16px !important; min-height: 44px; }
|
|
|
|
|
.mc-btn-send { min-height: 44px; min-width: 64px; font-size: 12px; padding: 0 14px; }
|
2026-02-19 19:15:43 +00:00
|
|
|
}
|