Compare commits

...

23 Commits

Author SHA1 Message Date
Alan Buscaglia
3ca3432250 fix: conditionally pass href prop only when asLink is truthy 2025-10-22 18:16:10 +02:00
Alan Buscaglia
822b85dcdc Merge branch 'master' into refactor/graph-components-kebab-case 2025-10-22 18:15:11 +02:00
Alan Buscaglia
219d3ea9c2 fix: adjust map region filter layout to fit content width
- Changed SelectTrigger from w-full to min-w-[200px]
- Filter now only takes space it needs instead of stretching full width
- Updated import path for Select component
2025-10-22 15:28:08 +02:00
Alan Buscaglia
124d2db9f1 refactor(ui): rename graph components to kebab-case naming convention
- Rename threat-map.tsx to map-chart.tsx
- Add map-region-filter component
- Update component exports in graphs and ui indices
2025-10-22 15:11:25 +02:00
alejandrobailo
6fb6bebe59 Merge remote-tracking branch 'origin/master' into refactor/graph-components-kebab-case 2025-10-22 14:38:23 +02:00
alejandrobailo
0985e45ddf chore: update package-lock.json with dependency version changes 2025-10-22 14:33:30 +02:00
alejandrobailo
c8e096ca7c refactor: revert changes in /ui 2025-10-22 14:28:19 +02:00
Alan Buscaglia
409331804b fix: update data-table-pagination select import path
Fixed import path from @/components/shared/shadcn to @/components/ui/select
after removing the shadcn folder from shared directory.
2025-10-22 12:49:42 +02:00
Alan Buscaglia
9506c95965 feat: use shadcn select in threat-map component
Replaced native select element with shadcn Select component from
@/components/ui/select. Maintains all theme color support via CHART_COLORS.
2025-10-22 12:49:35 +02:00
Alan Buscaglia
d01df2a729 refactor: remove shadcn select folder from shared
Removed the shadcn select component folder from shared directory.
Select component moved back to ui/components/ui/select/.
2025-10-22 12:45:29 +02:00
Alan Buscaglia
672c41bdfb refactor: revert threat-map select to native element
Reverted from shadcn Select back to native <select> element with custom
ChevronDown icon. Maintains full theme color support and functionality.
2025-10-22 12:35:27 +02:00
Alan Buscaglia
d6589e807b style: format alert-pill component 2025-10-22 10:21:33 +02:00
Alan Buscaglia
62735ed4e9 refactor: remove deleted component exports from overview index 2025-10-22 10:20:23 +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
53497721f3 fix: add sample data to RadarChartWithSelection component 2025-10-21 16:24:32 +02:00
Alan Buscaglia
5758487584 feat: add missing RadarChartWithSelection and ScatterPlotWithSelection components 2025-10-21 16:20:57 +02:00
Alan Buscaglia
9b98fa12c5 fix: add missing graph component imports (RadarChart, ScatterPlot) 2025-10-21 16:18:56 +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

View File

@@ -86,7 +86,7 @@ export const CustomButton = React.forwardRef<
) => (
<Button
as={asLink ? Link : undefined}
href={asLink}
{...(asLink && { href: asLink })}
target={target}
type={type}
aria-label={ariaLabel}