Skip to content

feat(tui): add expand/collapse all toggle and default_collapsed config#31

Merged
jongio merged 4 commits intomainfrom
feature/30-header-ux-expand-collapse
Mar 23, 2026
Merged

feat(tui): add expand/collapse all toggle and default_collapsed config#31
jongio merged 4 commits intomainfrom
feature/30-header-ux-expand-collapse

Conversation

@jongio
Copy link
Copy Markdown
Owner

@jongio jongio commented Mar 23, 2026

Closes #30

Summary

Adds an x keybinding to expand/collapse all session folder rows, plus a default_collapsed config option to control the initial state.

Changes

  • Config: New DefaultCollapsed field (default_collapsed in JSON) — when true, sessions start collapsed showing only compact indicator rows
  • Keybinding: x toggles expand/collapse all — if any folder is collapsed it expands all; if all are expanded it collapses all
  • SessionList: New ExpandAll() and AllExpanded() methods
  • Header labels: Cleaned up sort/pivot prefixes
  • Help: Updated help text to include the new keybinding

Testing

  • 4 new config tests (default value, JSON round-trip, load from disk, save/load)
  • 140 lines of sessionlist expand/collapse tests
  • Model update tests for the x keybinding
  • All 13 preflight steps pass (lint, race detector, vuln scan, deadcode, gofumpt)

jongio and others added 4 commits March 23, 2026 10:54
…nd constant extraction

- Scrub stale worktree bin dirs from PATH during mage install
- Validate session IDs in ScanAttention/ScanAttentionQuick
- Add SelectedFolderCwd() for pivot-aware folder launching
- Restore nil-guard in launchNewInFolder for branch/date pivots
- Fix GroupSessions limit (was hardcoded 0, now uses user limit)
- Extract checkbox and status message string constants
- Move idLine declaration closer to use in preview panel
- Add tests for WriteError, SelectedFolderCwd, branch pivot launch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fmtSources() now returns an error when gofmt finds unformatted files,
matching CI behavior. Previously it silently auto-fixed them, which
meant preflight passed locally but CI failed on the committed code.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jongio jongio merged commit a3d99df into main Mar 23, 2026
2 checks passed
@jongio jongio deleted the feature/30-header-ux-expand-collapse branch March 23, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Header UX: expand/collapse all toggle and compact sort/pivot indicators

1 participant