fix(schedule): remove left indentation from hourly density visualization#219
fix(schedule): remove left indentation from hourly density visualization#219
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>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the
Comment |
🚀 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-219-latest buzz-pr-219# Run the pre-release
buzz-pr-219# Uninstall the pre-release
bin remove buzz-pr-219Direct Download LinksOr download binaries directly from the pre-release page:
|
There was a problem hiding this comment.
Pull request overview
This pull request removes unnecessary left indentation from the hourly density visualization in the schedule command, improving terminal space utilization. The changes also improve code maintainability by replacing magic numbers with named constants.
Changes:
- Removed 4-space left indentation from the hourly density chart output
- Introduced constants (
hoursPerDay,charsPerHour,densityLineLen) to replace magic numbers - Updated position calculations to eliminate hardcoded offsets
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| main.go | Removed 4-space prefix from bar and label lines, updated buffer sizes from 76 to 72 characters, replaced magic numbers with constants, and updated position calculations |
| README.md | Updated example output to reflect the new unindented format |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
The hourly density chart was indented 4 spaces from the left margin, consuming unnecessary horizontal terminal space.
Changes
4 + (hour * 3)tohour * charsPerHourhoursPerDay,charsPerHour,densityLineLen) to replace magic numbersOutput
Before:
After:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Note
Streamlines the
buzz schedulehourly density visualization and updates docs.hoursPerDay,charsPerHour, anddensityLineLenand updates position math tohour * charsPerHourWritten by Cursor Bugbot for commit d259ed6. This will update automatically on new commits. Configure here.