Add a timed mobile break and return-to-Today flow #1037

Merged
rockachopa merged 2 commits from timmy/1036-timed-mobile-today-break into main 2026-08-17 19:37:52 +00:00
Showing only changes of commit 40284a7e30 - Show all commits

View File

@ -1828,7 +1828,11 @@
selectTodayWork();
workSession.reopen(todayMyWork.find(item => todayWork.identity(item) === identity));
},
onResume: () => resumeTodaySession(),
onResume: identity => {
selectTodayWork();
const item = todayMyWork.find(entry => todayWork.identity(entry) === identity);
if (!workSession.resume(item)) resumeTodaySession();
},
onComplete: identity => {
const item = todayMyWork.find(entry => todayWork.identity(entry) === identity);
return completeTodayItem(item);