Skip to content

feat: improve search TUI usability and detail view styling#856

Merged
alishakawaguchi merged 4 commits intomainfrom
search-tui
Apr 4, 2026
Merged

feat: improve search TUI usability and detail view styling#856
alishakawaguchi merged 4 commits intomainfrom
search-tui

Conversation

@alishakawaguchi
Copy link
Copy Markdown
Contributor

@alishakawaguchi alishakawaguchi commented Apr 4, 2026

Summary

  • Remove mouse capture (tea.WithMouseCellMotion) so terminal-native text selection and copy works
  • Add sectioned detail view with OVERVIEW, SOURCE, FILES headers in full detail mode
  • Cleaner card preview without section headers but with "Files:" label
  • Fix card content width calculation for correct text wrapping inside lipgloss borders
  • Reduce repo column proportion to give more space to prompts
  • Collapse whitespace in prompt display for cleaner wrapping
  • Consolidate duplicate sectionHeader/detailTitle styles, remove dead formatAuthor

Test plan

  • Run mise run fmt && mise run lint && mise run test:ci
  • Run entire search <query> and verify text can be selected/copied with mouse
  • Navigate to detail view with enter, verify sectioned layout with headers
  • Scroll detail with j/k, pgup/pgdn
  • Verify inline detail card shows "Files:" label and proper text wrapping
  • Test with long prompts to verify wrapping doesn't break card layout

🤖 Generated with Claude Code
Screenshot 2026-04-03 at 5 17 10 PM
Screenshot 2026-04-03 at 5 16 52 PM


Note

Low Risk
Low risk: changes are limited to search TUI rendering/layout and Bubble Tea program options, with updated tests; no auth, networking, or data mutation logic is altered.

Overview
Improves the entire search interactive TUI by disabling mouse motion capture so terminal text selection/copy works again.

Refactors the detail view rendering to support sectioned full-detail output (e.g. OVERVIEW/SOURCE/SNIPPET/FILES) while keeping the inline card preview more compact, fixes wrapping/width calculations inside lipgloss borders, collapses prompt whitespace for cleaner display, and tweaks table column proportions to give more space to prompts.

Adds/updates unit tests around detail rendering, prompt collapsing, and column sizing, and updates .gitignore to exclude .superpowers/.

Reviewed by Cursor Bugbot for commit 43473cc. Configure here.

alishakawaguchi and others added 3 commits April 3, 2026 17:04
Remove mouse capture (tea.WithMouseCellMotion) so terminal-native text
selection and copy works. Add sectioned detail view with OVERVIEW, SOURCE,
FILES headers in full detail mode, and a cleaner card preview without
section headers. Fix card content width calculation for correct text
wrapping inside lipgloss borders. Reduce repo column proportion to give
more space to prompts. Collapse whitespace in prompt display.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 83cc168b7177
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 96df0f045049
… TUI

Merge sectionHeader into detailTitle (identical orange 214, bold).
Remove formatAuthor which became dead code after inline styled version
replaced it. Remove redundant comment restating parameter names.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 4cc9dfc39742
Copilot AI review requested due to automatic review settings April 4, 2026 00:14
@alishakawaguchi alishakawaguchi marked this pull request as ready for review April 4, 2026 00:18
@alishakawaguchi alishakawaguchi requested a review from a team as a code owner April 4, 2026 00:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the entire search Bubble Tea TUI usability and formatting, focusing on better terminal-native selection/copy behavior and more readable detail layouts.

Changes:

  • Removed mouse capture support to allow normal terminal text selection/copy.
  • Added sectioned full-detail view (OVERVIEW/SOURCE/SNIPPET/FILES) and simplified inline detail card formatting.
  • Adjusted column width proportions and prompt rendering (whitespace collapsing) to improve wrapping and space usage.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
cmd/entire/cli/search_tui.go Adds sectioned detail rendering, prompt whitespace collapsing, and revises detail card width/wrapping calculations.
cmd/entire/cli/search_tui_test.go Updates tests to match new column sizing/truncation behavior and removes tests for deleted helpers.
cmd/entire/cli/search_cmd.go Removes tea.WithMouseCellMotion() when launching the TUI.
.gitignore Ignores .superpowers/ directory.

evisdren
evisdren previously approved these changes Apr 4, 2026
Fix author field blank when AuthorUsername is non-nil empty string by
falling back to Author instead of using derefStr. Remove minimum border
width (44) that could exceed terminal on narrow screens. Compute content
width correctly in NO_COLOR mode (no border/padding). Add tests for
renderDetailContent sections, author edge case, and prompt wrapping.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 6419b86ac741
@alishakawaguchi
Copy link
Copy Markdown
Contributor Author

bugbot run

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 43473cc. Configure here.

@alishakawaguchi alishakawaguchi enabled auto-merge (squash) April 4, 2026 00:59
@alishakawaguchi alishakawaguchi merged commit e6861de into main Apr 4, 2026
4 checks passed
@alishakawaguchi alishakawaguchi deleted the search-tui branch April 4, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants