Go to file
caoqianming 42cdbbc0cc fix(web): fetch all unit runtimes on page load
Root cause: state.runtimes was empty after refresh because the engine
only pushes UnitRuntimeChanged on state transitions — if the engine
is mid-wait-phase, no push occurs and badges show OFFLINE.

Fix: add GET /api/unit/runtimes batch endpoint (returns all known
runtimes as { unit_id: UnitRuntime }) and call it in parallel with
the unit list fetch inside loadUnits(), so runtime badges are correct
immediately after page load.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 09:11:47 +08:00
docs refactor(web): remove dead code and translate plan docs to Chinese 2026-03-26 08:57:29 +08:00
migrations feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
src fix(web): fetch all unit runtimes on page load 2026-03-26 09:11:47 +08:00
web fix(web): fetch all unit runtimes on page load 2026-03-26 09:11:47 +08:00
.gitignore feat: 软件第一个版本 2026-03-03 13:32:05 +08:00
API.md docs(api): add missing Tag, Page, Log sections and batch-auto/set-tags endpoints 2026-03-25 14:27:49 +08:00
Cargo.lock feat: add page 2026-03-11 13:23:05 +08:00
Cargo.toml feat(page): add page table and CRUD handlers 2026-03-11 13:54:14 +08:00