Conversation
…for log deduction Manual logs now carve their exact time ranges out of overlapping checkout segments (reusing the idle-gap splitting logic) instead of uniformly scaling all checkout minutes. Duration-only logs are placed at the first available schedule slot via FindAvailableSlot() rather than at now-minutes. - Add deductLogOverlaps() in deduct.go (reuses idle gap splitting) - Add FindAvailableSlot() in placement.go for duration-only log placement - Remove deductScheduleOverrun() — no longer needed - Always use segment-based path in BuildReport/BuildDetailedReport/BuildExportData - Update log.go to use findDurationSlot with fallback Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Show HH:MM-HH:MM time range for each entry in the detail panel, prepended before duration and message, so users can see exactly when each tracked segment occurred. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use hyphen instead of en-dash for time range separator, fix padRight width to 11 to match actual display width, and guard against zero-value Start by falling back to duration-only display. Update tests to assert hyphenated ranges, add NotEmpty guards and time range checks to SelectedMarker test, add ZeroStart test, and fix TotalMinutes computation in helper. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Support interdependent from/to/duration flag combinations in edit command (any two of three now works). Add from/to fields to report edit and add overlays with automatic recomputation. Fall back to 9:00 start time for duration-only log entries when no schedule slot is available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…or to <= from Deduplicate from/to/duration recomputation logic between editOverlay and addOverlay into a shared timeFields struct. Add a defensive guard in addOverlay.buildEntry() that rejects to <= from, preventing negative Minutes values. Includes TestAddOverlay_BuildEntryToBeforeFrom test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update README.md and web docs to reflect that any two of --duration, --from, and --to can be combined in the edit command. Replace hardcoded hour 9 with defaultStartHour constant in log fallback placement. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…stent Previously, specifying --duration, --from, and --to together was rejected outright. Now all three are accepted as long as they are consistent (to - from = duration), giving users explicit control without ambiguity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.