Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 17, 2025

The buzz view and buzz review commands now display up to 5 most recent datapoints for each goal, showing date, value, and comment.

Changes

  • formatRecentDatapoints(): New function formats datapoints with date (YYYY-MM-DD), value, and optional comment
  • formatGoalDetails(): Appends datapoint section when available
  • FetchGoalsWithDatapoints(): New function fetches all goals with datapoints using worker pool (max 5 concurrent)
  • handleViewCommand(): Changed to fetch datapoints via FetchGoalWithDatapoints()
  • handleReviewCommand(): Changed to fetch all goals with datapoints via FetchGoalsWithDatapoints()

Example Output

Goal: mygoal
Title:       My Test Goal
Limsum:      +2 in 3 days
...

Recent datapoints:
  2024-12-13: 10 (Added via buzz)
  2024-12-14: 15.5 (Good progress)
  2024-12-15: 8
  2024-12-16: 12 (Almost there)
  2024-12-17: 20 (Done for today)

The concurrent fetching approach handles N+1 queries efficiently for users with many goals. Fetch errors for individual goals don't block the entire operation.

Original prompt

Let's display recent datapoints when viewing a goal using buzz view and buzz review


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 3 commits December 17, 2025 20:51
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 recent datapoints display for goal view feat: display recent datapoints in view and review commands Dec 17, 2025
Copilot AI requested a review from narthur December 17, 2025 20:57
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.

2 participants