- Status: done
- Date: 2026-06-13
- Specs touched:
LOCAL_ANALYTICS.md(Real-time system resources — display only; no spec change)
Bug fix for a ci-web break that reached main on a non-web commit. The failure surfaced on the next PR touching web-ui/.
web-ui/src/LiveResources.vue — hoisted the inline .map closure in the load-line template expression into a loadLine computed property:
- The original template expression mapped over
sample.loaddirectly in the<template>. Inside that closure, vue-tsc loses thev-elsenarrowing that provessampleis non-null (TS18047), andnoUncheckedIndexedAccessflagged the tuple indexsample.load[i]as possibly-undefined (TS2532). - The computed's early
if (!s) return ""guard narrowsscleanly. Iteratings.load.map((v, i) => ...)drops the indexed-access concern. Rendered output is unchanged.
make check-web was red before; green after. make check (Go suite) was already green and unaffected.
None. The same one-line hoist was carried as a drive-by in PRs #158 and #168 just to keep their own ci-web green; whichever of those lands first will produce a no-op overlap on rebase.
No follow-up work. PRs #158 and #168 (both touch web-ui/) should rebase onto main after this merges so their ci-web gates go green without the drive-by copy.