Public location page shows "Loading alerts…" forever — never fetches current alerts #49
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot#49
Loading…
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?
public_location.html:30-38relies solely onsse-swap="new_alert"deltas;the route (app/api/locations.py:224-241) passes no alerts and the SSE
generator sends no backfill. Visitors during an active alert see the
"Loading alerts…" placeholder indefinitely; alerts active before page-open
never appear. Server-render the location's current active alerts (mirror the
dashboard query, filtered to this location, public-safe fields only), render
an explicit "No active alerts" empty state, and keep SSE for live updates.
While in the template: it also displays exact coordinates — handled separately
in the public-surface privacy issue (F-21).
Acceptance criteria:
Filed from the 2026-07-17 codebase audit (
docs/.internal/report-2026-07-17.md), finding F-10.Fixed in #92 (merged to
main). The public location route now queries the location's current active alerts and the template server-renders them (matching the dashboard card shape) with an explicit "No active alerts" empty state instead of a perpetual "Loading alerts…". SSE live updates are retained and de-duped bydata-alert-idso a live alert doesn't duplicate a server-rendered one. Tests cover the active-alert-on-load and empty-state cases.