Skip to content

feat(ui): add card grid widget and /agents-view toggle#54

Open
anh-chu wants to merge 2 commits into
tintinweb:masterfrom
anh-chu:feat/card-grid
Open

feat(ui): add card grid widget and /agents-view toggle#54
anh-chu wants to merge 2 commits into
tintinweb:masterfrom
anh-chu:feat/card-grid

Conversation

@anh-chu

@anh-chu anh-chu commented May 8, 2026

Copy link
Copy Markdown

Adds a card-grid layout mode for the /agents menu and a /agents-view command to toggle between list (tree) and card views.

Changes: 3 files, +253/-53

  • New: src/ui/tui-draw.ts — ANSI box-drawing helpers (renderCard, CARD_THEMES, formatElapsed, padVisibleText)
  • src/ui/agent-widget.tsWidgetDisplayMode type, displayMode field (default "cards"), card grid renderer (2-3 column adaptive layout)
  • src/index.ts — registers /agents-view command that shows a select menu ("Cards" / "Tree") and updates the widget in-place

The existing tree/list view is preserved unchanged. Card mode is session-local (not persisted). Toggle shows a toast confirmation.

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.

1 participant