Missing static asset: hero-bootstrap-bridge.css (PR #69 commit was incomplete) #15
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_browser#15
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
Browser console:
GET http://[host]:9988/hero_browser/ui/hero-bootstrap-bridge.css net::ERR_ABORTED 404 (Not Found)whenever any hero_browser UI page is opened.Cause
crates/hero_browser_ui/templates/base.html:10references the file:…but the file does not exist anywhere under
crates/hero_browser_ui/static/. The static dir contains onlycss/,fonts/,js/,favicon.svg.hero_browser_uiusesrust_embed::Embed(Cargo.toml: rust-embed = "8") to bakestatic/into the binary at compile time, so a missing file is a 404 at request time.Why it slipped in
Git history shows commit
fcddf69titled "fix: add hero-bootstrap-bridge.css, fix theme listener, use relative RPC URL (#69)" — but the diff only touchescrates/hero_browser_ui/static/index.html:The commit message intent was to add the file; the actual file commit appears to have been missed in
git add. The template references it but it was never bundled.Fix
Add
crates/hero_browser_ui/static/hero-bootstrap-bridge.css. A known-good copy lives athero_proxy/crates/hero_proxy_ui/static/hero-bootstrap-bridge.css(stable since8c6e393) — it's the same shared bridge file other hero_* UIs use.No Makefile target exists for asset-syncing across repos, and the static dir is just whatever's checked in; rebuild after adding via
make installdev(debug, ~30s) ormake install(release).Comparison
Diff between
hero_browser/.../staticandhero_proxy/.../staticshows hero_browser is also missing:css/unpoly.min.cssjs/unpoly.min.jsjs/chart.umd.min.js…in addition to the bridge CSS. Worth verifying whether those are needed by the templates too.
Workaround
None for end users; CSS just doesn't load. Visual degradation only — no functional impact.