fix(done-wall): intercept timer modal completion path to correctly hydrate the IndexedDB history records upon resolving the action natively
All checks were successful
Build and Deploy / deploy (push) Successful in 40s

This commit is contained in:
djg 2026-09-23 17:12:04 +00:00
parent 2db8a05a5e
commit 8e69e24869

View file

@ -466,6 +466,7 @@
$('#timer-complete').hidden = true;
// Mark the current one-thing step as done in the breaker
var nowData = store('now');
var taskText = $('#now-text').textContent || (nowData && nowData.text) || '';
if (nowData && nowData.fromBreaker && typeof nowData.stepIndex === 'number') {
var b = store(breakerKey);
if (b && b.steps[nowData.stepIndex]) {
@ -474,6 +475,7 @@
breakerRender();
}
}
handleNewDoneTasks(taskText);
// Reset timer so it's fresh for the next step
timerReset();
// Clear one-thing and show next step prompt