Repository navigation
feat(editor): footer status bar + collapsible right Problems panel (VSCode-style) #104
Copy link
Copy link
Closed
Labels
Milestone
Description
Follow-up to the YAML config editor (#95), design chosen in the brainstorming session (2026-11-04): hybrid footer status bar + collapsible right Problems panel (variant A). Mockup reference: .superpowers/brainstorm/57092-*/content/editor-layout.html. Depends on the editor theme tokens; replaces the inline banner as the render surface; pairs with the live-validation issue.
Problem
Test results, validation issues and dirty state render as an inline banner above the editor, pushing content down on every outcome. There is no persistent status surface and no structured place to list multiple errors/warnings.
Proposed solution
Footer status bar (thin, always visible while load.status === "ready")
- Left: validity chip (
✓ Validsuccess /✗ n issuesdanger / spinnervalidating…) +● Unsaved changes(moves here from the toolbar chip). - Right:
Ln x, Col y(from the editor's update listener),YAML, filename. - Clicking the issues chip toggles the Problems panel. Cursor tracking uses the existing update listener (selection changes).
Right Problems panel (collapsible, VSCode-Problems style, ~280px)
- Vertical panel on the right; the editor shrinks (
flex) while open. - List of
ValidationIssues: severity icon (error red, warning amber, info neutral), message text. - Close button + chevron collapse; re-openable via the status-bar chip.
- Auto-opens on validation failure; auto-closes (or resets) on modal close/reopen.
- Accessibility:
aria-live="polite",role="status"chip, keyboard-navigable list items.
Layout cleanup
- Remove the old inline banner + issue list render block (and the
EditorStatusdisplay there) — the status bar + panel become the only feedback surface. - The compliance-gate
ConfirmDialog("Save with validation issues?" / force save) is unchanged — it remains a blocking modal. - Card/margin structure (separate issue) stays intact; the status bar lives below the editor card, the panel beside it inside the same body region.
Acceptance criteria
- Status bar always present when the editor is ready.
- Panel toggles via the issues chip and via its close button.
- Panel auto-opens when validation reports issues; chip counts stay accurate.
- Dirty indicator lives in the status bar; Escape/✕ dirty-guard behavior unchanged.
- No layout jumping while typing (except the intentional open/close of the panel).
Tests
ConfigEditorModal.test.tsx:- Test error → panel auto-open, error listed with severity icon;
- edit → chip flips to "validating…" then
✓ Valid(with the live-validation issue landed: timer path covered there); - chip click toggles the panel; close button closes it;
role="status"/aria-livepresent; dirty dot shown in the status bar.
Activity