feat(tui): escape-stack helper + consistent shortcut labels#1748
Merged
Conversation
Co-authored-by: Copilot <175574315+pedrofuentes@users.noreply.github.com>
Co-authored-by: Copilot <175574315+pedrofuentes@users.noreply.github.com>
Owner
Author
|
Status: APPROVED Sentinel Review ReportRef: feature/tui-escape-microcopy → main Phase 1 — TDD / Test Evidence
Phase 1.5 — Fast-path Evaluation🔴 count: 0 | LOC: 48 non-test/non-lock changed (≤150: Y) | Security paths: N | New deps: N | Commit types qualify: N ( Phase 2 — Execution Log
Findings
Details (ordered by severity)No findings. Known Follow-ups & Actions
Decision rationale
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extracted the Esc precedence into a pure, tested
resolveEscapehelper (src/tui/router/resolve-escape.ts) now used by AppRouter (behavior-preserving, now explicit/testable): help-open → closeHelp; not-home → back; home → quit. The global handler stays gated so overlays/captured screens still claim Esc first.Standardized contextual shortcut labels in
shortcuts.tsfor consistent footer/help wording (no key rebinding): session-export movement now uses the canonical↑↓glyph (ExportOverlay already accepts arrows) instead of the screen-specificj/k; panel-compose's ambiguousn/e"Edit" → "Revise" to disambiguate from form-field editing.Tests: new
resolve-escape.test.tscovers each escape branch;shortcuts.test.tslocks the standardized labels and movement-glyph consistency. Full tui suite green, lint + typecheck clean.Phase 10 TUI overhaul — PR-12.