Aartiq
Aartiq™
Download
Back to Components

Desktop (Electron)

AIChatSidebar

Function Component

Chat Sidebar

Lines

8,483

File

AIChatSidebar.tsx

Last Modified

2026-10-08

Exports
default memo
Source Path

aartiq-browser/src/AIChatSidebar.tsx

Tags
ReactNode.jsCoreSecurityAISyncAutomationPDFOCRPluginmacOSWindowsLinuxFlutter

Code Analysis

React Hooks
useStateuseEffectuseCallbackuseRefuseMemouseShallow
API / Library Usage
electronAPIrouterzustand-storefirebaseframer-motionnext-navigationmarkdowntesseract-ocrsyntax-highlightlucide-icons
External Dependencies
reactframer-motionnext/navigationzustand/react/shallowtesseract.jsreact-markdownreact-syntax-highlighterreact-syntax-highlighter/dist/cjs/styles/prism/dracula
Internal Imports
./ai/markdownPlugins./ai/normalizeCitationLinks./ai/filePaths./ai/ThinkingPanel./ai/ActionChainTimeline./ai/CollapsibleOCRMessage./ai/ProcessingIndicator./ai/CollapsibleSkillMessage./ai/SkillsListMessage./ai/MessageActions./ai/ConversationHistoryPanel./ai/useAIActionSecurityManager@/lib/ai-action-security@/lib/useAppVersion./ai/AISetupGuide./LLMProviderSettings./AICommandQueue./AIChatSidebar/types./ai/DOMSearchDisplay./ai/SmartMessageContent./ai/SecureDOMReader./ai/SchedulingIntentDetector./ai/SchedulingModal./ai/McpSetupGuide./ai/MermaidDiagram./ai/FlowchartDiagram./ai/ChartDiagram./ai/YouTubePlayer./ai/ResearchExecutionCard./ai/ResearchSourceCard@/lib/AICommandParser@/lib/context-compactor@/store/useAppStore@/lib/BrowserAI@/lib/Security@/lib/AICommandOutput@/lib/SearchContextStore@/lib/SkillRegistry@/lib/ActionLogsStore./sidebar/AIFallback./sidebar/SidebarWidgets./sidebar/AISuggestionsHome./sidebar/AISuggestionBubbles./sidebar/CustomizationPanel./sidebar/useSidebarPrefs./sidebar/SidebarContext./sidebar/theme@/store/tabIntelligenceStore./sidebar/PrivacyControls./QuestionCard@/lib/aiQuestion./sidebar/AIVisualTheme./sidebar/AITabAnimation./sidebar/BackgroundNotifications@/lib/aiReasoningOptions@/lib/modelRegistry@/lib/FirebaseService@/store/selectors
Props / Types

AIChatSidebarProps

PropTypeRequired
studentModebooleanYes
toggleStudentMode() => voidYes
isCollapsedbooleanYes
toggleCollapse() => voidYes
selectedEnginestringYes
setSelectedEngine(engine: string) => voidYes
theme'dark' | 'light' | 'system' | 'vibrant' | 'custom' | 'minimal'Yes
setTheme(theme: 'dark' | 'light' | 'system' | 'vibrant' | 'custom' | 'minimal') => voidYes
backgroundImagestringYes
setBackgroundImage(imageUrl: string) => voidYes
backend'firebase' | 'mysql'Yes
setBackend(backend: 'firebase' | 'mysql') => voidYes
mysqlConfiganyYes
setMysqlConfig(config: any) => voidYes
side'left' | 'right'No
setShowSettings(show: boolean) => voidNo
setSettingsSection(section: string) => voidNo
setBrowserDisabled(disabled: boolean) => voidNo
showSchedulingModalbooleanNo
setShowSchedulingModal(show: boolean) => voidNo
schedulingIntentSchedulingIntent | nullNo
setSchedulingIntent(intent: SchedulingIntent | null) => voidNo
bridgeOnlybooleanNo
isResizingbooleanNo

SearchResultEntry

PropTypeRequired
titlestringYes
urlstringYes
snippetstringYes

GlowPresetScheme

PropTypeRequired
labelstringYes
primarystringYes
secondarystringYes
tertiarystringYes

SidebarWorkspacePreferences

PropTypeRequired
fontFamilystringYes
fontSizenumberYes
soundsEnabledbooleanYes
gradientEffectsEnabledbooleanYes
glowModeGlowModeYes
glowPresetGlowPresetYes
glowColorPrimarystringYes
glowColorSecondarystringYes
glowColorTertiarystringYes
visibleComposerIconsRecord<ComposerIconKey, boolean>Yes
modelNicknamesRecord<string, string>Yes

AutomationReport

PropTypeRequired
totalCommandsnumberYes
successCountnumberYes
failedCountnumberYes
startTimenumberYes
endTimenumberYes
Key Functions
parseSearchResultEntry()normalizeSearchResults()FilePathLink()SourceLink()renderMarkdownContent()StreamingMarkdownMessage()collapseRawSearchDump()sanitizeVisibleMessage()ThinkingStatus()loadSidebarWorkspacePreferences()blobToBase64()hexToRgba()sidebarShellStyle()softPanelStyle()popoverStyle()userBubbleStyle()onResize()findYouTubeLinkElement()next()messagesPayload()flushStreamText()websiteDetailNode()generateImage()logEntry()result()addImage()commonPayload()pdfMeta()formatSection()formatMessageForExport()merged()convertTagsToHTML()report()hOnline()hOffline()handleGlobalKeyDown()handleFocusAI()handleAbort()handleToggleAutonomous()options()

Related Components

Browse all components in the Component Inventory

Auto-Generated Documentation

Component metadata is auto-generated by aartiq-browser/scripts/component-scanner.js