perf(app): reduce box connection latency and background work - #42
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
ftw-webapp | 4fb9f53 | Aug 11 2026, 06:42 AM |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4fb9f539d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| () => | ||
| active && site.documentVisible | ||
| ? `${history.range} ${Math.floor(nowMs / 300_000)}` |
There was a problem hiding this comment.
Clear paused history when switching homes
When a user accepts an invitation to a different box while viewing another tab after History has already mounted, App.svelte's onPaired() reuses the existing SiteStore, HistoryStore, and nested EnergyStore. This guard prevents either store from refreshing or invalidating its old data while inactive, so opening History initially displays the previous household's chart and totals; if the new box is unreachable, that cross-home data remains indefinitely. Invalidate the retained History/Energy state when siteId changes even while the panel is inactive.
Useful? React with 👍 / 👎.
Summary
hellowhen the box supports it, with a legacy fallbackrequestAnimationFrameMeasured impact
The paired box PR provides the wire and box-side changes.
Compatibility
hello.subandhello_ok.subscribedare optionalsubmessageChecks
npm run verifyProof limits and follow-ups
Companion box and on-box dashboard PR: srcfl/ftw#894