Add a last-24-hours filter to the map #154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "map-last-24h"
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?
What this PR does
Adds a Last 24 hours filter to the map plugin, beside Last 7 days. Both time filters go by when a location was recorded or estimated.
With five options, the filter row has no room left for Reset view on a phone. Reset view moves onto the map, as a control in its top-left corner; the north arrow already holds the top-right. It shows only when the map is zoomed or moved, keeps the current filter, and stays put while you drag. It is a 44 px-tall touch target: white over the map tiles, and the page's own card colours without them.
Each filter option now keeps its words together, so a narrow phone wraps the row between options, never inside one.
Checklist
make lint(ansible--syntax-check,yamllint,shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.make test(thekestrel_pipytest suite and the real-data check's tests). The Test workflow runs this on the PR.mapstays local-only, with no ack; nothing about capture or network plugins changes.GUIDE_MDanddocs/user-guide/map.md(the new filter, and where Reset view now is).Release impact
plugins/map.pyand thekestrel_pipackage (userguide.py); tests and docs aside.Notes for review
phone-mapfigure will show the new filter row once this ships in a stable release.🤖 Generated with Claude Code
Rendered from this branch with the guide's demo fixture (invented data) on an iPhone 14 Pro Max: a 430 × 932 pt screen at 2x, dark mode, framed like the guide's shots.
The demo's locations are all an hour old, so Last 24 hours shows the same markers as All here; the tests cover the cut itself.