-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for 15 and 30-minute time increments #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: omarraf <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better for there only to be one mode instead of 3. I think the 15 minute slices is a little to much. Instead, it'd be nicer if there were 24 sections, but dragging across the chart doesn't increment by 1hr, it increments by 5 minutes, and users can decide themselves how long they want the chunk to be @copilot
Adds configurable time increments (15, 30, or 60 minutes) to enable more accurate and detailed time tracking, especially for users who switch tasks frequently.
Changes Made
New Time Increment Selector
Dynamic Chart Generation
Smart Time Labeling
Enhanced Duration Display
Preserved Functionality
Implementation Details
The solution dynamically calculates the total number of slices as
24 × (60 / timeIncrement), ensuring the chart adapts correctly to each precision level. Time labels are generated using a smart formatting function that shows minutes only when necessary, maintaining clean readability across all increments.All slice-based calculations, duration formatting, and range merging logic has been updated to work with variable slice counts while preserving the existing user experience.
Screenshots
Time Increment Selector:

30-Minute Precision:

15-Minute Precision:

The visual difference in granularity is clear - users can now choose the level of detail that best fits their workflow, from broad hourly overviews to precise 15-minute intervals.
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.