Skip to content

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

feat(app): show a config icon on enrichers that require params

dextmorgne40138021722
diff --git a/flowsint-app/src/components/sketches/graph/context-menu/background-context-menu.tsx b/flowsint-app/src/components/sketches/graph/context-menu/background-context-menu.tsx
index 92e6892c..ca35f11d 100644
--- a/flowsint-app/src/components/sketches/graph/context-menu/background-context-menu.tsx
+++ b/flowsint-app/src/components/sketches/graph/context-menu/background-context-menu.tsx
@@ -14,6 +14,7 @@ import {
Zap,
BadgeCheck,
BadgeAlert,
+ Settings,
Plus,
Download,
FileJson,
@@ -285,6 +286,11 @@ export default function BackgroundContextMenu({
)}{' '}
</span>{' '}
{enricher.name || '(Unnamed enricher)'}
+ {enricher.params_schema?.length ? (
+ <span title="Requires configuration">
+ <Settings className="h-3 w-3 text-muted-foreground shrink-0" />
+ </span>
+ ) : null}
</p>
{enricher.description && (
<p className="text-xs text-muted-foreground truncate">
diff --git a/flowsint-app/src/components/sketches/graph/context-menu/node-context-menu.tsx b/flowsint-app/src/components/sketches/graph/context-menu/node-context-menu.tsx
index 62cb2ffe..96724810 100644
--- a/flowsint-app/src/components/sketches/graph/context-menu/node-context-menu.tsx
+++ b/flowsint-app/src/components/sketches/graph/context-menu/node-context-menu.tsx
@@ -14,6 +14,7 @@ import {
Zap,
BadgeCheck,
BadgeAlert,
+ Settings,
SquareArrowOutUpRight
} from 'lucide-react'
import { Enricher, Flow, GraphNode } from '@/types'
@@ -228,6 +229,11 @@ export default function ContextMenu({
)}{' '}
</span>{' '}
{enricher.name || '(Unnamed enricher)'}
+ {enricher.params_schema?.length ? (
+ <span title="Requires configuration">
+ <Settings className="h-3 w-3 text-muted-foreground shrink-0" />
+ </span>
+ ) : null}
</p>
{enricher.description && (
<p className="text-xs text-muted-foreground truncate">
diff --git a/flowsint-app/src/components/sketches/launch-enricher.tsx b/flowsint-app/src/components/sketches/launch-enricher.tsx
index d74fbc9e..88d34eef 100644
--- a/flowsint-app/src/components/sketches/launch-enricher.tsx
+++ b/flowsint-app/src/components/sketches/launch-enricher.tsx
@@ -22,7 +22,16 @@ import { flowService } from '@/api/flow-service'
import { Link, useParams } from '@tanstack/react-router'
import { capitalizeFirstLetter } from '@/lib/utils'
import { Skeleton } from '@/components/ui/skeleton'
-import { Search, FileCode2, Zap, PlusIcon, GitBranch, FileX, Sparkles } from 'lucide-react'
+import {
+ Search,
+ FileCode2,
+ Zap,
+ PlusIcon,
+ GitBranch,
+ FileX,
+ Sparkles,
+ Settings
+} from 'lucide-react'
import { Enricher, Flow } from '@/types'
import {
EnricherParamsSheet,
@@ -232,7 +241,14 @@ const LaunchEnricherOrFlowPanel = memo(
<div className="flex flex-col space-y-4">
<div className="flex items-center gap-3">
<RadioGroupItem value={enricher.name} id={enricher.name} />
- <CardTitle className="text-base">{enricher.name}</CardTitle>
+ <CardTitle className="text-base flex items-center gap-1.5">
+ {enricher.name}
+ {enricher.params_schema?.length ? (
+ <span title="Requires configuration">
+ <Settings className="h-3 w-3 text-muted-foreground shrink-0" />
+ </span>
+ ) : null}
+ </CardTitle>
</div>
{enricher.description && (