Add validation and flash message for invalid date range in Reports

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-23 10:45:52 +00:00
parent 062f8783de
commit 4e5b0957bf
4 changed files with 56 additions and 0 deletions

View File

@@ -9,6 +9,13 @@
</p>
</div>
<%# Flash messages %>
<% if flash[:alert].present? %>
<div class="p-3 rounded-lg bg-destructive-surface text-sm text-destructive">
<%= flash[:alert] %>
</div>
<% end %>
<%# Period Navigation Tabs %>
<div class="flex items-center gap-2 overflow-x-auto pb-2">
<%= render DS::Link.new(