Skip to content

Fix/better dashboard panels#165

Merged
BlessedRebuS merged 4 commits intodevfrom
fix/better-dashboard-panels
Apr 2, 2026
Merged

Fix/better dashboard panels#165
BlessedRebuS merged 4 commits intodevfrom
fix/better-dashboard-panels

Conversation

@Lore09
Copy link
Copy Markdown
Collaborator

@Lore09 Lore09 commented Apr 2, 2026

This pull request updates the default time span and granularity for attack trends in the dashboard, improves error handling in AI generation, and enhances the display of date ranges in charts. The most important changes are grouped below:

Dashboard Trends Defaults and Display:

  • The default selected time span for attack trends is changed from 30 days to 7 days in both the UI (index.html) and the JavaScript logic (charts.js). The "7D" button is now active by default, and _trendsDays is set to 7. [1] [2]
  • The backend now always uses hourly granularity for attack type trends, regardless of the selected time span, instead of switching to daily granularity for longer periods.
  • The chart's period label logic is improved to correctly format and display date ranges, distinguishing between hourly and daily data for better clarity.

AI Generation Error Handling:

  • The error handling in generate_html_for_path is refactored: on AI generation failure, the function now raises exceptions instead of returning an HTML error response, improving error propagation and logging.

@Lore09 Lore09 requested a review from BlessedRebuS April 2, 2026 17:42
@Lore09 Lore09 self-assigned this Apr 2, 2026
@Lore09 Lore09 added the enhancement New feature or request label Apr 2, 2026
@BlessedRebuS BlessedRebuS merged commit acbc648 into dev Apr 2, 2026
3 checks passed
@Lore09 Lore09 deleted the fix/better-dashboard-panels branch April 3, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants