Skip to content

Style kanban boost label and deduplicate boostLabel helper#267

Merged
jeremy merged 1 commit intomainfrom
boost-polish-followup
Mar 11, 2026
Merged

Style kanban boost label and deduplicate boostLabel helper#267
jeremy merged 1 commit intomainfrom
boost-polish-followup

Conversation

@jeremy
Copy link
Copy Markdown
Member

@jeremy jeremy commented Mar 11, 2026

Summary

  • Pre-render unfocused kanban card boost label with theme.Muted, matching list widget and focused card detail line styling
  • Export boostLabel as widget.BoostLabel, delete duplicate in views/boosts.go, update callers

Followup to #262 — addresses two unresolved review threads.

Test plan

  • Verify unfocused kanban cards show boost label in muted style
  • Verify go build ./... and go test ./internal/tui/... pass

Unfocused kanban cards rendered the boost label without muted styling,
inconsistent with the list widget and focused card detail line. Pre-render
with theme.Muted before concatenation.

Export boostLabel as widget.BoostLabel, delete the duplicate in
views/boosts.go, and update campfire/detail callers to use the shared export.
@jeremy jeremy requested a review from a team as a code owner March 11, 2026 08:48
Copilot AI review requested due to automatic review settings March 11, 2026 08:48
@github-actions github-actions bot added tui Terminal UI tests Tests (unit and e2e) enhancement New feature or request labels Mar 11, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 6 files

@jeremy jeremy merged commit 20fdb03 into main Mar 11, 2026
28 checks passed
@jeremy jeremy deleted the boost-polish-followup branch March 11, 2026 08:50
Copy link
Copy Markdown

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 refactors and standardizes “N boosts” label formatting and styling in the TUI, ensuring kanban’s unfocused cards render boost counts with muted styling consistent with other widgets.

Changes:

  • Export BoostLabel from internal/tui/workspace/widget and update callers to use it.
  • Remove the duplicate boostLabel helper from internal/tui/workspace/views.
  • Render kanban’s unfocused card boost label with theme.Muted pre-applied.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/tui/workspace/widget/list_test.go Updates unit test to call exported BoostLabel.
internal/tui/workspace/widget/list.go Exports BoostLabel and updates list rendering to use it.
internal/tui/workspace/widget/kanban.go Applies muted styling to unfocused card boost label; uses BoostLabel in detail line.
internal/tui/workspace/views/detail.go Switches to widget.BoostLabel for preview field value.
internal/tui/workspace/views/campfire.go Switches to widget.BoostLabel for muted inline boost counts.
internal/tui/workspace/views/boosts.go Removes now-redundant boostLabel helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request tests Tests (unit and e2e) tui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants