v1.6.1: edge-triggered lightning alerts + public-page open/copy button #122
No reviewers
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!122
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/v1.6.1-tweaks"
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?
Two follow-ups from operator feedback on the v1.6.0 lightning release.
Edge-triggered lightning proximity alerts (#87 follow-up)
Replaces the fixed 30-minute cooldown with the requested behavior:
LIGHTNING_ALERT_CLEAR_MINUTES(default 10).Mechanism:
Location.lightning_last_seen_at(migration 0030) is refreshed every poll while lightning is present (committed even when not firing); an alert fires only on the clear→present transition (prev_seenis None or older thanclear_minutes).LIGHTNING_ALERT_COOLDOWN_MINUTESis retained but deprecated/unused. No-radius locations stay a no-op. Tuning note: a lull longer thanclear_minuteswithin one storm would re-fire — 10 min is a sensible default and tunable.Public location page open/copy button
Public location pages were served at
/api/locations/{id}/publicbut had no UI entry point — you could enable a page but not open or share it. Public-enabled locations now show a "Public page ↗" link + a "Copy link" button (absolute URL viawindow.location.origin, clipboard with a prompt fallback) in the Locations action column.Testing (dev server)
ruff clean; 11 lightning tests (incl. entry/persist/re-entry-after-clear);
locations.htmlrenders; bulk suite 776 passed; migration 0030 verified through the full chain on a restored copy of the real prod DB (head 0030,lightning_last_seen_atpresent).🤖 Generated with Claude Code
Public location pages were served at /api/locations/{id}/public but had no UI entry point. Public-enabled locations now show a "Public page ↗" link and a "Copy link" button (absolute URL via window.location.origin; clipboard with a prompt fallback) in the Locations action column.