[nu-demo] Biz island iframe missing /ui/ in src — renders blank in OS shell #179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Clicking the Biz island in the herodemo dock loads an empty iframe — no
sidebar, no main content, just a blank page. All other islands (Office, Books,
Voice, OSIS, Collab, etc.) render normally.
Root cause
hero_os_app/src/island_content.rs:398registers Biz with the wrong iframe src:Every other island uses
/hero_<svc>/ui/:The src
/hero_biz/makes hero_router behave as follows:So the iframe ends up at a 404 page, which renders as blank.
When pointed correctly at
/hero_biz/ui/, hero_router proxies to thehero_biz_uisocket, which:Fix
One-line change to
hero_os_app/src/island_content.rs:Verified live
Patched on herodemo and rebuilt the WASM shell. Biz iframe now loads to
/hero_biz/ui/c/<default_context>and renders the dashboard with sidebar,top-bar, persons/companies/contracts navigation.
Why this regression existed
Likely artifact of an early bring-up when hero_biz was being routed via
/hero_biz/*directly rather than the/hero_<svc>/<sock>convention thathero_router enforces today. The other islands were updated when the convention
landed; Biz was missed.
Tests / hardening
hero_os_app, add a unit test asserting everyExternalServiceIframeregistration ends with/ui/(or matches asanctioned shape).
and asserts non-empty body/sidebar within 3s.
the iframe src must use
/hero_<name>/ui/(or use a typed builder).Related
Signed-off-by: mik-tf
Fixed in hero_os commit 000922b (
fix(islands): Biz iframe src missing /ui/ — page rendered blank (#179)).Verification at
crates/hero_os_app/src/island_content.rs:398:This matches the
/hero_<svc>/ui/pattern used by every sibling island (books, collab, slides, whiteboard, browser-mcp, osis), so hero_router proxies correctly to thehero_biz_uisocket instead of returning 404.Deployed in v0.x.x-dev to herodemo.gent01.grid.tf during the home#180 work and visually confirmed (Biz island now renders sidebar + main content).
Signed-off-by: mik-tf