Every screen folder now ships DESIGN.md + code.html + screen.png: the mockup markdown embeds its own screenshot and the full HTML source, so each screen is readable on its own. The design token spec stays in design_system/DESIGN.md.
30 KiB
30 KiB
type: Design title: Dev View — Mobile description: Mobile technical telemetry view: condensed feed and status cards. tags: [design, mockup, mobile] status: draft
Dev View — Mobile
Files in this folder: screen.png · code.html
Source (code.html)
<!DOCTYPE html>
<html class="dark" lang="en"><head><meta charset="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" name="viewport"/><meta content="mobile_tab" name="shell-type"/><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"/><link href="https://fonts.googleapis.com" rel="preconnect"/><link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/><script src="https://cdn.tailwindcss.com"></script><script id="tailwind-config">tailwind.config = { darkMode: "class", theme: { extend: { "colors": { "surface-container-high": "#1b2b3f", "surface-container-highest": "#26364b", "secondary": "#4ae176", "primary-fixed-dim": "#a9c9f7", "error-container": "#93000a", "surface-container-lowest": "#000f22", "on-secondary": "#003915", "surface-variant": "#26364b", "primary": "#a9c9f7", "on-tertiary": "#472a00", "on-tertiary-container": "#e79400", "primary-fixed": "#d3e3ff", "surface-dim": "#031428", "tertiary-container": "#563400", "on-primary-container": "#89a8d5", "outline-variant": "#43474e", "on-secondary-fixed-variant": "#005321", "on-error": "#690005", "surface-container-low": "#0b1c30", "inverse-surface": "#d3e4ff", "on-surface-variant": "#c3c6cf", "on-primary-fixed-variant": "#274870", "error": "#ffb4ab", "on-secondary-container": "#004119", "inverse-on-surface": "#213146", "surface-tint": "#a9c9f7", "tertiary-fixed": "#ffddb8", "secondary-fixed": "#6bff8f", "tertiary-fixed-dim": "#ffb95f", "on-primary-fixed": "#001c38", "on-secondary-fixed": "#002109", "surface": "#031428", "on-tertiary-fixed": "#2a1700", "primary-container": "#1a3d64", "tertiary": "#ffb95f", "on-background": "#d3e4ff", "surface-container": "#102034", "inverse-primary": "#406089", "background": "#031428", "secondary-container": "#00b954", "on-error-container": "#ffdad6", "surface-bright": "#2a3a4f", "on-primary": "#0a3158", "on-tertiary-fixed-variant": "#653e00", "outline": "#8d9199", "on-surface": "#d3e4ff", "secondary-fixed-dim": "#4ae176" }, "borderRadius": { "DEFAULT": "0.125rem", "lg": "0.25rem", "xl": "0.5rem", "full": "0.75rem" }, "spacing": { "space-2xl": "4rem", "space-md": "1rem", "space-lg": "1.5rem", "space-xl": "2.5rem", "gutter": "1.5rem", "gutter-mobile": "1rem", "space-xs": "0.25rem", "margin-mobile": "1.25rem", "space-sm": "0.5rem", "margin": "4rem" }, "fontFamily": { "display-mobile": [ "Newsreader" ], "label-mono": [ "JetBrains Mono" ], "display": [ "Newsreader" ], "headline-lg": [ "Newsreader" ], "headline-lg-mobile": [ "Newsreader" ], "headline-sm": [ "Inter" ], "body-lg": [ "Inter" ], "status-badge": [ "JetBrains Mono" ], "body-sm": [ "Inter" ], "mono-code": [ "JetBrains Mono" ], "body-md": [ "Inter" ], "headline-md": [ "Newsreader" ] }, "fontSize": { "display-mobile": [ "2.25rem", { "lineHeight": "2.75rem", "letterSpacing": "-0.015em", "fontWeight": "400" } ], "label-mono": [ "0.75rem", { "lineHeight": "1rem", "letterSpacing": "0.04em", "fontWeight": "500" } ], "display": [ "3.5rem", { "lineHeight": "4rem", "letterSpacing": "-0.02em", "fontWeight": "400" } ], "headline-lg": [ "2.5rem", { "lineHeight": "3rem", "letterSpacing": "-0.015em", "fontWeight": "400" } ], "headline-lg-mobile": [ "1.75rem", { "lineHeight": "2.25rem", "letterSpacing": "-0.01em", "fontWeight": "400" } ], "headline-sm": [ "1.125rem", { "lineHeight": "1.5rem", "letterSpacing": "-0.005em", "fontWeight": "600" } ], "body-lg": [ "1.125rem", { "lineHeight": "1.75rem", "fontWeight": "400" } ], "status-badge": [ "0.6875rem", { "lineHeight": "0.875rem", "letterSpacing": "0.05em", "fontWeight": "600" } ], "body-sm": [ "0.8125rem", { "lineHeight": "1.25rem", "fontWeight": "400" } ], "mono-code": [ "0.875rem", { "lineHeight": "1.375rem", "fontWeight": "400" } ], "body-md": [ "0.9375rem", { "lineHeight": "1.5rem", "fontWeight": "400" } ], "headline-md": [ "1.75rem", { "lineHeight": "2.25rem", "letterSpacing": "-0.01em", "fontWeight": "400" } ] } } } };</script><style>@layer base{html,body{width:100vw;margin:0;padding:0;}body{overscroll-behavior:none;}.pb-safe{padding-bottom:env(safe-area-inset-bottom,0px);}.pt-safe{padding-top:env(safe-area-inset-top,0px);}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}::-webkit-scrollbar{display:none;}</style><style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head><body class="bg-surface font-body-md text-body-md text-on-surface flex flex-col min-h-screen"><header class="fixed top-0 w-full z-50 pt-safe bg-surface/85 backdrop-blur-xl shadow-[0_1px_8px_rgba(0,0,0,0.25)]"><div class="h-16 px-gutter-mobile flex items-center justify-between"><div class="flex items-center gap-space-sm"><div class="w-11 h-11 flex items-center justify-center text-primary"><span class="material-symbols-outlined text-[24px]">hardware</span></div><div class="flex flex-col"><span class="font-headline-sm text-headline-sm text-on-surface leading-none tracking-tight">Noel Sabia</span><span class="font-label-mono text-label-mono text-on-surface-variant uppercase tracking-wider mt-0.5">RESILIENCE / ARCH</span></div></div><div class="flex items-center gap-space-xs"><span class="hidden">Dev View</span><a aria-label="Menu" class="w-11 h-11 flex items-center justify-center text-on-surface-variant hover:text-primary transition-colors" data-path="system-menu" href="#"><span class="material-symbols-outlined text-[22px]">terminal</span></a><div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center ml-space-xs"><span class="material-symbols-outlined text-on-primary text-[18px]">person</span></div></div></div></header><main class="flex flex-col relative w-full pt-16 pb-28 px-gutter-mobile bg-surface min-h-screen"><div class="flex flex-col w-full gap-space-md">
<!-- Stream Metadata Strip -->
<div class="flex flex-col gap-space-xs bg-surface-container-low p-space-sm rounded-xl shadow-sm">
<div class="flex items-center justify-between text-on-surface-variant font-label-mono text-label-mono">
<div class="flex items-center gap-space-xs min-w-0">
<span class="inline-block w-2 h-2 rounded-full bg-secondary shadow-[0_0_6px_currentColor] animate-pulse shrink-0"></span>
<span class="truncate">ws://k3s.noelsabia.dev/stream</span>
</div>
<span class="text-primary font-semibold shrink-0">TLS 1.3</span>
</div>
<div class="flex items-center justify-between font-status-badge text-status-badge text-outline pt-space-xs">
<span class="truncate">NODE: edge-node-03.bcn</span>
<span class="shrink-0 flex items-center gap-space-xs">
<span class="text-tertiary">RTT: 18ms</span>
<span>·</span>
<span>BUFFER: 342 evts</span>
</span>
</div>
</div>
<!-- Editorial Section Header -->
<div class="flex flex-col gap-space-xs">
<div class="flex items-center gap-space-xs">
<span class="font-label-mono text-label-mono text-tertiary uppercase tracking-wider">RAW_TELEMETRY // FEED</span>
<span class="h-px bg-surface-variant flex-1 ml-space-xs"></span>
</div>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-on-surface font-display-mobile tracking-tight">
Cluster Resilience Stream
</h1>
<p class="font-body-sm text-body-sm text-on-surface-variant">
High-frequency kernel and pod lifecycle diagnostics across career chapters, self-remediation events, and active eBPF tracepoints.
</p>
</div>
<!-- Quick Filter Pills -->
<div class="flex items-center gap-space-xs overflow-x-auto pb-1" id="filter-bar">
<span class="font-label-mono text-label-mono text-outline shrink-0 pr-1">LOG LEVEL:</span>
<button class="filter-btn px-2.5 py-1 rounded bg-primary text-on-primary font-label-mono text-label-mono transition-colors shadow-sm" data-level="ALL" type="button">
ALL
</button>
<button class="filter-btn px-2.5 py-1 rounded bg-surface-container-high text-on-surface-variant font-label-mono text-label-mono transition-colors hover:text-primary" data-level="INFO" type="button">
INFO
</button>
<button class="filter-btn px-2.5 py-1 rounded bg-surface-container-high text-tertiary font-label-mono text-label-mono transition-colors hover:bg-tertiary-container" data-level="CHAOS" type="button">
CHAOS
</button>
<button class="filter-btn px-2.5 py-1 rounded bg-surface-container-high text-error font-label-mono text-label-mono transition-colors hover:bg-error-container" data-level="CRIT" type="button">
CRIT
</button>
</div>
<!-- Terminal Window Container -->
<div class="flex flex-col rounded-xl bg-surface-container-lowest overflow-hidden shadow-lg">
<!-- Window Header -->
<div class="flex items-center justify-between px-space-sm h-9 bg-surface-container-high">
<div class="flex items-center gap-1.5 shrink-0">
<span class="w-2.5 h-2.5 rounded-full bg-error/80 inline-block"></span>
<span class="w-2.5 h-2.5 rounded-full bg-tertiary/80 inline-block"></span>
<span class="w-2.5 h-2.5 rounded-full bg-secondary/80 inline-block"></span>
</div>
<div class="font-label-mono text-label-mono text-on-surface-variant truncate px-space-xs">
~/telemetry/chaos-mesh.log
</div>
<div class="flex items-center gap-space-xs shrink-0">
<button class="flex items-center gap-0.5 text-on-surface-variant hover:text-primary px-1.5 py-0.5 rounded bg-surface-container text-[11px] font-label-mono transition-colors" id="copy-btn" title="Copy Log">
<span class="material-symbols-outlined text-[14px]">content_copy</span>
<span id="copy-text">Copy</span>
</button>
<button class="flex items-center gap-0.5 text-on-surface-variant hover:text-tertiary px-1.5 py-0.5 rounded bg-surface-container text-[11px] font-label-mono transition-colors" id="pause-btn" title="Toggle Live Feed">
<span class="material-symbols-outlined text-[14px]" id="pause-icon">pause</span>
<span id="pause-text">Pause</span>
</button>
</div>
</div>
<!-- Sub-status alert inside console -->
<div class="flex items-center justify-between px-space-sm py-1.5 bg-primary-container/40 text-on-primary-container font-status-badge text-status-badge">
<div class="flex items-center gap-space-xs truncate">
<span class="material-symbols-outlined text-[14px] text-primary">sensors</span>
<span class="truncate">[SESSION ESTABLISHED: K3S-BCN-EDGE // REAL-TIME DISPATCHER]</span>
</div>
<span class="text-secondary font-semibold shrink-0 ml-1">LIVE TAIL: ACTIVE</span>
</div>
<!-- Terminal Output -->
<div class="p-space-sm font-mono-code text-mono-code leading-relaxed flex flex-col gap-2 max-h-[380px] overflow-y-auto bg-surface-container-lowest text-on-surface" id="terminal-content">
<!-- Log entry 1 -->
<div class="log-row p-1 rounded transition-colors" data-level="INFO" data-pod="dreambit">
<span class="text-outline text-status-badge">2026-10-15T14:32:07Z</span>
<span class="text-primary font-semibold ml-1">dreambit</span>
<span class="text-secondary ml-1">phase=Running</span>
<span class="text-on-surface-variant ml-1">ready=true</span>
<span class="text-tertiary ml-1">restarts=3</span>
<span class="text-secondary-fixed ml-1 font-semibold">event=recovered</span>
<span class="text-on-surface-variant ml-1">seconds=4.2</span>
<span class="text-primary ml-1">latency=12ms</span>
</div>
<!-- Log entry 2 -->
<div class="log-row p-1 rounded transition-colors bg-error-container/20" data-level="CHAOS" data-pod="dreambit">
<span class="text-outline text-status-badge">2026-10-15T14:31:59Z</span>
<span class="text-primary font-semibold ml-1">dreambit</span>
<span class="text-error ml-1 font-semibold">phase=Degraded</span>
<span class="text-error ml-1">ready=false</span>
<span class="text-tertiary ml-1">restarts=3</span>
<span class="text-error ml-1 font-semibold">event=pod_sigkill</span>
<span class="text-tertiary-fixed ml-1">trigger=chaos_monkey</span>
</div>
<!-- Log entry 3 -->
<div class="log-row p-1 rounded transition-colors" data-level="INFO" data-pod="prezero">
<span class="text-outline text-status-badge">2026-10-15T14:28:11Z</span>
<span class="text-primary font-semibold ml-1">prezero</span>
<span class="text-secondary ml-1">phase=Running</span>
<span class="text-on-surface-variant ml-1">ready=true</span>
<span class="text-tertiary ml-1">restarts=14</span>
<span class="text-secondary ml-1">event=healthy</span>
<span class="text-primary-fixed ml-1">ingress_rps=1240</span>
<span class="text-secondary ml-1">error_rate=0.001%</span>
</div>
<!-- Log entry 4 -->
<div class="log-row p-1 rounded transition-colors" data-level="INFO" data-pod="42-school">
<span class="text-outline text-status-badge">2026-10-15T14:15:40Z</span>
<span class="text-primary font-semibold ml-1">42-school</span>
<span class="text-on-surface-variant ml-1">phase=Completed</span>
<span class="text-on-surface-variant ml-1">ready=true</span>
<span class="text-outline ml-1">restarts=0</span>
<span class="text-primary ml-1">event=static_archive</span>
<span class="text-outline ml-1">read_only=true</span>
</div>
<!-- Log entry 5 -->
<div class="log-row p-1 rounded transition-colors bg-surface-container-high/40" data-level="CRIT" data-pod="side-project-mesh">
<span class="text-outline text-status-badge">2026-10-15T14:02:19Z</span>
<span class="text-primary font-semibold ml-1">side-project-mesh</span>
<span class="text-error ml-1 font-semibold">phase=Terminated</span>
<span class="text-error ml-1">ready=false</span>
<span class="text-tertiary ml-1">restarts=3</span>
<span class="text-tertiary ml-1 font-semibold">event=post_mortem</span>
<span class="text-tertiary-fixed ml-1">lesson='BGP routing loop fixed'</span>
</div>
<!-- Log entry 6 -->
<div class="log-row p-1 rounded transition-colors" data-level="INFO" data-pod="ongoing-studies">
<span class="text-outline text-status-badge">2026-10-15T13:45:02Z</span>
<span class="text-primary font-semibold ml-1">ongoing-studies</span>
<span class="text-secondary ml-1">phase=Running</span>
<span class="text-on-surface-variant ml-1">ready=true</span>
<span class="text-tertiary ml-1">restarts=5</span>
<span class="text-primary-fixed ml-1">event=sync_cycle</span>
</div>
<!-- Log entry 7 -->
<div class="log-row p-1 rounded transition-colors" data-level="INFO" data-pod="thesis">
<span class="text-outline text-status-badge">2026-10-15T13:30:14Z</span>
<span class="text-primary font-semibold ml-1">thesis</span>
<span class="text-tertiary ml-1">phase=Suspended</span>
<span class="text-error ml-1">ready=false</span>
<span class="text-outline ml-1">restarts=1</span>
<span class="text-outline ml-1">event=backlog_idle</span>
<span class="text-tertiary ml-1">priority=P3</span>
</div>
<!-- Cursor live prompt -->
<div class="flex items-center gap-1 text-secondary pt-1 font-mono-code text-mono-code">
<span>></span>
<span class="animate-pulse">█</span>
<span class="text-on-surface-variant">listening for next ingress payload...</span>
</div>
</div>
<!-- Terminal Footer Status Bar -->
<div class="flex flex-wrap items-center justify-between px-space-sm py-2 bg-surface-container-high text-outline font-status-badge text-status-badge gap-1">
<div class="flex items-center gap-2">
<span class="flex items-center gap-1">
<span class="w-1.5 h-1.5 rounded-full bg-secondary inline-block"></span>
source: k3s
</span>
<span>·</span>
<span>read-only</span>
<span>·</span>
<span class="text-secondary">heartbeat: 200 OK</span>
</div>
<div class="text-tertiary truncate">
uptime: 99.98% / degraded on purpose
</div>
</div>
</div>
<!-- Mobile Chapter Filter Accordion / Drawer -->
<div class="flex flex-col bg-surface-container rounded-xl overflow-hidden shadow-sm">
<button class="flex items-center justify-between p-space-sm bg-surface-container-high text-left w-full transition-colors" id="chapter-toggle-btn" type="button">
<div class="flex items-center gap-space-xs">
<span class="material-symbols-outlined text-primary text-[18px]">tune</span>
<span class="font-label-mono text-label-mono text-on-surface font-semibold uppercase tracking-wider">CHAPTER_POD_SELECTOR</span>
</div>
<div class="flex items-center gap-space-xs">
<span class="font-status-badge text-status-badge text-outline" id="active-count-label">7 of 7 active</span>
<span class="material-symbols-outlined text-on-surface-variant transition-transform duration-200" id="accordion-arrow">expand_more</span>
</div>
</button>
<div class="p-space-sm flex flex-col gap-space-xs bg-surface-container" id="chapter-drawer">
<p class="font-status-badge text-status-badge text-outline mb-1">Filter live telemetry by Pod / Career Chapter:</p>
<div class="grid grid-cols-2 gap-2 font-mono-code text-mono-code">
<!-- Chapter Checkbox: All -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="accent-primary rounded-sm w-3.5 h-3.5" id="chk-all" type="checkbox"/>
<span class="text-on-surface font-semibold text-status-badge truncate">all (7 pods)</span>
</label>
<!-- Chapter Checkbox: prezero -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="prezero" type="checkbox"/>
<span class="text-on-surface text-status-badge truncate">prezero</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-secondary"></span>
</label>
<!-- Chapter Checkbox: dreambit -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="dreambit" type="checkbox"/>
<span class="text-on-surface text-status-badge truncate">dreambit</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-secondary"></span>
</label>
<!-- Chapter Checkbox: ongoing-studies -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="ongoing-studies" type="checkbox"/>
<span class="text-on-surface text-status-badge truncate">studies</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-secondary"></span>
</label>
<!-- Chapter Checkbox: 42-school -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="42-school" type="checkbox"/>
<span class="text-on-surface-variant text-status-badge truncate">42-school</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-outline"></span>
</label>
<!-- Chapter Checkbox: apprenticeship -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="apprenticeship" type="checkbox"/>
<span class="text-on-surface-variant text-status-badge truncate">apprentice</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-outline"></span>
</label>
<!-- Chapter Checkbox: thesis -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="thesis" type="checkbox"/>
<span class="text-tertiary text-status-badge truncate">thesis</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-tertiary"></span>
</label>
<!-- Chapter Checkbox: side-project-mesh -->
<label class="flex items-center gap-2 p-1.5 rounded bg-surface-container-low cursor-pointer hover:bg-surface-container-highest transition-colors">
<input checked="" class="pod-chk accent-primary rounded-sm w-3.5 h-3.5" data-pod="side-project-mesh" type="checkbox"/>
<span class="text-error text-status-badge truncate">side-mesh</span>
<span class="ml-auto w-1.5 h-1.5 rounded-full bg-error"></span>
</label>
</div>
</div>
</div>
<!-- Performance & Telemetry Diagnostics Cards -->
<div class="flex flex-col gap-space-sm">
<!-- Card 1: Velocity -->
<div class="flex flex-col p-space-sm bg-surface-container-low rounded-xl shadow-sm gap-space-xs">
<div class="flex items-center justify-between">
<div class="flex items-center gap-space-xs">
<span class="material-symbols-outlined text-secondary text-[18px]">bolt</span>
<span class="font-label-mono text-label-mono text-on-surface uppercase">SELF-HEALING VELOCITY</span>
</div>
<span class="font-status-badge text-status-badge text-secondary bg-surface-container-high px-2 py-0.5 rounded">p99 = 4.8s</span>
</div>
<!-- Histogram visual chart -->
<div class="pt-2">
<div class="flex items-end justify-between h-14 gap-1.5 px-1 bg-surface-container-lowest/60 rounded p-1.5">
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-secondary/30 rounded-t h-[35%] group-hover:bg-secondary transition-all"></div>
<span class="font-status-badge text-[9px] text-outline mt-1">1.2s</span>
</div>
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-secondary/50 rounded-t h-[60%] group-hover:bg-secondary transition-all"></div>
<span class="font-status-badge text-[9px] text-outline mt-1">2.4s</span>
</div>
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-secondary rounded-t h-[95%] shadow-[0_0_8px_rgba(74,225,118,0.3)]"></div>
<span class="font-status-badge text-[9px] text-secondary font-bold mt-1">3.8s</span>
</div>
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-primary/70 rounded-t h-[70%] group-hover:bg-primary transition-all"></div>
<span class="font-status-badge text-[9px] text-outline mt-1">4.2s</span>
</div>
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-tertiary rounded-t h-[40%] group-hover:bg-tertiary-fixed transition-all"></div>
<span class="font-status-badge text-[9px] text-outline mt-1">4.8s</span>
</div>
<div class="flex-1 flex flex-col items-center h-full justify-end group">
<div class="w-full bg-error/60 rounded-t h-[15%] group-hover:bg-error transition-all"></div>
<span class="font-status-badge text-[9px] text-outline mt-1">7.0s</span>
</div>
</div>
</div>
<div class="flex items-center justify-between font-status-badge text-status-badge text-outline pt-1">
<span>Median recovery: 2.1s</span>
<span>Crash Loop BackOff: Prevented (100%)</span>
</div>
</div>
<!-- Card 2: eBPF Sensor Status -->
<div class="flex items-center justify-between p-space-sm bg-surface-container-low rounded-xl shadow-sm">
<div class="flex items-center gap-space-sm min-w-0">
<div class="w-8 h-8 rounded bg-primary/10 flex items-center justify-center text-primary shrink-0">
<span class="material-symbols-outlined text-[20px]">security</span>
</div>
<div class="flex flex-col min-w-0">
<span class="font-label-mono text-label-mono text-on-surface font-semibold truncate">eBPF Sensor Active</span>
<span class="font-status-badge text-status-badge text-on-surface-variant truncate">Filtering syscalls across 14 namespaces</span>
</div>
</div>
<span class="inline-flex items-center gap-1 font-status-badge text-status-badge text-secondary bg-surface-container px-2 py-1 rounded shrink-0 ml-2">
<span class="w-1.5 h-1.5 rounded-full bg-secondary animate-pulse"></span>
PASSING
</span>
</div>
</div>
</div>
<script>
(function initTelemetryInteractions() {
// Filter by log level
const filterButtons = document.querySelectorAll('.filter-btn');
const logRows = document.querySelectorAll('.log-row');
filterButtons.forEach(btn => {
btn.addEventListener('click', () => {
filterButtons.forEach(b => {
b.classList.remove('bg-primary', 'text-on-primary');
b.classList.add('bg-surface-container-high', 'text-on-surface-variant');
});
btn.classList.remove('bg-surface-container-high', 'text-on-surface-variant');
btn.classList.add('bg-primary', 'text-on-primary');
const level = btn.getAttribute('data-level');
logRows.forEach(row => {
if (level === 'ALL' || row.getAttribute('data-level') === level) {
row.style.display = 'block';
} else {
row.style.display = 'none';
}
});
});
});
// Copy terminal content
const copyBtn = document.getElementById('copy-btn');
const copyText = document.getElementById('copy-text');
if (copyBtn) {
copyBtn.addEventListener('click', () => {
const terminalText = document.getElementById('terminal-content').innerText;
navigator.clipboard?.writeText(terminalText).then(() => {
copyText.textContent = 'Copied!';
setTimeout(() => { copyText.textContent = 'Copy'; }, 1800);
}).catch(() => {
copyText.textContent = 'Copied!';
setTimeout(() => { copyText.textContent = 'Copy'; }, 1800);
});
});
}
// Pause / Resume toggle
const pauseBtn = document.getElementById('pause-btn');
const pauseIcon = document.getElementById('pause-icon');
const pauseText = document.getElementById('pause-text');
let isPaused = false;
if (pauseBtn) {
pauseBtn.addEventListener('click', () => {
isPaused = !isPaused;
if (isPaused) {
pauseIcon.textContent = 'play_arrow';
pauseText.textContent = 'Resume';
pauseBtn.classList.add('text-secondary');
} else {
pauseIcon.textContent = 'pause';
pauseText.textContent = 'Pause';
pauseBtn.classList.remove('text-secondary');
}
});
}
// Chapter Accordion
const chapterToggle = document.getElementById('chapter-toggle-btn');
const chapterDrawer = document.getElementById('chapter-drawer');
const arrow = document.getElementById('accordion-arrow');
if (chapterToggle && chapterDrawer) {
chapterToggle.addEventListener('click', () => {
const isHidden = chapterDrawer.classList.contains('hidden');
if (isHidden) {
chapterDrawer.classList.remove('hidden');
arrow.style.transform = 'rotate(180deg)';
} else {
chapterDrawer.classList.add('hidden');
arrow.style.transform = 'rotate(0deg)';
}
});
// Start open
arrow.style.transform = 'rotate(180deg)';
}
// Pod Checkboxes filtering
const chkAll = document.getElementById('chk-all');
const podCheckboxes = document.querySelectorAll('.pod-chk');
const activeCountLabel = document.getElementById('active-count-label');
function updatePodVisibility() {
let activeCount = 0;
const activePods = new Set();
podCheckboxes.forEach(chk => {
if (chk.checked) {
activeCount++;
activePods.add(chk.getAttribute('data-pod'));
}
});
if (chkAll) {
chkAll.checked = (activeCount === podCheckboxes.length);
}
if (activeCountLabel) {
activeCountLabel.textContent = `${activeCount} of ${podCheckboxes.length} active`;
}
logRows.forEach(row => {
const podName = row.getAttribute('data-pod');
if (!podName || activePods.has(podName)) {
row.style.display = 'block';
} else {
row.style.display = 'none';
}
});
}
if (chkAll) {
chkAll.addEventListener('change', (e) => {
const checked = e.target.checked;
podCheckboxes.forEach(chk => { chk.checked = checked; });
updatePodVisibility();
});
}
podCheckboxes.forEach(chk => {
chk.addEventListener('change', updatePodVisibility);
});
})();
</script><footer class="mt-space-xl mb-space-lg text-center font-status-badge text-status-badge text-outline tracking-wider"><div class="flex items-center justify-center gap-space-xs mb-space-xs"><span class="inline-block w-1.5 h-1.5 rounded-full bg-secondary shadow-[0_0_6px_currentColor]"></span><span>k3s-cluster-ns-01</span></div><p>Served from my own home server · k3s · uptime degraded on purpose</p></footer></main><nav class="fixed bottom-0 w-full z-50 pb-safe bg-surface-container-low/90 backdrop-blur-xl shadow-[0_-1px_12px_rgba(0,0,0,0.3)]" data-active-classes="text-primary font-semibold"><div class="flex justify-around items-center h-16 px-space-xs"><a class="flex flex-col items-center justify-center w-16 h-12 text-on-surface-variant transition-colors" data-path="overview" href="#"><span class="material-symbols-outlined text-[22px]">dashboard</span><span class="font-label-mono text-label-mono">Overview</span></a><a class="flex flex-col items-center justify-center w-16 h-12 text-on-surface-variant transition-colors" data-path="life-map" href="#"><span class="material-symbols-outlined text-[22px]">timeline</span><span class="font-label-mono text-label-mono">Life Map</span></a><a aria-current="page" class="flex flex-col items-center justify-center w-16 h-12 transition-colors text-primary font-semibold" data-path="dev-view" href="#"><span class="material-symbols-outlined text-[22px]">code</span><span class="font-label-mono text-label-mono">Dev View</span></a><a class="flex flex-col items-center justify-center w-16 h-12 text-on-surface-variant transition-colors" data-path="system-menu" href="#"><span class="material-symbols-outlined text-[22px]">more_horiz</span><span class="font-label-mono text-label-mono">System</span></a></div></nav></body></html>
