NS3 slice: Build the shared list/filter/select panel primitive #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OBJECTIVE: Add one reusable panel primitive for lists with filtering, movement, selection, empty state, and cancel.
AUTHORITY: Parent #3
NS3: Narrow terminal UI and panel grammar; PRODUCT.md; REQUIREMENTS.md (PRODUCT.md; req: ui/001-002; req: session/003).AGENT AUTHORITY:
PARENT: #3 via explicit issue link and parent checklist.
SCOPE: The smallest source/docs/tests needed to make this behavior real and verified.
BOUNDARIES: No separate UI per feature.
ACCEPTANCE: Trace tests filter/select/cancel a fixture list and state remains inspectable through the protocol.
VERIFICATION: Run the cheapest command that proves acceptance. Include regular tests for the intended payoff and adversarial tests for realistic failure, boundary, or regression cases. If no implementation test command exists yet, create/record the canonical command in AGENTS.md as part of the slice.
BLOCKERS: none
GOAL: Implement this vertical slice to the ACCEPTANCE above, keep the repo clean, cite relevant
req:anchors in code/tests where applicable, and close only after verification passes.Implemented in commit
c0a4d1c9bb(Add generic list panel primitive).Verification:
Regular tests: generic list panels open with fixture rows, filter, move selection, select, cancel, expose summary state through protocol, and render rows/cursor/no-match state in TUI panels.
Adversarial tests: empty lists, invalid list items/filters, non-list operations, missing panels, and invalid protocol list commands fail with explicit errors without corrupting panel/editor state.
Boundary: generic list/filter/select panel primitive only. No concrete file picker/tree, git/LSP/job/Pi panel, or desktop split UI added.