fix: preserve synchronous Today reconciliation
CI / lint (pull_request) Successful in 3m3s
CI / build-release (pull_request) Successful in 6s
CI / browser-journey (pull_request) Successful in 3m40s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy committed 2026-08-20 05:48:08 +00:00
1 parent d86e84253a
commit 6fb547e8ce
2 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -476,15 +476,15 @@
refreshMyWorkView();
warmTodayOffline();
},
onRemotePlan: async plan => {
onRemotePlan: plan => {
if (!planningOwnerLogin) return;
latestTodayPlan = plan;
const startDayLaunch = window.location.hash === '#/my-work/start-day';
await promoteTomorrowIfDue(plan);
if (startDayLaunch) {
promoteTomorrowIfDue(plan).finally(() => {
if (!startDayLaunch) return;
window.history.replaceState({}, '', '#/my-work/today');
openMobileStartDay();
}
});
todayWork.replacePlanning({
capacity_minutes: plan.capacity_minutes ?? null,
estimates: plan.estimates || {},