frontend: load bookmarks-ui.js from the Go SSR home template too #120
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#120
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bookmarks-go-ssr-script"
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?
The bookmarks feature (#117) added the
bookmarks-ui.jsmodule tag tofrontend/templates/home.html.j2— the Python SSR template — but the home pageis rendered in production by the Go service (
frontend/server, embedded*.tmpl), so nothing on the deployed map page ever loaded the module.Verified on dev before the fix:
/bookmarks.jsand/bookmarks-ui.jsbothserve 200,
/api/v2/bookmarksanswers 401 (route live, not 404) and thebookmarktable exists at alembic head0004_bookmarks— but the renderedhome page referenced only app.js and climate.js. The star toggle, the "Saved"
dropdown and the login import banner were all dead code in the browser.
This ports the one missing line into
home.html.tmpl, keeping the twotemplates at parity.