From 17c988c1eef464e5b3862e94af7718acd7b96e75 Mon Sep 17 00:00:00 2001 From: serversdown Date: Fri, 15 May 2026 05:27:27 +0000 Subject: [PATCH] feat(projects): location map sidebar replaces Upcoming Actions on overview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The right column of every project's overview page now shows a Leaflet map of its monitoring locations instead of the Upcoming Actions panel. Operators get an immediate visual of where their locations sit relative to each other and to nearby sites — much more useful at-a-glance than the list of pending schedule actions, which sits one tab deeper anyway. Map behavior - Pin per active monitoring location with parseable "lat,lon" coords. Removed locations don't pin (their state is historical). - Auto-fits bounds to show all pins, with 20px padding. Single-pin projects center at zoom 14. - Tooltip on pin hover: location name. - Click pin → scrolls the matching card into view in the locations list and flashes an orange ring around it (uses the same data-location-id the drag-handle code added in commit 52dd6c3). - scrollWheelZoom disabled to prevent accidental zoom-in when scrolling the page. - Locations without coordinates surface as a small inline hint below the map ("N locations not shown: name1, name2"). - All-coords-missing projects hide the map block entirely and show a "set coordinates" hint instead. Discovery preserved: if the project has pending scheduled actions, a small "{N} upcoming actions →" link appears in the map card header that switches to the Schedules tab. Operators who care about the queue still find it instantly. Co-Authored-By: Claude Opus 4.7 --- .../partials/projects/project_dashboard.html | 136 +++++++++++++++--- 1 file changed, 119 insertions(+), 17 deletions(-) diff --git a/templates/partials/projects/project_dashboard.html b/templates/partials/projects/project_dashboard.html index aaa3eea..7d9387b 100644 --- a/templates/partials/projects/project_dashboard.html +++ b/templates/partials/projects/project_dashboard.html @@ -78,22 +78,124 @@ -
-

Upcoming Actions

- {% if upcoming_actions %} -
- {% for action in upcoming_actions %} -
-

{{ action.action_type }}

-

{{ action.scheduled_time|local_datetime }} {{ timezone_abbr() }}

- {% if action.description %} -

{{ action.description }}

- {% endif %} -
- {% endfor %} -
- {% else %} -

No scheduled actions.

- {% endif %} + +
+ +
+ +
+ +