Skip to content

Fit the Mutants browser table beside its details at 120 columns - #54

Open
lefticus wants to merge 1 commit into
mainfrom
fix-mutant-table-width
Open

lefticus wants to merge 1 commit into
mainfrom
fix-mutant-table-width

Conversation

@lefticus

Copy link
Copy Markdown
Member

Follow-up to #46. At 120x36, the Mutants tab's table ran two columns past its panel, showing a clipped t column and a horizontal scrollbar. CLAUDE.md says every table should fit its panel at that size.

Changes

  • The Mutants browser drops its time column, since the details panel beside it already shows the time (time 2.85s). The Run tab's queue keeps its time column.
  • The header totals and the Mutants filter tabs use the short state labels (sanitizer, memory, no build), which the tables already use. The full names ran the totals into the timing, and the filters were truncated.
before:
│ state        location          op   change  t│
│ ✔ killed     sample.cpp:3:40   aor  + → -   3│      (plus a horizontal scrollbar)
 score 40.0% …   ✔ killed 1   ✔ killed_by_sanitizer 1   ✗ survived 3   ○ ignored 1   elapsed …

after:
│ state        location          op   change   │
│ ✔ killed     sample.cpp:3:40   aor  + → -    │
 score 40.0% █▅▃▃▄▄▄   ✔ killed 1   ✔ sanitizer 1   ✗ survived 3   ○ ignored 1             elapsed 0:08  ·  1.2s/mutant

I also tried widening the list panel instead (9fr:11fr). That fit at 120 columns, but it squeezed the source view and still clipped at 80x24. Dropping the duplicated column is simpler.

Tests

  • New Pilot test: no table on the Survivors, Mutants and Stats tabs has max_scroll_x > 0 at 120x36. It fails on main (#mutant-table scrolls sideways) and passes here.
  • python -W error -m pytest: 255 passed, 9 skipped. ruff and lizard are clean.
  • I rendered the TUI with tools/ui_snapshot.py at 120x36 before and after the change.

🤖 Generated with Claude Code

The Mutants tab's table had a time column that pushed it two columns past
its panel at 120x36, so it showed a horizontal scrollbar. The details
beside it already show the time, so the browser drops that column; the
Run tab's queue keeps it.

The header totals and the Mutants filters use the short state labels
(sanitizer, memory, no build), so the totals don't run into the timing.

A Pilot test checks that no table on the Survivors, Mutants and Stats
tabs scrolls sideways at 120x36.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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