frontend: load bookmarks-ui.js from the Go SSR home template too #120

Merged
admin_emi merged 1 commit from fix/bookmarks-go-ssr-script into dev 2026-07-26 18:49:43 +00:00
Owner

The bookmarks feature (#117) added the bookmarks-ui.js module tag to
frontend/templates/home.html.j2 — the Python SSR template — but the home page
is 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.js and /bookmarks-ui.js both
serve 200, /api/v2/bookmarks answers 401 (route live, not 404) and the
bookmark table exists at alembic head 0004_bookmarks — but the rendered
home 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 two
templates at parity.

The bookmarks feature (#117) added the `bookmarks-ui.js` module tag to `frontend/templates/home.html.j2` — the Python SSR template — but the home page is 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.js` and `/bookmarks-ui.js` both serve 200, `/api/v2/bookmarks` answers 401 (route live, not 404) and the `bookmark` table exists at alembic head `0004_bookmarks` — but the rendered home 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 two templates at parity.
admin_emi added 1 commit 2026-07-26 18:48:16 +00:00
frontend: load bookmarks-ui.js from the Go SSR home template too
All checks were successful
secrets-guard / encrypted (pull_request) Successful in 5s
PR build (required check) / validate-observability (pull_request) Has been skipped
PR build (required check) / changes (pull_request) Successful in 6s
PR build (required check) / build-backend (pull_request) Has been skipped
shell-lint / shellcheck (pull_request) Successful in 6s
PR build (required check) / build-frontend (pull_request) Successful in 59s
PR build (required check) / gate (pull_request) Successful in 2s
a316adadc4
admin_emi merged commit b57e280ad6 into dev 2026-07-26 18:49:43 +00:00
admin_emi deleted branch fix/bookmarks-go-ssr-script 2026-07-26 18:49:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Jinemi/thermograph#120
No description provided.