Skip to content

feat: add color coding to limsum and deadline in view and review outputs#224

Merged
narthur merged 5 commits intomainfrom
copilot/color-code-limsum-deadline
Feb 19, 2026
Merged

feat: add color coding to limsum and deadline in view and review outputs#224
narthur merged 5 commits intomainfrom
copilot/color-code-limsum-deadline

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The limsum and deadline values in view and review commands now display with color coding based on goal urgency, matching the existing pattern used in grid displays.

Changes

  • Modified formatGoalDetails() to accept colorStyles parameter and apply urgency-based colors to limsum and deadline values
  • Added CreateColorStyles() in styles.go to centralize color style creation across view, review, and tests
  • Defensive fallbacks for missing color keys (fallback to gray, then unstyled)

Color mapping

Colors determined by GetBufferColor(goal.Safebuf):

  • Red: 0 days buffer (urgent)
  • Orange: 1 day buffer
  • Blue: 2 days buffer
  • Green: 3-6 days buffer
  • Gray: 7+ days buffer

Example

Before:

Limsum:      +2 in 0 days
Deadline:    Mon Feb 17, 2026 at 6:58 PM EST

After:

Limsum:      +2 in 0 days                      (displayed in RED)
Deadline:    Mon Feb 17, 2026 at 6:58 PM EST   (displayed in RED)

JSON output (--json flag) remains unaffected.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 17, 2026 13:03
Co-authored-by: narthur <4655422+narthur@users.noreply.github.com>
Co-authored-by: narthur <4655422+narthur@users.noreply.github.com>
Co-authored-by: narthur <4655422+narthur@users.noreply.github.com>
Co-authored-by: narthur <4655422+narthur@users.noreply.github.com>
Copilot AI changed the title [WIP] Add color coding for limsum and deadline values feat: add color coding to limsum and deadline in view and review outputs Feb 17, 2026
Copilot AI requested a review from narthur February 17, 2026 13:10
@narthur narthur marked this pull request as ready for review February 18, 2026 15:14
Copilot AI review requested due to automatic review settings February 18, 2026 15:14
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

🚀 Pre-release Build Ready

Test builds are ready! Install directly using the bin command:

# Install the pre-release
bin install https://github.com/PinePeakDigital/buzz/releases/tag/pr-224-latest buzz-pr-224
# Run the pre-release
buzz-pr-224
# Uninstall the pre-release
bin remove buzz-pr-224

Direct Download Links

Or download binaries directly from the pre-release page:

💡 No GitHub login required for downloads!

🗑️ This pre-release will be automatically deleted when the PR is closed.

Copy link
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 adds color coding to the limsum and deadline fields in the view and review command outputs based on goal urgency (buffer days). The colors match the existing pattern used in grid displays, providing consistent visual feedback about goal status.

Changes:

  • Centralized color style creation in CreateColorStyles() function
  • Enhanced formatGoalDetails() to apply urgency-based colors to limsum and deadline
  • Updated all callers to pass color styles to formatGoalDetails()

Reviewed changes

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

File Description
styles.go Adds CreateColorStyles() to centralize color style map creation
review.go Updates formatGoalDetails() to accept and apply color styles to limsum and deadline
main.go Passes color styles to formatGoalDetails() in view command
review_test.go Updates test to pass color styles parameter

@narthur narthur merged commit ad039d7 into main Feb 19, 2026
8 of 10 checks passed
@narthur narthur deleted the copilot/color-code-limsum-deadline branch February 19, 2026 13:16
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.

3 participants