Skip to content

Conversation

@drlucaa
Copy link
Member

@drlucaa drlucaa commented Jan 24, 2026

  • Replace formatDuration() with formatStatus() for state-aware status text

    • Pending tasks now show [Pending] instead of empty
    • Running tasks show [Running X.Xs]
    • Completed tasks show [Took X.Xs]
    • Cached tasks show [Cached X.Xs]
    • Failed tasks show [Failed X.Xs]
  • Add dynamic alignment for status brackets

    • calculateRowNameWidth() computes width for individual rows
    • calculateMaxNameWidth() finds maximum width across visible rows
    • renderTreeRow() inserts padding to align brackets vertically
  • Update fullScreenLogView() to use new formatStatus()

  • Add comprehensive tests for status formatting and alignment

    • Test all status states (Pending, Running, Done, Cached, Failed)
    • Test width calculation logic
    • Update existing tests to match new format

Closes #59

- Replace formatDuration() with formatStatus() for state-aware status
text
  - Pending tasks now show [Pending] instead of empty
  - Running tasks show [Running X.Xs]
  - Completed tasks show [Took X.Xs]
  - Cached tasks show [Cached X.Xs]
  - Failed tasks show [Failed X.Xs]

- Add dynamic alignment for status brackets
  - calculateRowNameWidth() computes width for individual rows
  - calculateMaxNameWidth() finds maximum width across visible rows
  - renderTreeRow() inserts padding to align brackets vertically

- Update fullScreenLogView() to use new formatStatus()

- Add comprehensive tests for status formatting and alignment
  - Test all status states (Pending, Running, Done, Cached, Failed)
  - Test width calculation logic
  - Update existing tests to match new format

Closes #59
@drlucaa drlucaa marked this pull request as ready for review January 24, 2026 14:28
@codecov
Copy link

codecov bot commented Jan 24, 2026

Codecov Report

❌ Patch coverage is 90.47619% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/internal/adapters/tui/view.go 90.47% 5 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

@drlucaa drlucaa merged commit 0a410fd into main Jan 24, 2026
6 checks passed
@drlucaa drlucaa deleted the feat/59-enhance-status-brackets branch January 24, 2026 14:54
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.

feat: Align task status brackets and enhance state descriptions

2 participants