Queued offline updates#911
Conversation
PR Review — Queued offline updatesQueued-offline-update feature is not wired up end-to-end — it can't render or be cleared as written. Needs the connecting plumbing, translation keys, and a CSS-class fix before merge. What's solid:
What needs attention:
🔴 Blocking1. Feature is unwired end-to-end — queuedUpdate never set, clear event never handled (`src/components/dashboard/render-content.ts`, L100-129)The whole user-facing path is dead because nothing connects the backend data to the card or the card's events back to the API. I verified this across the codebase:
Net effect: the PR claims "support for queued offline updates" but the feature can neither display nor be cleared. The plumbing additions ( Fix: pass 🟡 Important1. Missing translation keys + hardcoded English stringsThree localize keys referenced by this PR do not exist in The
Fix: add the three keys to 2. Badge uses a non-existent CSS class; the styles.ts rule is dead (`src/components/device-card/render-bits.ts`, L89-98)The new badge markup and the new CSS rule don't match, so neither does its job:
Consequence: the queued badge skips the shared Fix: render 3. Offline-queue branch lives in shared compileAndWait and is immediately overwritten (`src/components/firmware-install-dialog/install-flow.ts`, L414-423)
So the new offline branch that sets Separately, gating on The "queued offline update" concept only holds for a server-side OTA install that the backend defers until the device reconnects — not for any of the local-flash paths that funnel through 4. Unrelated deletion of load-bearing comments (`src/components/firmware-install-dialog/install-flow.ts`, L387-396)This PR removes several explanatory comments that document non-obvious behavior, unrelated to queued updates:
These encode reasoning that CLAUDE.md explicitly flags under "Things that have bitten us" (the Fix: restore the deleted comments; keep the diff scoped to the queued-update feature. 🟢 Suggestions1. Scope creep — Windows path-normalization changes unrelated to queued updates (`test/build-scripts/rspack-config.test.ts`, L21-48)This test file's changes (adding Suggest splitting these into a separate 2. Typo in doc comment (`src/api/esphome-api.ts`, L1255-1256)
Checklist
To rebase specific severity levels, mention me: Automated review by Kōan (Claude) |
esphbot
left a comment
There was a problem hiding this comment.
Blocking issues found — see the review comment above.
|
@jesserockz I am really struggling on the frontend. If someone could help me out. Remaining items:
|
What does this implement/fix?
Provides support for queued offline updates.
Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesChecklist
npm run lintpasses.npm run testpasses.