feat: add color coding to limsum and deadline in view and review outputs#224
Merged
feat: add color coding to limsum and deadline in view and review outputs#224
Conversation
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
narthur
approved these changes
Feb 18, 2026
🚀 Pre-release Build ReadyTest builds are ready! Install directly using the # 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-224Direct Download LinksOr download binaries directly from the pre-release page:
|
Contributor
There was a problem hiding this comment.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
limsumanddeadlinevalues inviewandreviewcommands now display with color coding based on goal urgency, matching the existing pattern used in grid displays.Changes
formatGoalDetails()to acceptcolorStylesparameter and apply urgency-based colors to limsum and deadline valuesCreateColorStyles()instyles.goto centralize color style creation across view, review, and testsColor mapping
Colors determined by
GetBufferColor(goal.Safebuf):Example
Before:
After:
JSON output (
--jsonflag) remains unaffected.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.