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.tsxindex 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.tsxindex 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><ToolbarButtonisActive={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.tsxindex 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><DropdownMenuItemonClick={() => 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>