Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: toolbar editor dropdown

dextmorgn8b609e1c038d
diff --git a/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-button.tsx b/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-button.tsx
index 2f09a64a..16d123c3 100644
--- a/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-button.tsx
+++ b/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-button.tsx
@@ -40,7 +40,7 @@ export const ToolbarButton = React.forwardRef<
return (
<Tooltip>
- <TooltipTrigger asChild>{toggleButton}</TooltipTrigger>
+ <TooltipTrigger asChild><div>{toggleButton}</div></TooltipTrigger>
<TooltipContent {...tooltipOptions}>
<div className="flex flex-col items-center text-center">
{tooltip}
diff --git a/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-section.tsx b/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-section.tsx
index ed8ca648..5d4f591f 100644
--- a/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-section.tsx
+++ b/flowsint-app/src/renderer/src/components/analyses/editor/components/toolbar-section.tsx
@@ -97,6 +97,7 @@ export const ToolbarSection: React.FC<ToolbarSectionProps> = ({
{dropdownActions.length > 0 && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
+ <div>
<ToolbarButton
isActive={isDropdownActive}
tooltip={dropdownTooltip}
@@ -107,6 +108,7 @@ export const ToolbarSection: React.FC<ToolbarSectionProps> = ({
>
{dropdownIcon || <ChevronDownIcon className="size-5" />}
</ToolbarButton>
+ </div>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-full">
{dropdownActions.map(renderDropdownMenuItem)}
diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx
index 95eb6c6b..488551c7 100644
--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx
+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx
@@ -126,6 +126,12 @@ function InvestigationPage() {
</div>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
+ <NewSketch>
+ <DropdownMenuItem onSelect={(e) => e.preventDefault()}>
+ <BarChart3 className="h-4 w-4 mr-2" />
+ New Sketch
+ </DropdownMenuItem>
+ </NewSketch>
<DropdownMenuItem
onClick={() => createAnalysisMutation.mutate()}
disabled={createAnalysisMutation.isPending}
@@ -136,12 +142,6 @@ function InvestigationPage() {
<span className="ml-2 text-xs text-muted-foreground">Creating...</span>
)}
</DropdownMenuItem>
- <NewSketch>
- <DropdownMenuItem onSelect={(e) => e.preventDefault()}>
- <BarChart3 className="h-4 w-4 mr-2" />
- New Sketch
- </DropdownMenuItem>
- </NewSketch>
</DropdownMenuContent>
</DropdownMenu>
</div>