fix(ui): serve hero-bootstrap-bridge.css and fix static asset paths #11
No reviewers
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_foundry_ui!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_ui_static_assets_404"
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?
Summary
Three template references (
admin.html,base.html,dashboard.html) link{{ base_path }}/hero-bootstrap-bridge.cssand/hero_foundry_admin/static/js/connection-status.js— both 404 on the deployed binary because (a) no route serves the bridge stylesheet and (b) the connection-status path has a stale/hero_foundry_admin/...prefix that doesn't exist anywhere in the routing. The static-files mount also pointed at a non-existentsrc/staticdir.Changes
/hero-bootstrap-bridge.cssroute that serves the embedded stylesheet viainclude_str!crates/hero_foundry_ui/static/fs::Files::new("/static", "src/static")mount to point at the realstatic/dir{{ base_path }}/static/js/connection-status.jsTest Results
playwright: bridge.css → 200 with text/css (6339 bytes), connection-status.js → 200, full
/hero_foundry/ui/load reports 0 hero_foundry 404s.376ff010f27edc03c423