feat: fix proxy compatibility and establish TUI foundation

This commit is contained in:
proxyctl coordinator
2026-07-17 20:30:52 +08:00
parent 0f4c122eff
commit daeb788eac
34 changed files with 1521 additions and 176 deletions
@@ -0,0 +1,19 @@
# 01 — Build the responsive TUI foundation
**What to build:** Replace the current unbounded terminal document with a responsive, styled application shell that preserves the existing reachable workflows while establishing the layout, theme, redaction, and page seams required by the redesign.
**Blocked by:** None — can start immediately.
**Status:** done
- [x] Bubble Tea remains the runtime, with Bubbles and Lip Gloss available as direct production dependencies.
- [x] Production runs in the terminal alternate screen and restores the previous screen on normal exit.
- [x] The complete TUI Model handles terminal resize messages and renders a usable wide layout at 120×36.
- [x] The same Model renders a usable single-column layout at 80×24.
- [x] Terminals below 60×16 render a concise minimum-size message instead of a corrupted interface.
- [x] Selection and focus survive resize whenever their referenced item still exists.
- [x] Semantic styling supports light, dark, and `NO_COLOR` rendering without making color the only signal.
- [x] All text entering the presentation layer crosses one defensive credential-redaction path.
- [x] Application coordination, responsive layout, semantic theme, pages, and reusable rendering no longer accumulate in one monolithic implementation.
- [x] Existing Target and Proxy Profile workflows remain reachable; no long-lived legacy/new TUI switch is introduced.
- [x] Complete-Model tests cover the three agreed terminal-size classes.