Commit Graph

9 Commits

Author SHA1 Message Date
Alan Buscaglia d6589e807b style: format alert-pill component 2025-10-22 10:21:33 +02:00
Alan Buscaglia e5364911bb feat: implement comprehensive light/dark theme support for all chart components
- Add CSS variables to all chart tooltips and components for dynamic theme switching
- Update AlertPill component to use theme-aware colors (--chart-alert-bg, --chart-alert-text)
- Change all alert icons to use red color (--chart-fail) consistently across charts
- Add ScatterDataPoint type to centralized types.ts
- Fix scatter-plot-with-selection component type definitions and imports
- Migrate shadcn Select component to shared folder structure
- Update ThreatMap to use shadcn Select instead of native select element
- Ensure all graph components dynamically update colors when theme toggles

This enables seamless light/dark theme support across:
- ChartTooltip and MultiSeriesChartTooltip
- LineChart, RadarChart, ScatterPlot custom tooltips
- AlertPill and icon coloring
- All form elements now use shadcn components
2025-10-22 10:19:12 +02:00
Alan Buscaglia 17a841a86d feat: add comprehensive light/dark theme support for all graph components
- Add complete CSS variables for both light and dark themes in globals.css
- Light theme: dark text on light backgrounds (primary: #1f2937, bg: #f9fafb)
- Dark theme: white text on dark backgrounds (primary: #ffffff, bg: #1e293b)
- Update all chart components to use CSS variables instead of hardcoded colors
- Tooltips, legends, titles, and text automatically adapt to theme changes
- Fix SankeyChart text to properly display in light mode (was hardcoded white)
- Update DonutChart center label to use theme-aware text colors
- All components now dynamically respond to theme toggle via next-themes
2025-10-21 17:07:23 +02:00
Alan Buscaglia f223b24060 Revert "feat: add light theme support for graph components"
This reverts commit bbad5b79a6.
2025-10-21 16:33:50 +02:00
Alan Buscaglia bbad5b79a6 feat: add light theme support for graph components 2025-10-21 16:32:40 +02:00
Alan Buscaglia 1ee54eeb1a refactor: rename graph components to kebab-case 2025-10-21 16:04:11 +02:00
Alan Buscaglia f16c2cb415 refactor(ui): enhance SankeyChart with interactive tooltips and remove BarChart
- Remove BarChart component (no longer needed)
- Add interactive hover states and tooltips to SankeyChart
- Implement link and node highlighting on hover
- Add PROVIDER_COLORS and STATUS_COLORS constants
- Update Google provider color to official brand color
2025-10-17 12:38:30 +02:00
Alan Buscaglia b9747dc604 feat(ui): add ThreatMap component and refactor chart color system
- Add ThreatMap component with world map visualization
- Refactor chart colors to use chart- prefix in CSS variables
- Update all graph components to use new color system
- Add topojson-client and d3-geo dependencies
2025-10-17 10:45:23 +02:00
Alan Buscaglia 42e816081e feat: reusable graph components (#8873)
Co-authored-by: Alejandro Bailo <59607668+alejandrobailo@users.noreply.github.com>
2025-10-13 13:53:28 +02:00