xonecas.io
70160
Ce

cel-tui / commit f120637

docs: update test counts, clean up completed TODOs, improve accuracy

- AGENTS.md: update test count from 240 to 243
- README.md: update test count from 240+ to 243
- TODO.md: remove 3 completed bug entries (Tab in TextInput,
  TextInput mouse scroll, batched mouse events), add alt key
  combos and 'plus' named key to Not Yet Implemented
- SKILL.md: note that Tab traversal continues from last focused
  position after Escape

xonecas2026-04-04 f1206378fd7cfe590a8bdca1d81ab45a9fc9d8f4 parent 65483ae

4 files changed

AGENTS.md+1−1
@@ -34,7 +34,7 @@ Dependency chain: `components → core → types`
3434
3535 ## Implementation Status
3636
37-All core systems from the spec are implemented and tested (240 tests):
37+All core systems from the spec are implemented and tested:
3838
3939 - **Layout engine** — flexbox sizing (fixed, intrinsic, flex, percentage), constraints, gap, padding, justifyContent, alignItems, largest-remainder rounding
4040 - **Rendering** — cell buffer, ANSI emitter with SGR styling, synchronized output (CSI 2026), differential rendering (emitDiff), full clear on resize
README.md+1−1
@@ -81,7 +81,7 @@ cel.viewport(() =>
8181
8282 ```bash
8383 bun install # install dependencies
84-bun test # run tests (240+)
84+bun test # run tests
8585 bun run check # biome lint
8686 bun run format # prettier check
8787 bun run typecheck # tsc --noEmit
TODO.md+2−8
@@ -10,14 +10,6 @@ Remaining work, known bugs, and planned improvements.
1010
1111 ---
1212
13-## Bugs & Spec Violations
14-
15-- ✅ **Tab key consumed by TextInput when focused** — Fixed. Tab/Shift+Tab focus traversal is now skipped when a TextInput is focused. Tab inserts `\t` as an editing key. Press Escape first, then Tab to traverse.
16-
17-- ✅ **Mouse wheel scroll inside TextInput** — Fixed. Scroll events targeting a TextInput now update its framework-managed scroll offset directly, instead of requiring `onScroll`/`overflow: "scroll"` container props.
18-
19-- ✅ **Batched mouse events dropped** — Fixed. Real terminals send multiple SGR mouse events in a single stdin data chunk (e.g., 3 scroll events concatenated). The parser expected one event per chunk and silently dropped batched input. Now scans for all events in the chunk and processes each one, with scroll offset accumulation for controlled scroll.
20-
2113 ## API Improvements
2214
2315 - ❌ **`bgColor` on containers** — Containers (VStack/HStack) have no background color. This forces manual per-row fills with `HStack({}, [Text(...), VStack({ flex: 1 }, [Text(" ", { repeat: "fill", bgColor })])])` to create solid panels, modals, or sidebars. Fix: add `bgColor` to `ContainerProps`. Paint should fill the container rect with bgColor before painting children. Single biggest DX win from the pet example.
@@ -32,6 +24,8 @@ Remaining work, known bugs, and planned improvements.
3224
3325 ## Not Yet Implemented
3426
27+- ❌ Alt key combos (`alt+x`) — `parseKey` doesn't handle ESC-prefixed sequences as alt modifiers. The spec lists `"alt+up"` as a valid key format.
28+- ❌ `"plus"` as a named key — the spec mentions `"ctrl+plus"` but `+` is the modifier separator and needs special handling.
3529 - ❌ Bracketed paste mode support
3630 - ❌ Kitty keyboard protocol detection
3731
docs/skill/cel-tui/SKILL.md+1−1
@@ -285,7 +285,7 @@ All lowercase, modifiers joined by `+`: `"ctrl+s"`, `"ctrl+shift+n"`, `"escape"`
285285 - **TextInput is a container** — accepts sizing props but no children.
286286 - **No style inheritance** — every node sets its own styles explicitly.
287287 - **Escape unfocuses** the current element.
288-- **Tab/Shift+Tab** traverses focusable elements in document order (wraps around).
288+- **Tab/Shift+Tab** traverses focusable elements in document order (wraps around). After Escape, traversal continues from the element that lost focus (not from the start).
289289 - **Enter** activates a focused clickable container (fires onClick).
290290 - **TextInput consumes editing keys** when focused (printable chars, arrows, backspace, delete). Modifier combos (ctrl+s) bubble up through ancestors via onKeyPress.
291291 - **Mouse click** on a focusable element fires onFocus (and onBlur on previous).