From 08d3d537026972207e262c42196251c616538149 Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 11 Jun 2026 00:59:50 +0000 Subject: [PATCH] feat(reports): add "Night Report" button to sound project header Sound projects only: a Night Report button next to "Generate Combined Report" opens a small modal (pick night + optional baseline range) that opens the rendered report (/reports/nightly/view) in a new tab. Defaults the night to last night; baseline is optional. Verified the header partial renders and the button is gated to sound_monitoring (hidden on vibration-only projects); modal + JS wired. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../partials/projects/project_header.html | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/templates/partials/projects/project_header.html b/templates/partials/projects/project_header.html index 9e49749..20cbd31 100644 --- a/templates/partials/projects/project_header.html +++ b/templates/partials/projects/project_header.html @@ -74,6 +74,14 @@ Generate Combined Report + {% endif %} + +
+

Last night's noise (7 PM–7 AM) vs a baseline range, per location. Opens in a new tab.

+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ + +
+ + + +