Skip to content

Restore separate P/F verdict column in TUI queue#427

Merged
wesm merged 5 commits intomainfrom
revert-combined-status
Mar 5, 2026
Merged

Restore separate P/F verdict column in TUI queue#427
wesm merged 5 commits intomainfrom
revert-combined-status

Conversation

@wesm
Copy link
Collaborator

@wesm wesm commented Mar 5, 2026

Summary

  • Restore the P/F verdict column between Status and Closed in the TUI queue table, reverting the combined status/verdict approach from Rename addressed→closed, combine status columns, deprecate address skill #412 which was confusing
  • Status column now shows job state only (Queued/Running/Done/Error/Canceled)
  • P/F column shows verdict (P/F/-) with green/red coloring
  • Change Done status color from green to blue so it's visually distinct from Pass
  • Auto-size Status column width based on visible content (saves 2 chars when no Canceled jobs present)
  • Extract statusColor/verdictColor into testable helpers; return nil for unknown statuses instead of defaulting to queued color
  • Add migrateColumnConfig entries to reset old default orders (both pre-rename and combined-status layouts)
  • Add TestStatusColor, TestVerdictColor, TestParseColumnOrderAppendsMissing, TestStatusColumnAutoWidth tests

Test plan

  • All existing TUI tests pass
  • Full test suite passes (go test ./...)
  • go vet and go fmt clean
  • New tests cover status/verdict color mapping, legacy column order migration, and auto-width sizing

🤖 Generated with Claude Code

wesm and others added 5 commits March 4, 2026 18:18
The combined Status column (showing Pass/Fail/Done/etc.) was confusing.
Split it back into separate Status and P/F columns: Status shows the
job state (Queued/Running/Done/Error/Canceled), P/F shows the verdict
(P/F/-). The P/F column sits between Status and Closed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract statusColor and verdictColor helpers from the inline StyleFunc
to make them unit-testable. Add TestStatusColor, TestVerdictColor, and
TestParseColumnOrderAppendsMissing tests. Change doneStyle from green
(same as passStyle) to blue so Done and Pass are visually distinct.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unknown job statuses previously got queuedStyle (yellow), which could
mislead users into thinking the job is queued. Return nil so no
foreground color is applied, matching the behavior before the refactor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of hardcoding 8 chars (to fit "Canceled"), size the Status
column to the widest status string actually present. Saves 2 chars
when no canceled jobs are visible (e.g. "Done" = 4, "Queued" = 6).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verifies the Status column auto-sizes to the widest label present:
6 for Done/Queued (header floor), 7 for Running, 8 for Canceled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@roborev-ci
Copy link

roborev-ci bot commented Mar 5, 2026

roborev: Combined Review (c374f72)

Verdict: All reviewers approve; no issues were found in the queue column separation and styling updates.

All agents agree the
code is clean and free of any medium, high, or critical issues. The updates safely split the verdict and status columns, properly handle legacy configuration migrations, and maintain strict data validation without introducing any security vulnerabilities.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@wesm wesm merged commit 52ba097 into main Mar 5, 2026
8 checks passed
@wesm wesm deleted the revert-combined-status branch March 5, 2026 01:00
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