A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(app): use toggle instead of open for settings
dextmorgna813d02082bc
diff --git a/flowsint-app/src/components/graphs/settings.tsx b/flowsint-app/src/components/graphs/settings.tsxindex 23486652..80d7cc39 100644--- a/flowsint-app/src/components/graphs/settings.tsx+++ b/flowsint-app/src/components/graphs/settings.tsx@@ -784,23 +784,30 @@ export function KeyboardShortcuts() {const shortcuts = [{- category: 'Navigation & Panels',+ category: 'Navigation & panels',items: [- { key: `${modKey}+L`, description: 'Toggle Analysis Panel' },- { key: `${modKey}+B`, description: 'Toggle Panel' },- { key: `${modKey}+D`, description: 'Toggle Console' },- { key: `${modKey}+J`, description: 'Open Command Palette' }+ { key: `${modKey}+L`, description: 'Toggle analysis panel' },+ { key: `${modKey}+B`, description: 'Toggle panel' },+ { key: `${modKey}+D`, description: 'Toggle console' },+ { key: `${modKey}+J`, description: 'Open command palette' }]},{- category: 'Chat & Assistant',+ category: 'Settings',items: [- { key: `${modKey}+E`, description: 'Toggle Chat Assistant' },- { key: 'Escape', description: 'Close Chat Assistant' }+ { key: `${modKey}+G`, description: 'Toggle graph settings' },+ { key: `${modKey}+K`, description: 'Toggle keyboard shortcuts' },]},{- category: 'File Operations',+ category: 'Chat & assistant',+ items: [+ { key: `${modKey}+E`, description: 'Toggle chat assistant' },+ { key: 'Escape', description: 'Close chat assistant' }+ ]+ },+ {+ category: 'File operations',items: [{ key: `${modKey}+S`, description: 'Save (Analysis/Flow)' }]}]diff --git a/flowsint-app/src/components/layout/top-navbar.tsx b/flowsint-app/src/components/layout/top-navbar.tsxindex 9d2519ba..4283d9a4 100644--- a/flowsint-app/src/components/layout/top-navbar.tsx+++ b/flowsint-app/src/components/layout/top-navbar.tsx@@ -2,7 +2,7 @@ import { Command } from '../command'import { Link, useNavigate, useParams } from '@tanstack/react-router'import InvestigationSelector from './investigation-selector'import SketchSelector from './sketch-selector'-import { memo, useCallback, useState } from 'react'+import { memo, useCallback } from 'react'import { Switch } from '../ui/switch'import { Label } from '../ui/label'import { useLayoutStore } from '@/stores/layout-store'@@ -144,11 +144,11 @@ export function InvestigationMenu({ investigationId, sketchId }: { investigation<DropdownMenuContent className="w-56" align="start"><DropdownMenuLabel>Settings</DropdownMenuLabel><DropdownMenuGroup>- <DropdownMenuItem onClick={() => setSettingsModalOpen(true)}>+ <DropdownMenuItem onClick={toggleSettingsModal}>General<DropdownMenuShortcut>⌘G</DropdownMenuShortcut></DropdownMenuItem>- <DropdownMenuItem onClick={() => setKeyboardShortcutsOpen(true)}>+ <DropdownMenuItem onClick={toggleKeyboardShortcutsModal}>Keyboard shortcuts<DropdownMenuShortcut>⌘K</DropdownMenuShortcut></DropdownMenuItem>diff --git a/flowsint-app/src/main.tsx b/flowsint-app/src/main.tsxindex 6c5c2fb4..fcb41acb 100644--- a/flowsint-app/src/main.tsx+++ b/flowsint-app/src/main.tsx@@ -18,6 +18,7 @@ const router = createRouter({scrollRestoration: true,defaultStructuralSharing: true,// Keep components mounted but hidden during transitions+ // @ts-ignoredefaultPendingComponent: ({ children }: { children: React.ReactNode }) => children,defaultPendingMs: 0})