Cybersecurity-Projects/PROJECTS/intermediate/credential-rotation-enforcer/spec/unit/tui
CarterPerez-dev 9651ff56f1 feat(tui): hand-rolled live monitor with ANSI primitives + 4 panels
Stack:
- Ansi: stdlib-only escape helpers (move, colorize, strip)
- State: rolling view of active rotations + recent events; trims to N
- Renderer: paints header / status / active / recent panels; works against
  any IO so tests assert against IO::Memory
- Tui: ties State + Renderer to event bus; coalesces repaints to a tick
  interval (default 200ms) to avoid flicker under burst events

Active rotation rows show step progress as a filled-bar (▰▰▰▱). Recent
events list latest 8 with timestamp + severity glyph (✓ / ⚠ / !). The
renderer's pad/center helpers correctly account for ANSI escape widths
when computing visible column width.

9 specs cover ANSI helpers (color codes, cursor move, strip), State
event-to-row mapping with completion bookkeeping and ring-buffer trim,
and Renderer output assertions across empty + active + populated states.
2026-04-29 01:09:20 -04:00
..
.gitkeep feat(cre): source tree skeleton with empty module dirs and CI workflow 2026-04-28 23:54:59 -04:00
ansi_spec.cr feat(tui): hand-rolled live monitor with ANSI primitives + 4 panels 2026-04-29 01:09:20 -04:00
renderer_spec.cr feat(tui): hand-rolled live monitor with ANSI primitives + 4 panels 2026-04-29 01:09:20 -04:00
state_spec.cr feat(tui): hand-rolled live monitor with ANSI primitives + 4 panels 2026-04-29 01:09:20 -04:00