diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..c39e195b --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,4 @@ +## 2024-03-24 - Tooltips with complex Radix UI nested triggers + +**Learning:** Combining multiple Radix UI triggers (like TooltipTrigger, DropdownMenuTrigger) requires careful use of `asChild` and correct nesting. Specifically, nesting `` around `` which wraps the actual ` @@ -134,18 +135,19 @@ export default function FilterPanel() { @@ -182,12 +185,14 @@ export default function FilterPanel() { Show only unresolved diff --git a/src/components/FluxLensLogo.tsx b/src/components/FluxLensLogo.tsx index a2ff4a28..be665f33 100644 --- a/src/components/FluxLensLogo.tsx +++ b/src/components/FluxLensLogo.tsx @@ -63,10 +63,7 @@ export function FluxLensLogo({ alt="FluxLens" fill sizes={`${iconPixelSize}px`} - className={cn( - 'object-contain opacity-95', - theme === 'light' && 'brightness-0' - )} + className={cn('object-contain opacity-95', theme === 'light' && 'brightness-0')} /> diff --git a/src/components/analytics/RiskWeightedTimeline.tsx b/src/components/analytics/RiskWeightedTimeline.tsx index 83750438..b8985226 100644 --- a/src/components/analytics/RiskWeightedTimeline.tsx +++ b/src/components/analytics/RiskWeightedTimeline.tsx @@ -116,8 +116,8 @@ export function RiskWeightedTimeline({ const avgConfidence = filteredEvents.length > 0 ? Math.round( - (filteredEvents.reduce((acc, e) => acc + e.confidence, 0) / filteredEvents.length) * 100 - ) + (filteredEvents.reduce((acc, e) => acc + e.confidence, 0) / filteredEvents.length) * 100 + ) : 0 return { critical, high, avgConfidence, total: filteredEvents.length } }, [filteredEvents]) @@ -214,7 +214,10 @@ export function RiskWeightedTimeline({ aria-pressed={isEnabled} aria-label={`Filter ${config.label} events`} > - + {config.label} {events.filter((e) => e.lane === lane).length} @@ -241,7 +244,9 @@ export function RiskWeightedTimeline({

No events match the current filters

+ + )} + +
+
+ {currentUserName.charAt(0).toUpperCase()} +
+ +
+