A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: setting to hide/show flo
dextmorgnec92af80b267
diff --git a/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsx b/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsxindex 00e1c4fb..32daa3bc 100644--- a/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsx+++ b/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsx@@ -25,7 +25,7 @@ function InvestigationCard({ investigation }: InvestigationCardProps) {params={{ investigationId: investigation.id }}className="block">- <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border-2 hover:border-primary/20">+ <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border hover:border-primary/20"><CardContent className="h-full flex flex-col">{/* Header with title and count */}<div className="flex items-start justify-between mb-3">diff --git a/flowsint-app/src/renderer/src/components/graphs/graph-main.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-main.tsxindex c4e68f4c..73d9cccb 100644--- a/flowsint-app/src/renderer/src/components/graphs/graph-main.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/graph-main.tsx@@ -62,7 +62,7 @@ const GraphMain = () => {showIcons={true}onGraphRef={handleGraphRef}allowLasso- minimap={settings.general.showMinimap.value}+ minimap={Boolean(settings?.general?.showMinimap?.value)}/>{menu && <ContextMenu onClick={handleBackgroundClick} {...menu} />}</div>diff --git a/flowsint-app/src/renderer/src/components/graphs/nodes-panel.tsx b/flowsint-app/src/renderer/src/components/graphs/nodes-panel.tsxindex 425638e9..fdfa2311 100644--- a/flowsint-app/src/renderer/src/components/graphs/nodes-panel.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/nodes-panel.tsx@@ -55,7 +55,7 @@ const NodeRenderer = memo(onClick={handleClick}><div className="grow truncate text-ellipsis">{node?.data?.label}</div>- <TypeBadge type={node?.data?.type} />+ <TypeBadge className="ml-1" type={node?.data?.type} /></button></div>)diff --git a/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx b/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsxindex d5f76110..ebf69a78 100644--- a/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx+++ b/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx@@ -64,7 +64,7 @@ const TreeNode = ({className={cn("flex items-center group gap-2 px-3 py-2 hover:bg-muted/50 transition-colors",isActive && "bg-muted",- level > 0 && "ml-4",+ level > 0 && "pl-4",!isClickable && "cursor-default")}style={{ paddingLeft: `${12 + (level * 16)}px` }}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 0b3ba383..95eb6c6b 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@@ -238,7 +238,7 @@ function InvestigationPage() {{investigation.sketches?.slice(0, 8).map((sketch: any) => (<Cardkey={sketch.id}- className="group py-2 relative overflow-hidden cursor-pointer border-2 border-border hover:border-primary bg-primary/10"+ className="group py-2 relative overflow-hidden cursor-pointer border border-border hover:border-primary"onClick={() => navigate({to: "/dashboard/investigations/$investigationId/$type/$id",params: {@@ -306,7 +306,7 @@ function InvestigationPage() {{investigation.analyses?.slice(0, 8).map((analysis: any) => (<Cardkey={analysis.id}- className="group py-2 relative overflow-hidden cursor-pointer hover:shadow-xl border-2 border-border hover:border-secondary bg-secondary/10"+ className="group py-2 relative overflow-hidden cursor-pointer hover:shadow-xl border border-border hover:border-secondary"onClick={() => navigate({to: "/dashboard/investigations/$investigationId/$type/$id",params: {diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.tsxindex bce29382..76994cf5 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.tsx@@ -1,5 +1,6 @@import FloatingChat from '@/components/chat/floating-chat'import RootLayout from '@/components/layout/root.layout'+import { useGraphSettingsStore } from '@/stores/graph-settings-store'import { createFileRoute, Outlet } from '@tanstack/react-router'export const Route = createFileRoute('/_auth/dashboard')({@@ -7,10 +8,11 @@ export const Route = createFileRoute('/_auth/dashboard')({})function DashboardPage() {+ const settings = useGraphSettingsStore(s => s.settings)return (<RootLayout><Outlet />- <FloatingChat />+ {Boolean(settings.general.showFlow.value) && <FloatingChat />}</RootLayout>)}diff --git a/flowsint-app/src/renderer/src/stores/graph-settings-store.ts b/flowsint-app/src/renderer/src/stores/graph-settings-store.tsindex dceca739..304a855f 100644--- a/flowsint-app/src/renderer/src/stores/graph-settings-store.ts+++ b/flowsint-app/src/renderer/src/stores/graph-settings-store.ts@@ -7,6 +7,11 @@ const DEFAULT_SETTINGS = {},general: {+ showFlow: {+ type: "boolean",+ value: true,+ description: "Display Flo, your AI assistant."+ },showMinimap: {type: "boolean",value: true,diff --git a/flowsint-app/src/renderer/src/styles.css b/flowsint-app/src/renderer/src/styles.cssindex 26805320..b70e04e5 100644--- a/flowsint-app/src/renderer/src/styles.css+++ b/flowsint-app/src/renderer/src/styles.css@@ -414,7 +414,7 @@ html {--font-sans: Inter, sans-serif;--font-serif: Source Serif 4, serif;--font-mono: JetBrains Mono, monospace;- --radius: 0.375rem;+ --radius: 0.280rem;--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);@@ -996,7 +996,7 @@ pre {--font-sans: Geist Mono, ui-monospace, monospace;--font-serif: serif;--font-mono: JetBrains Mono, monospace;- --radius: 0.75rem;+ --radius: 0.280rem;--shadow-2xs: 0px 1px 4px 0px hsl(0 0% 0% / 0.03);--shadow-xs: 0px 1px 4px 0px hsl(0 0% 0% / 0.03);--shadow-sm: 0px 1px 4px 0px hsl(0 0% 0% / 0.05), 0px 1px 2px -1px hsl(0 0% 0% / 0.05);@@ -1045,7 +1045,7 @@ pre {--font-sans: Geist Mono, ui-monospace, monospace;--font-serif: serif;--font-mono: JetBrains Mono, monospace;- --radius: 0.75rem;+ --radius: 0.280rem;--shadow-2xs: 0px 1px 4px 0px hsl(0 0% 0% / 0.03);--shadow-xs: 0px 1px 4px 0px hsl(0 0% 0% / 0.03);--shadow-sm: 0px 1px 4px 0px hsl(0 0% 0% / 0.05), 0px 1px 2px -1px hsl(0 0% 0% / 0.05);