feat(design): add dev view mockups
Desktop and mobile mockups of the technical telemetry view.
This commit is contained in:
1 parent
003e324530
commit
3ef100ba29
4 files changed
+903
No files matched your search
@@ -0,0 +1,464 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html class="dark" lang="en"><head><meta charset="utf-8"/><meta content="width=device-width, initial-scale=1.0" name="viewport"/><meta content="web_standard" name="shell-type"/><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;500;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:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/><style>@layer base{html,body{margin:0;padding:0;}body{overscroll-behavior:none;}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}::-webkit-scrollbar{display:none;}</style><script src="https://cdn.tailwindcss.com"></script><script id="tailwind-config">tailwind.config={darkMode:"class",theme:{extend:{colors:{"on-tertiary-fixed-variant":"#653e00","inverse-surface":"#d3e4ff","tertiary-fixed-dim":"#ffb95f","background":"#031428","secondary-container":"#00b954","primary-container":"#1a3d64","primary-fixed":"#d3e3ff","primary":"#a9c9f7","surface-container-low":"#0b1c30","surface-bright":"#2a3a4f","on-primary":"#0a3158","on-primary-fixed":"#001c38","secondary-fixed-dim":"#4ae176","inverse-on-surface":"#213146","tertiary":"#ffb95f","inverse-primary":"#406089","secondary-fixed":"#6bff8f","surface":"#031428","surface-container-high":"#1b2b3f","surface-variant":"#26364b","surface-container-lowest":"#000f22","on-tertiary-fixed":"#2a1700","primary-fixed-dim":"#a9c9f7","on-tertiary-container":"#e79400","outline-variant":"#43474e","on-surface":"#d3e4ff","on-background":"#d3e4ff","tertiary-fixed":"#ffddb8","on-secondary":"#003915","surface-dim":"#031428","on-secondary-fixed":"#002109","on-primary-container":"#89a8d5","on-secondary-fixed-variant":"#005321","outline":"#8d9199","error":"#ffb4ab","tertiary-container":"#563400","surface-container-highest":"#26364b","on-surface-variant":"#c3c6cf","on-error":"#690005","on-tertiary":"#472a00","error-container":"#93000a","on-error-container":"#ffdad6","on-primary-fixed-variant":"#274870","surface-container":"#102034","on-secondary-container":"#004119","secondary":"#4ae176","surface-tint":"#a9c9f7"},borderRadius:{"DEFAULT":"0.125rem","lg":"0.25rem","xl":"0.5rem","full":"0.75rem"},spacing:{"space-lg":"1.5rem","gutter-mobile":"1rem","space-xl":"2.5rem","margin-mobile":"1.25rem","space-2xl":"4rem","space-xs":"0.25rem","space-sm":"0.5rem","space-md":"1rem","gutter":"1.5rem","margin":"4rem"},fontFamily:{"status-badge":["JetBrains Mono"],"mono-code":["JetBrains Mono"],"body-lg":["Inter"],"headline-lg":["Newsreader"],"body-sm":["Inter"],"display-mobile":["Newsreader"],"body-md":["Inter"],"headline-md":["Newsreader"],"label-mono":["JetBrains Mono"],"headline-sm":["Inter"],"display":["Newsreader"],"headline-lg-mobile":["Newsreader"]},fontSize:{"status-badge":["0.6875rem",{"lineHeight":"0.875rem","letterSpacing":"0.05em","fontWeight":"600"}],"mono-code":["0.875rem",{"lineHeight":"1.375rem","fontWeight":"400"}],"body-lg":["1.125rem",{"lineHeight":"1.75rem","fontWeight":"400"}],"headline-lg":["2.5rem",{"lineHeight":"3rem","letterSpacing":"-0.015em","fontWeight":"400"}],"body-sm":["0.8125rem",{"lineHeight":"1.25rem","fontWeight":"400"}],"display-mobile":["2.25rem",{"lineHeight":"2.75rem","letterSpacing":"-0.015em","fontWeight":"400"}],"body-md":["0.9375rem",{"lineHeight":"1.5rem","fontWeight":"400"}],"headline-md":["1.75rem",{"lineHeight":"2.25rem","letterSpacing":"-0.01em","fontWeight":"400"}],"label-mono":["0.75rem",{"lineHeight":"1rem","letterSpacing":"0.04em","fontWeight":"500"}],"headline-sm":["1.125rem",{"lineHeight":"1.5rem","letterSpacing":"-0.005em","fontWeight":"600"}],"display":["3.5rem",{"lineHeight":"4rem","letterSpacing":"-0.02em","fontWeight":"400"}],"headline-lg-mobile":["1.75rem",{"lineHeight":"2.25rem","letterSpacing":"-0.01em","fontWeight":"400"}]}}}};</script></head><body class="bg-surface font-body-md text-on-surface antialiased selection:bg-primary-container selection:text-primary-fixed"><header class="fixed top-0 left-0 w-full z-50 bg-surface/85 backdrop-blur-md shadow-[0_1px_8px_rgba(0,0,0,0.25)]"><div class="h-16 max-w-7xl mx-auto px-6 lg:px-12 flex items-center justify-between gap-6"><div class="flex items-center gap-10"><a class="group flex items-center gap-3" data-path="overview" href="#"><span class="flex items-center justify-center w-8 h-8 rounded bg-surface-container-high text-primary group-hover:text-primary-fixed transition-colors"><span class="material-symbols-outlined text-[1.125rem]">grain</span></span><div class="flex flex-col"><span class="font-headline-sm text-headline-sm tracking-tight text-on-surface font-medium">Noel Sabia</span><span class="font-label-mono text-label-mono text-on-surface-variant tracking-wider uppercase text-[0.625rem]">resilience / arch</span></div></a><nav class="hidden md:flex items-center gap-1.5" data-active-classes="bg-primary-container text-on-primary-container font-medium rounded"><a class="px-3 py-1.5 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high transition-colors font-body-sm text-body-sm" data-path="overview" href="#">Overview</a><a class="px-3 py-1.5 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high transition-colors font-body-sm text-body-sm" data-path="life-map" href="#">Life Map</a><a ariaLine truncated
|
||||
<div class="w-full bg-surface-container-lowest/80 border-b border-primary-container/40">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-12 py-3 flex flex-wrap items-center justify-between gap-4 font-label-mono text-label-mono">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="flex h-2 w-2 relative">
|
||||
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-secondary opacity-75"></span>
|
||||
<span class="relative inline-flex rounded-full h-2 w-2 bg-secondary shadow-[0_0_8px_#4ae176]"></span>
|
||||
</span>
|
||||
<span class="text-on-surface-variant font-medium">STREAM:</span>
|
||||
<span class="text-secondary-fixed-dim bg-surface-container-high px-2 py-0.5 rounded">ws://k3s.noelsabia.dev/stream</span>
|
||||
<span class="text-outline-variant hidden md:inline">•</span>
|
||||
<span class="text-on-surface-variant/80 hidden md:inline">TLS 1.3 / HTTP/2.0</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-6 text-on-surface-variant">
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span class="material-symbols-outlined text-[0.875rem] text-primary">router</span>
|
||||
<span class="text-[0.6875rem] uppercase tracking-wider text-outline">NODE:</span>
|
||||
<span class="text-primary-fixed-dim">edge-node-03.bcn</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span class="material-symbols-outlined text-[0.875rem] text-secondary">speed</span>
|
||||
<span class="text-[0.6875rem] uppercase tracking-wider text-outline">RTT:</span>
|
||||
<span class="text-secondary font-semibold" id="rtt-metric">18ms</span>
|
||||
</div>
|
||||
<div class="hidden sm:flex items-center gap-1.5">
|
||||
<span class="material-symbols-outlined text-[0.875rem] text-tertiary">inventory_2</span>
|
||||
<span class="text-[0.6875rem] uppercase tracking-wider text-outline">BUFFER:</span>
|
||||
<span class="text-on-surface" id="buffer-metric">342 evts</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="max-w-7xl mx-auto w-full px-4 sm:px-6 lg:px-12 py-6 sm:py-8 flex flex-col gap-6">
|
||||
<div class="flex flex-col md:flex-row md:items-end justify-between gap-4">
|
||||
<div>
|
||||
<div class="flex items-center gap-2 mb-1.5">
|
||||
<span class="font-status-badge text-status-badge text-primary bg-primary-container/40 px-2 py-0.5 rounded uppercase tracking-wider">
|
||||
RAW_TELEMETRY // FEED
|
||||
</span>
|
||||
<span class="text-outline text-label-mono text-[0.6875rem]">POD-LIFECYCLE-OBSERVABILITY</span>
|
||||
</div>
|
||||
<h1 class="font-headline-lg text-headline-lg text-on-surface font-light tracking-tight">
|
||||
Cluster Resilience Stream
|
||||
</h1>
|
||||
</div>
|
||||
<div class="flex items-center gap-2 bg-surface-container-low p-1.5 rounded-lg shadow-sm">
|
||||
<span class="text-outline font-label-mono text-label-mono px-2">LOG LEVEL</span>
|
||||
<button class="log-filter-btn px-2.5 py-1 text-on-primary font-label-mono text-label-mono rounded bg-primary-container text-primary-fixed shadow-sm transition-all" data-level="ALL" type="button">ALL</button>
|
||||
<button class="log-filter-btn px-2.5 py-1 text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono rounded transition-all" data-level="INFO" type="button">INFO</button>
|
||||
<button class="log-filter-btn px-2.5 py-1 text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono rounded transition-all" data-level="CHAOS" type="button">CHAOS</button>
|
||||
<button class="log-filter-btn px-2.5 py-1 text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono rounded transition-all" data-level="CRIT" type="button">CRIT</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-6 items-start">
|
||||
<div class="lg:col-span-9 flex flex-col rounded-xl overflow-hidden shadow-2xl bg-surface-container-lowest">
|
||||
<div class="h-10 bg-surface-container-low px-4 flex items-center justify-between select-none">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-3 h-3 rounded-full bg-error/70"></span>
|
||||
<span class="w-3 h-3 rounded-full bg-tertiary/70"></span>
|
||||
<span class="w-3 h-3 rounded-full bg-secondary/70"></span>
|
||||
<span class="ml-2 font-mono-code text-mono-code text-primary-fixed text-xs truncate max-w-xs sm:max-w-md">
|
||||
~/telemetry/chaos-mesh.log --tail -f --filter=all
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<button class="flex items-center gap-1.5 px-2.5 py-1 rounded bg-surface-container hover:bg-surface-container-high text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono transition-colors" id="copy-log-btn" title="Copy Log Buffer" type="button">
|
||||
<span class="material-symbols-outlined text-[0.875rem]">content_copy</span>
|
||||
<span class="hidden sm:inline">Copy</span>
|
||||
</button>
|
||||
<button class="flex items-center gap-1.5 px-2.5 py-1 rounded bg-surface-container hover:bg-surface-container-high text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono transition-colors" id="pause-stream-btn" title="Toggle Stream" type="button">
|
||||
<span class="material-symbols-outlined text-[0.875rem]">pause</span>
|
||||
<span class="hidden sm:inline">Pause</span>
|
||||
</button>
|
||||
<button class="flex items-center gap-1.5 px-2.5 py-1 rounded bg-surface-container hover:bg-surface-container-high text-error hover:text-on-surface font-label-mono text-label-mono transition-colors" id="clear-log-btn" title="Clear Buffer" type="button">
|
||||
<span class="material-symbols-outlined text-[0.875rem]">delete_sweep</span>
|
||||
<span class="hidden sm:inline">Clear</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="relative bg-surface-container-lowest/95 p-4 sm:p-5 font-mono-code text-mono-code text-[0.8125rem] leading-relaxed overflow-x-auto min-h-[460px] max-h-[580px] overflow-y-auto selection:bg-primary-container selection:text-primary-fixed scroll-smooth" id="terminal-viewport">
|
||||
<div class="text-outline text-xs mb-4 pb-2 border-b border-primary-container/20 flex items-center justify-between">
|
||||
<span>[SESSION ESTABLISHED: K3S-BCN-EDGE // REAL-TIME DISPATCHER]</span>
|
||||
<span class="text-secondary-fixed">LIVE TAIL: ACTIVE</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-1.5" id="log-entries">
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="INFO" data-pod="dreambit">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T14:32:07Z</span>
|
||||
<span class="text-primary font-medium">dreambit</span>
|
||||
<span class="text-on-surface-variant">phase=Running</span>
|
||||
<span class="text-secondary font-semibold">ready=true</span>
|
||||
<span class="text-tertiary">restarts=3</span>
|
||||
<span class="text-secondary-fixed font-medium">event=recovered</span>
|
||||
<span class="text-primary-fixed bg-primary-container/40 px-1 rounded">seconds=4.2</span>
|
||||
<span class="text-on-surface-variant/80">latency=12ms</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="CHAOS" data-pod="dreambit">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T14:31:59Z</span>
|
||||
<span class="text-primary font-medium">dreambit</span>
|
||||
<span class="text-tertiary font-semibold">phase=Degraded</span>
|
||||
<span class="text-tertiary font-semibold">ready=false</span>
|
||||
<span class="text-tertiary">restarts=3</span>
|
||||
<span class="text-error font-medium">event=pod_sigkill</span>
|
||||
<span class="text-tertiary-fixed bg-tertiary-container/40 px-1 rounded">trigger=chaos_monkey</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="INFO" data-pod="prezero">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T14:28:11Z</span>
|
||||
<span class="text-primary font-medium">prezero</span>
|
||||
<span class="text-on-surface-variant">phase=Running</span>
|
||||
<span class="text-secondary font-semibold">ready=true</span>
|
||||
<span class="text-tertiary">restarts=14</span>
|
||||
<span class="text-secondary-fixed font-medium">event=healthy</span>
|
||||
<span class="text-primary-fixed">ingress_rps=1240</span>
|
||||
<span class="text-on-surface-variant">error_rate=0.001%</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="INFO" data-pod="42-school">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T14:15:40Z</span>
|
||||
<span class="text-primary font-medium">42-school</span>
|
||||
<span class="text-on-surface-variant">phase=Completed</span>
|
||||
<span class="text-secondary font-semibold">ready=true</span>
|
||||
<span class="text-on-surface-variant">restarts=0</span>
|
||||
<span class="text-primary-fixed-dim">event=static_archive</span>
|
||||
<span class="text-on-surface-variant">read_only=true</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="CRIT" data-pod="side-project-mesh">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T14:02:19Z</span>
|
||||
<span class="text-primary font-medium">side-project-mesh</span>
|
||||
<span class="text-error font-semibold">phase=Terminated</span>
|
||||
<span class="text-tertiary font-semibold">ready=false</span>
|
||||
<span class="text-tertiary">restarts=3</span>
|
||||
<span class="text-error font-medium">event=post_mortem</span>
|
||||
<span class="text-on-surface-variant bg-surface-container px-1 rounded">lesson='BGP routing loop fixed'</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="INFO" data-pod="ongoing-studies">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T13:45:02Z</span>
|
||||
<span class="text-primary font-medium">ongoing-studies</span>
|
||||
<span class="text-on-surface-variant">phase=Running</span>
|
||||
<span class="text-secondary font-semibold">ready=true</span>
|
||||
<span class="text-tertiary">restarts=5</span>
|
||||
<span class="text-primary-fixed-dim">event=sync_cycle</span>
|
||||
<span class="text-on-surface-variant">next_eval='2026-11-01'</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="CHAOS" data-pod="thesis">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T13:30:14Z</span>
|
||||
<span class="text-primary font-medium">thesis</span>
|
||||
<span class="text-on-surface-variant">phase=Suspended</span>
|
||||
<span class="text-tertiary font-semibold">ready=false</span>
|
||||
<span class="text-tertiary">restarts=1</span>
|
||||
<span class="text-on-surface-variant">event=backlog_idle</span>
|
||||
<span class="text-tertiary">priority=P3</span>
|
||||
</div>
|
||||
<div class="log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors" data-level="INFO" data-pod="apprenticeship">
|
||||
<span class="text-outline text-xs select-none">2026-10-15T13:12:00Z</span>
|
||||
<span class="text-primary font-medium">apprenticeship</span>
|
||||
<span class="text-on-surface-variant">phase=Completed</span>
|
||||
<span class="text-secondary font-semibold">ready=true</span>
|
||||
<span class="text-on-surface-variant">restarts=0</span>
|
||||
<span class="text-secondary-fixed">event=verified_credential</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-4 flex items-center gap-2 text-primary animate-pulse text-xs">
|
||||
<span class="font-mono-code">❯</span>
|
||||
<span class="w-2 h-4 bg-primary inline-block"></span>
|
||||
<span class="text-outline font-label-mono text-label-mono ml-2">listening for next ingress payload...</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-surface-container-low px-4 py-2.5 flex flex-col sm:flex-row items-center justify-between gap-3 text-xs font-label-mono text-label-mono">
|
||||
<div class="flex items-center gap-2 text-on-surface-variant">
|
||||
<span class="material-symbols-outlined text-[1rem] text-outline">terminal</span>
|
||||
<span>source: k3s · read-only · no credentials on this page</span>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="flex items-center gap-1.5 text-secondary">
|
||||
<span class="inline-block w-1.5 h-1.5 rounded-full bg-secondary"></span>
|
||||
heartbeat: 200 OK
|
||||
</span>
|
||||
<span class="text-outline-variant">•</span>
|
||||
<span class="text-outline">uptime: 99.98% / degraded on purpose</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lg:col-span-3 flex flex-col gap-5">
|
||||
<div class="bg-surface-container-low rounded-xl p-5 shadow-lg flex flex-col gap-4">
|
||||
<div class="flex items-center justify-between pb-3 border-b border-primary-container/40">
|
||||
<span class="font-label-mono text-label-mono tracking-widest text-on-surface-variant uppercase font-semibold">
|
||||
Chapter Filter
|
||||
</span>
|
||||
<button class="font-label-mono text-label-mono text-xs text-primary hover:text-primary-fixed underline transition-colors" id="reset-filters-btn">
|
||||
Reset
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 font-mono-code text-xs" id="chapter-filter-list">
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" id="filter-all" type="checkbox" value="all"/>
|
||||
<span class="text-on-surface group-hover:text-primary transition-colors">all</span>
|
||||
</div>
|
||||
<span class="text-outline font-label-mono text-label-mono bg-surface-container-high px-1.5 py-0.2 rounded text-[0.625rem]">7 pods</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="prezero"/>
|
||||
<span class="text-on-surface-variant group-hover:text-on-surface transition-colors">prezero</span>
|
||||
</div>
|
||||
<span class="text-secondary font-label-mono text-label-mono text-[0.6875rem]">active</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="dreambit"/>
|
||||
<span class="text-on-surface-variant group-hover:text-on-surface transition-colors">dreambit</span>
|
||||
</div>
|
||||
<span class="text-secondary font-label-mono text-label-mono text-[0.6875rem]">active</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="ongoing-studies"/>
|
||||
<span class="text-on-surface-variant group-hover:text-on-surface transition-colors">ongoing-studies</span>
|
||||
</div>
|
||||
<span class="text-secondary font-label-mono text-label-mono text-[0.6875rem]">active</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="42-school"/>
|
||||
<span class="text-on-surface-variant group-hover:text-on-surface transition-colors">42-school</span>
|
||||
</div>
|
||||
<span class="text-primary-fixed-dim font-label-mono text-label-mono text-[0.6875rem]">finished</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input checked="" class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="apprenticeship"/>
|
||||
<span class="text-on-surface-variant group-hover:text-on-surface transition-colors">apprenticeship</span>
|
||||
</div>
|
||||
<span class="text-primary-fixed-dim font-label-mono text-label-mono text-[0.6875rem]">finished</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="thesis"/>
|
||||
<span class="text-outline group-hover:text-on-surface-variant transition-colors">thesis</span>
|
||||
</div>
|
||||
<span class="text-tertiary font-label-mono text-label-mono text-[0.6875rem]">unfinished</span>
|
||||
</label>
|
||||
<label class="flex items-center justify-between p-1.5 rounded hover:bg-surface-container cursor-pointer select-none group">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<input class="pod-filter-checkbox rounded bg-surface-container-high border-outline-variant text-primary focus:ring-0 w-3.5 h-3.5 accent-primary" type="checkbox" value="side-project-mesh"/>
|
||||
<span class="text-outline group-hover:text-on-surface-variant transition-colors">side-project-mesh</span>
|
||||
</div>
|
||||
<span class="text-error font-label-mono text-label-mono text-[0.6875rem]">failed</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 pt-3 border-t border-primary-container/40">
|
||||
<button class="w-full py-1.5 px-3 rounded bg-surface-container hover:bg-surface-container-high text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono text-xs text-center transition-colors" id="side-clear-btn">
|
||||
Clear buffer
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-surface-container-low rounded-xl p-5 shadow-lg flex flex-col gap-3">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="font-label-mono text-label-mono text-outline uppercase tracking-wider text-xs">Self-Healing Velocity</span>
|
||||
<span class="font-status-badge text-status-badge text-secondary font-bold">p99 = 4.8s</span>
|
||||
</div>
|
||||
<div class="w-full h-16 relative flex items-end gap-1.5 pt-2">
|
||||
<div class="flex-1 bg-primary/20 hover:bg-primary/40 rounded-t h-[35%] transition-all relative group" title="42-school: 0.8s"></div>
|
||||
<div class="flex-1 bg-primary/30 hover:bg-primary/50 rounded-t h-[50%] transition-all relative group" title="apprenticeship: 1.2s"></div>
|
||||
<div class="flex-1 bg-secondary hover:bg-secondary-fixed rounded-t h-[80%] transition-all relative group" title="prezero: 4.2s"></div>
|
||||
<div class="flex-1 bg-tertiary hover:bg-tertiary-fixed rounded-t h-[40%] transition-all relative group" title="thesis: 1.1s"></div>
|
||||
<div class="flex-1 bg-secondary hover:bg-secondary-fixed rounded-t h-[95%] transition-all relative group" title="dreambit: 5.1s"></div>
|
||||
<div class="flex-1 bg-error hover:bg-error-container rounded-t h-[65%] transition-all relative group" title="side-project: 3.4s"></div>
|
||||
<div class="flex-1 bg-secondary hover:bg-secondary-fixed rounded-t h-[75%] transition-all relative group" title="ongoing: 3.9s"></div>
|
||||
</div>
|
||||
<div class="flex justify-between font-label-mono text-label-mono text-[0.625rem] text-outline">
|
||||
<span>2019 ARCH</span>
|
||||
<span>CHAOS INTERVAL</span>
|
||||
<span>CURRENT 2026</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-surface-container-low/60 rounded-xl p-4 flex items-center gap-3">
|
||||
<span class="material-symbols-outlined text-secondary-fixed text-xl">verified_user</span>
|
||||
<div class="flex flex-col">
|
||||
<span class="font-headline-sm text-headline-sm text-xs font-semibold text-on-surface">eBPF Sensor Active</span>
|
||||
<span class="font-label-mono text-label-mono text-[0.6875rem] text-outline">Filtering syscalls across 14 namespaces</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
(function initDevView() {
|
||||
const activeNav = document.querySelector('header nav a[data-path="dev-view"]');
|
||||
if (activeNav) {
|
||||
document.querySelectorAll('header nav a').forEach(el => {
|
||||
el.className = 'px-3 py-1.5 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high transition-colors font-body-sm text-body-sm';
|
||||
});
|
||||
activeNav.className = 'px-3 py-1.5 bg-primary-container text-on-primary-container font-medium rounded font-body-sm text-body-sm';
|
||||
}
|
||||
|
||||
const logEntriesContainer = document.getElementById('log-entries');
|
||||
const allCheckbox = document.getElementById('filter-all');
|
||||
const podCheckboxes = document.querySelectorAll('.pod-filter-checkbox');
|
||||
const levelButtons = document.querySelectorAll('.log-filter-btn');
|
||||
const copyBtn = document.getElementById('copy-log-btn');
|
||||
const pauseBtn = document.getElementById('pause-stream-btn');
|
||||
const clearBtn = document.getElementById('clear-log-btn');
|
||||
const sideClearBtn = document.getElementById('side-clear-btn');
|
||||
const resetBtn = document.getElementById('reset-filters-btn');
|
||||
const rttMetric = document.getElementById('rtt-metric');
|
||||
const bufferMetric = document.getElementById('buffer-metric');
|
||||
|
||||
let currentLevel = 'ALL';
|
||||
let isPaused = false;
|
||||
let eventCount = 342;
|
||||
|
||||
function applyFilters() {
|
||||
const checkedPods = Array.from(podCheckboxes)
|
||||
.filter(cb => cb.checked)
|
||||
.map(cb => cb.value);
|
||||
|
||||
const rows = logEntriesContainer.querySelectorAll('.log-row');
|
||||
rows.forEach(row => {
|
||||
const pod = row.getAttribute('data-pod');
|
||||
const lvl = row.getAttribute('data-level');
|
||||
const podMatch = allCheckbox.checked || checkedPods.includes(pod);
|
||||
const levelMatch = currentLevel === 'ALL' || lvl === currentLevel;
|
||||
|
||||
if (podMatch && levelMatch) {
|
||||
row.style.display = 'flex';
|
||||
} else {
|
||||
row.style.display = 'none';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
allCheckbox.addEventListener('change', (e) => {
|
||||
podCheckboxes.forEach(cb => {
|
||||
cb.checked = e.target.checked;
|
||||
});
|
||||
applyFilters();
|
||||
});
|
||||
|
||||
podCheckboxes.forEach(cb => {
|
||||
cb.addEventListener('change', () => {
|
||||
const allChecked = Array.from(podCheckboxes).every(c => c.checked);
|
||||
allCheckbox.checked = allChecked;
|
||||
applyFilters();
|
||||
});
|
||||
});
|
||||
|
||||
levelButtons.forEach(btn => {
|
||||
btn.addEventListener('click', () => {
|
||||
levelButtons.forEach(b => {
|
||||
b.className = 'log-filter-btn px-2.5 py-1 text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono rounded transition-all';
|
||||
});
|
||||
btn.className = 'log-filter-btn px-2.5 py-1 text-on-primary font-label-mono text-label-mono rounded bg-primary-container text-primary-fixed shadow-sm transition-all';
|
||||
currentLevel = btn.getAttribute('data-level');
|
||||
applyFilters();
|
||||
});
|
||||
});
|
||||
|
||||
resetBtn.addEventListener('click', () => {
|
||||
allCheckbox.checked = true;
|
||||
podCheckboxes.forEach(cb => {
|
||||
cb.checked = true;
|
||||
});
|
||||
currentLevel = 'ALL';
|
||||
levelButtons.forEach(b => {
|
||||
if (b.getAttribute('data-level') === 'ALL') {
|
||||
b.className = 'log-filter-btn px-2.5 py-1 text-on-primary font-label-mono text-label-mono rounded bg-primary-container text-primary-fixed shadow-sm transition-all';
|
||||
} else {
|
||||
b.className = 'log-filter-btn px-2.5 py-1 text-on-surface-variant hover:text-on-surface font-label-mono text-label-mono rounded transition-all';
|
||||
}
|
||||
});
|
||||
applyFilters();
|
||||
});
|
||||
|
||||
function clearLogs() {
|
||||
logEntriesContainer.innerHTML = '';
|
||||
eventCount = 0;
|
||||
bufferMetric.innerText = '0 evts';
|
||||
}
|
||||
|
||||
clearBtn.addEventListener('click', clearLogs);
|
||||
sideClearBtn.addEventListener('click', clearLogs);
|
||||
|
||||
pauseBtn.addEventListener('click', () => {
|
||||
isPaused = !isPaused;
|
||||
const icon = pauseBtn.querySelector('.material-symbols-outlined');
|
||||
const text = pauseBtn.querySelector('span:last-child');
|
||||
if (isPaused) {
|
||||
icon.innerText = 'play_arrow';
|
||||
text.innerText = 'Resume';
|
||||
pauseBtn.classList.add('text-secondary-fixed');
|
||||
} else {
|
||||
icon.innerText = 'pause';
|
||||
text.innerText = 'Pause';
|
||||
pauseBtn.classList.remove('text-secondary-fixed');
|
||||
}
|
||||
});
|
||||
|
||||
copyBtn.addEventListener('click', () => {
|
||||
const text = Array.from(logEntriesContainer.querySelectorAll('.log-row'))
|
||||
.filter(row => row.style.display !== 'none')
|
||||
.map(row => row.innerText.replace(/\s+/g, ' ').trim())
|
||||
.join('\n');
|
||||
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
const originalText = copyBtn.innerHTML;
|
||||
copyBtn.innerHTML = '<span class="material-symbols-outlined text-[0.875rem]">done</span><span class="hidden sm:inline">Copied!</span>';
|
||||
setTimeout(() => {
|
||||
copyBtn.innerHTML = originalText;
|
||||
}, 1500);
|
||||
});
|
||||
});
|
||||
|
||||
const syntheticEvents = [
|
||||
{ pod: 'dreambit', level: 'INFO', ready: 'true', phase: 'Running', restarts: '3', evt: 'healthy', extra: 'uptime=99.98% mem=412MiB' },
|
||||
{ pod: 'prezero', level: 'INFO', ready: 'true', phase: 'Running', restarts: '14', evt: 'sync_ack', extra: 'duration=18ms status=200' },
|
||||
{ pod: 'side-project-mesh', level: 'CHAOS', ready: 'false', phase: 'Degraded', restarts: '4', evt: 'packet_drop_sim', extra: 'loss=22% canary=active' },
|
||||
{ pod: 'ongoing-studies', level: 'INFO', ready: 'true', phase: 'Running', restarts: '5', evt: 'curriculum_delta', extra: 'commit=6a71e2 branch=main' }
|
||||
];
|
||||
|
||||
setInterval(() => {
|
||||
if (isPaused) return;
|
||||
|
||||
const jitter = Math.floor(Math.random() * 5) - 2;
|
||||
rttMetric.innerText = Math.max(14, 18 + jitter) + 'ms';
|
||||
|
||||
if (Math.random() > 0.45) {
|
||||
eventCount += 1;
|
||||
bufferMetric.innerText = eventCount + ' evts';
|
||||
|
||||
const sample = syntheticEvents[Math.floor(Math.random() * syntheticEvents.length)];
|
||||
const now = new Date().toISOString();
|
||||
|
||||
const row = document.createElement('div');
|
||||
row.className = 'log-row flex flex-wrap items-baseline gap-x-2 py-0.5 px-1.5 rounded hover:bg-surface-container-low transition-colors';
|
||||
row.setAttribute('data-pod', sample.pod);
|
||||
row.setAttribute('data-level', sample.level);
|
||||
|
||||
const readyColor = sample.ready === 'true' ? 'text-secondary' : 'text-tertiary';
|
||||
const evtColor = sample.evt === 'packet_drop_sim' ? 'text-error font-medium' : 'text-secondary-fixed';
|
||||
|
||||
row.innerHTML = `
|
||||
<span class="text-outline text-xs select-none">${now}</span>
|
||||
<span class="text-primary font-medium">${sample.pod}</span>
|
||||
<span class="text-on-surface-variant">phase=${sample.phase}</span>
|
||||
<span class="${readyColor} font-semibold">ready=${sample.ready}</span>
|
||||
<span class="text-tertiary">restarts=${sample.restarts}</span>
|
||||
<span class="${evtColor}">event=${sample.evt}</span>
|
||||
<span class="text-on-surface-variant/80">${sample.extra}</span>
|
||||
`;
|
||||
|
||||
logEntriesContainer.appendChild(row);
|
||||
applyFilters();
|
||||
|
||||
const viewport = document.getElementById('terminal-viewport');
|
||||
viewport.scrollTop = viewport.scrollHeight;
|
||||
}
|
||||
}, 3200);
|
||||
|
||||
applyFilters();
|
||||
})();
|
||||
</script>
|
||||
</div></main><footer class="w-full bg-surface-container-lowest shadow-[0_-1px_12px_rgba(0,0,0,0.3)] py-6"><div class="max-w-7xl mx-auto px-6 lg:px-12 flex flex-col sm:flex-row items-center justify-between gap-4"><div class="flex items-center gap-2.5 font-label-mono text-label-mono text-on-surface-variant"><span class="inline-block w-2 h-2 rounded-full bg-secondary shadow-[0_0_6px_#4ae176]"></span><span>Served from my own home server · k3s · Terraform · uptime degraded on purpose</span></div><div class="flex items-center gap-3 font-status-badge text-status-badge text-outline"><span class="uppercase tracking-widest text-on-surface-variant/70">LOC // 41.3851° N, 2.1734° E</span><span class="text-outline-variant">•</span><span class="font-label-mono text-label-mono text-secondary-fixed-dim">SYS_STABLE</span></div></div></footer></body></html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 424 KiB |
@@ -0,0 +1,439 @@
|
||||
<!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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 289 KiB |
Reference in new issue
Block a user