Files
Local_Development/design/dev_view/code.html
T
Noel Sabia 3ef100ba29 feat(design): add dev view mockups
Desktop and mobile mockups of the technical telemetry view.
2026-10-18 13:33:44 +02:00

464 lines
34 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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&amp;family=JetBrains+Mono:wght@400;500;600&amp;family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&amp;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&amp;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 aria-current="page" class="px-3 py-1.5 transition-colors bg-primary-container text-on-primary-container font-medium rounded" data-path="dev-view" href="#">Dev View</a></nav></div><div class="flex items-center gap-6"><div class="hidden sm:flex items-center gap-4 text-on-surface-variant font-label-mono text-label-mono"><a class="hover:text-on-surface transition-colors" data-path="pdf-cv" href="#">PDF CV</a><span class="text-outline-variant text-[0.625rem]">/</span><a class="hover:text-on-surface transition-colors" data-path="contact" href="#">Contact</a><span class="text-outline-variant text-[0.625rem]">/</span><a class="hover:text-on-surface transition-colors" href="https://github.com" rel="noopener noreferrer" target="_blank">GitHub</a></div><img alt="Profile" class="w-8 h-8 rounded-full object-cover ring-1 ring-outline-variant/40" src="https://lh3.googleusercontent.com/aida/AEtjO1XRI_KqtijO_H-2qyrn7uU59C9ZhB4RhG6-tfESwj6K9IimY18URv6xjedFJr0PEzhTzAhiF3SGG0rVwu2Wuu3fzsOTg61HRJnz8k5u3U9698BRUn3wZbECQ7DzY9oVfcHEdceRU_jL0_eOAOZfchrDNWtarvsKSluQsHl_v-tCqodP9jpmCbnjvnLIgkdLTDB3fDMMSNJQbmBOx9shEnG7O_aEvG9aVoKpX1Myv54NE7UCqRWEvGpZqndT"/></div></div></header><main class="w-full pt-16 bg-surface min-h-[calc(100vh-5rem)]"><div class="flex flex-col w-full">
<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>