fix(home): "Next update" preview reflects when settings actually reach the frame
CI / test (push) Has been cancelled
CI / test (push) Has been cancelled
The frame is asleep on whatever schedule was active at its last poll — saving new settings here does NOT reach it until that next scheduled sync. The preview was claiming the *new* schedule's next slot, which was misleading: setting "at 4 AM" while the frame is on every-1-min should preview "in ~1 min" (next existing poll), not "at 4 AM". Now compute the next sync from the device's CURRENT saved schedule (lastSeenAt + interval, or next saved wakeTime in tz). Falls back to "when the frame next connects" for never-seen devices and "any moment" for already-overdue ones. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
<meta name="apple-mobile-web-app-title" content="pictureFrame" />
|
||||
<script type="module" crossorigin src="/build/assets/index-CUXjhfPi.js"></script>
|
||||
<script type="module" crossorigin src="/build/assets/index-B5Obd-7x.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/build/assets/_plugin-vue_export-helper-CeYnMxKK.js">
|
||||
<link rel="stylesheet" crossorigin href="/build/assets/index-BlLBHR1q.css">
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user