Timesheet: stop working (break), append_to, working notification #291
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "289_timesheet-stop-working"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #289.
Rebased onto
mainat9c52c3f, which adds theactivitycommand type. There were two conflicts, both resolved by keeping both sides:complete.rs: a test of each side added at the same place.AGENTS.md/REQUIREMENTS.md: the new activity line kept next to theinheritednote. The completion text of R25 now saysappend_toinstead ofinto_file.After the rebase,
nix flake checkandnix build .#streamd-app(unit and screenshot tests) pass again.What changes
Breaking:
into_fileof a reminder is nowappend_to. An oldinto_fileis rejected at its line with the line to write instead:commands.<key>.into_file: `into_file` was renamed; write `append_to = "daily"`.NoIntoFile→NoAppendTo(core, bindings, app).Core
append_to(file model, schema, completion,change.rs,rename_command). The starter writesappend_to = "daily".append_tomust name a file command (with a suggestion), and some tags must write thebreakvalue into its files.commands/timesheet/clock.rs:working: the open card of today. None for a card logged ahead, an invalid day, or an open card of an earlier day.break_tags:@Timesheet @Breakwith the starter; canonical tags, never an alias.record_break: appends the break.NoBreakTargetandNotWorking.FileCommand::inheritedis shared by the done tags of reminders and the break tags.timesheet_working,can_break,timesheet_break.CLI:
streamd <key> break [TEXT...]printsBreak at HH:MM in <path>.-i/-d/--debugit is a usage error (exit 2).append_to: message, exit 1.Bindings:
Project.timesheetWorking,canBreak,timesheetBreak, recordWorking;TimesheetSettings.appendTo.Android
breaks into daily.WorkingBanner("Working since 09:12 · Time Tracking", "2h 18m so far", Stop) above the reminders. Tapping it opens the timesheet.working, one ongoing chronometer notification per working timesheet command.BreakReceiver→ expeditedBreakWorker: break, commit/push, check.Tests
clock.rs, plus validation, rename, completion, change and facade tests.into_filerejection.WorkingAlertsTest,TimesheetWeekTest, andStreamSessionTest(working, takeBreak, breaking).StreamWorkingBannerScreenshot,TimesheetWorkingScreenshotandTimesheetWorkingWithoutStopScreenshot. The updated config scenes now show "Append to". Every image was looked at.nix flake checkandnix build .#streamd-app(withvalidateDebugScreenshotTest) pass.Not tried by hand on the emulator: the notification and its Stop working, and a desktop card showing up after a pull. These need a device.
a1d1b242ff2a5ae86180