Repository navigation
Component CRT Presentation
The CRT presentation layer is the TV cabinet, screen content, avatar/background animation, visual fallback effects, overlays, and physical-style controls used by Component-Frontend-App. It is mostly CSS and React composition; the WebGL shader code exists as exported strings/helpers but is not used by App.tsx today.
-
CrtFrame.tsxrenders the bezel, screen slot, optional panel, optional footer, and/TV-frame.png. -
crtShader.tsexports GLSL strings and uniform helpers for scanlines, aberration, barrel distortion, glitch tears, vignette, and flicker. -
crtFallback.cssadds CSS-only vignette, glow, flicker, glitch, and reduced-motion behavior. -
StaticNoise.tsxrenders an animated SVG turbulence filter. -
Avatar2D.tsxrenders a simple SVG face/shoulders avatar, but it is not used byApp.tsx. -
AvatarFrameCycler.tsxrenders PNG avatar frames and preloads frames by theme. -
BackgroundCycler.tsxshuffles and cycles background frames. -
TuningOverlay.tsxdisplays full-screen static during power-on tuning. -
BroadcastText.tsxrenders response/greeting text. -
SessionStateOverlay.tsxrenders terminal and signal-lost overlays. -
ChannelKnob.tsxandTvKnob.tsxrender transparent control hit targets.
-
CrtFrame({ children, panel, footer }: CrtFrameProps)where each prop is optionalReactNode. -
crtVertexShader: string,crtFragmentShader: string interface CrtUniforms { tDiffuse; time; glitchIntensity; resolution; }createCrtUniforms(): CrtUniformsgetMobileGlitchIntensity(baseIntensity: number, isMobile: boolean): numberStaticNoise(): JSX.ElementAvatar2D({ isMouthOpen }: { isMouthOpen: boolean })type AvatarFrame = 'idle' | 'talk-1' | 'talk-2' | 'glitch' | 'blink' | 'laugh' | 'side-eye'AvatarFrameCycler({ isMouthOpen, theme, forceFrame, talking }: AvatarFrameCyclerProps)BackgroundCycler(): JSX.ElementTuningOverlay({ visible }: { visible: boolean })BroadcastText({ tokens, fullText }: { tokens: string[]; fullText: string | null })type OverlayState = 'ENDED' | 'BUDGET_CAPPED' | 'RATE_LIMITED' | 'SIGNAL_LOST' | 'ERROR' | nullSessionStateOverlay({ state }: { state: OverlayState })ChannelKnob({ onChannelChange, disabled }: ChannelKnobProps)TvKnob({ onToggle, isOn }: TvKnobProps)
App wraps all screen content in:
<CrtFrame panel={controlPanel} footer={null}>
...
</CrtFrame>CrtFrame places children inside .crt-screen, panel controls inside .crt-panel, and the TV artwork image above the screen via .crt-frame-image.
AvatarFrameCycler chooses image paths like /avatar/{theme}/{frame}.png. It has independent timers for glitch, blink, laugh, and side-eye, and a talking mode that alternates talk-1/talk-2. forceFrame overrides those timers for deterministic tune-in flashes.
BackgroundCycler preloads /background/max-grid/frame-{0..7}.png, shuffles frame order, avoids immediate repeats across cycle boundaries, and stops cycling when prefers-reduced-motion: reduce matches.
SessionStateOverlay uses normal centered text for ended/budget/rate/error states. SIGNAL_LOST is a distinct off-air composition with color bars, StaticNoise, and a “PLEASE STAND BY” banner.
-
crtShader.tsis present and exported, but there is no visible import or render path for it inApp.tsx; current production composition uses the CSS fallback classcrt-fallback. -
Avatar2Dexists but is not wired intoApp.tsx; the active avatar path isAvatarFrameCycler. -
BroadcastTextaccepts token arrays, butApp.tsxpassesdisplayText.split(''), so token mode is character-by-character at the presentation boundary. -
TvKnobhas nodisabledprop; only app state decides whether clicking it powers on or off.
- Concept-Cloud-Only-Inference
- Concept-Budget-Ceiling
- Concept-Personality-Gate
- Concept-IP-And-Legal-Posture
- Concept-Supply-Chain-Discipline
- Concept-Graceful-Degradation
- Concept-Observability
- Concept-Testing-And-TDD
- Concept-Credential-Hygiene
Editing in the browser? Wiki edits are live and bypass wiki:lint. Read
Guide-Wiki-Contributing first.