repo
stringclasses
20 values
path
stringlengths
6
94
lang
stringclasses
5 values
n_chars
int64
81
200k
sha256
stringlengths
64
64
content
stringlengths
81
200k
eren23/non_linear_ai_chat
frontend/src/components/controls/PromptDialog.tsx
tsx
3,899
de8e5d32167f0e0a0017f38f800e5863f791a2429aa12926347650324de2e768
/** * Prompt Dialog - Replaces prompt() calls */ import React, { useState, useEffect, useRef } from 'react'; import { createPortal } from 'react-dom'; import { MessageSquare, X } from 'lucide-react'; import styles from './PromptDialog.module.css'; interface PromptDialogProps { isOpen: boolean; title: string; ...
eren23/non_linear_ai_chat
frontend/src/components/controls/BugReportPanel.tsx
tsx
14,455
8d68bb2b3478d3523265fb63a60ef02d9cc48e8e6facf2b2fdbe383b4af02803
/** * Bug Report Panel - Allow users to report bugs. */ import React, { useState, useEffect } from 'react'; import { createPortal } from 'react-dom'; import { Bug, X, Send, Loader } from 'lucide-react'; import { createBugReport } from '@/lib/bugReportsApi'; import { listFlows } from '@/lib/flowsApi'; import useGraph...
eren23/non_linear_ai_chat
frontend/src/components/controls/FloatingInputBar.tsx
tsx
47,244
b7a6448598bcb9a7e55bc6cb757fffc19dbefec199c29ac99ab47361d9bb2650
/** * FloatingInputBar - Floating bottom input bar for new layout. * * Renders when a single chat or media generation node is selected on the canvas. * Contains: textarea, attach file, voice, expand editor, regenerate, send/generate. * Replaces the input section that was previously in NodeProperties. */ import R...
eren23/non_linear_ai_chat
frontend/src/components/controls/OverflowMenu.tsx
tsx
3,051
d6465419db33539f9f1fa740017da1958a32373dd991e0d329ba036313848a7b
/** * Overflow Menu - Collapsible dropdown for secondary control bar items. * Used when screen width is below 1400px to keep essential items visible. */ import React, { useState, useRef, useEffect, useCallback } from 'react'; import { MoreHorizontal } from 'lucide-react'; import { useTranslation } from '@/i18n/useT...
eren23/non_linear_ai_chat
frontend/src/components/controls/ConfirmDialog.tsx
tsx
1,839
263fc9e0c1796e1d56086d9ca8945daee468164c4eb8c8346cc248c26c9e77c2
/** * Confirmation Dialog - Replaces confirm() calls */ import React from 'react'; import { createPortal } from 'react-dom'; import { AlertTriangle, X } from 'lucide-react'; import styles from './ConfirmDialog.module.css'; interface ConfirmDialogProps { isOpen: boolean; title: string; message: string; confi...
eren23/non_linear_ai_chat
frontend/src/components/controls/TokenCountBadge.tsx
tsx
4,961
7035407a9905029f24fe7a07814e23c420c7a288fdd589e806f07d46ee7f509f
/** * TokenCountBadge - Displays estimated token count for ancestry chain. * * Features: * - Color indicator: green (<50%), yellow (50-80%), red (>80%) * - Optional progress bar * - Warning text when approaching limit * - Compact and full display modes */ import React, { memo } from 'react'; import { AlertTria...
eren23/non_linear_ai_chat
frontend/src/components/controls/RelatedContext.tsx
tsx
7,516
22b413173791649f659a0f4ab32f528ae9d50717d77faf47eb06c341005f7813
/** * RelatedContext - Right sidebar panel showing related memories, notes, * and nodes from other flows while the user types. * * Items can be pinned to include as explicit context for generation. */ import React, { useEffect, useMemo } from 'react'; import { Brain, FileText, MessageSquare, Globe, Pin,...
eren23/non_linear_ai_chat
frontend/src/components/controls/ImageTemplateManager.tsx
tsx
14,980
e443d0ed278dfc8fb10a708851b1e117e82b586b3cc0bdcc3dfa56dd2ab34916
/** * Image template manager component - for managing user's image generation templates. */ import React, { useState, useEffect, useCallback } from 'react'; import { Plus, Edit2, Trash2, Copy, Power, PowerOff, Filter, X, Download, Loader2 } from 'lucide-react'; import { ImageTemplate, ImageTemplateParameters } from ...
eren23/non_linear_ai_chat
frontend/src/components/controls/EmptyStateInput.tsx
tsx
8,940
de7be6f4455de4259f94b135daf9c53cf78f93ca9fd7b7a721cde7265070d1dc
/** * EmptyStateInput - Chat-like centered input for empty canvas. * * Shows when no nodes exist. User types a prompt, selects a model, * and hits Enter to create the first node with a smooth transition. */ import React, { useState, useRef, useCallback, useEffect } from 'react'; import { Send, GitBranch, Layers, ...
eren23/non_linear_ai_chat
frontend/src/components/controls/SaveStatusIndicator.tsx
tsx
3,474
09f8596130138f11b2723a4fea9f4e5d0d68c341c5baab266c39d695be3604fc
/** * Save Status Indicator - Shows auto-save status in the UI */ import React, { useEffect, useState } from 'react'; import { Cloud, CloudOff, Check, Loader2, AlertCircle } from 'lucide-react'; import useGraphStore from '@/store/useGraphStore'; import { shallow } from 'zustand/shallow'; import { useTranslation } fr...
eren23/non_linear_ai_chat
frontend/src/components/controls/CustomInstructionsEditor.tsx
tsx
5,743
1e70142ae3ac7a4cb09f0ab52eea2a98c52103f6db5d4a6c92f46ac0038803d9
/** * CustomInstructionsEditor - Enhanced editor for custom system prompts. * * Features: * - Status badge (active/not set) * - Collapsible "How it works" section * - Template chips for quick insertion * - Enhanced textarea with character counter * - Clear button */ import React, { useState } from 'react'; im...
eren23/non_linear_ai_chat
frontend/src/components/controls/CommandPalette.tsx
tsx
10,523
00c368029416bb1227fa1f288249460040780d906de38669e195040fcad89500
/** * Command Palette - Dual-mode universal interface (Cmd+K) * * Default mode: Global content search across all data sources * Command mode: Activated by typing ">" prefix — searches commands * * Follows progressive disclosure - users discover features by searching. */ import React, { useState, useEffect, useR...
eren23/non_linear_ai_chat
frontend/src/components/controls/ParallelGenerationModal.tsx
tsx
8,537
9aafdffab8a9934628039857fc89c5de08fe32b7f6e3bbf0df94acbc5adbff0c
/** * ParallelGenerationModal - Configuration modal for parallel generation. * Allows users to select mode (branches, models, synthesis) and configure options. */ import React, { useState, useMemo } from 'react'; import { X, Waypoints, Layers, Sparkles, Check, Plus, Minus } from 'lucide-react'; import useGraphStore...
eren23/non_linear_ai_chat
frontend/src/components/controls/BottomToolbar.tsx
tsx
3,955
171683036d7134454932d2559c36f0922b3a0c9dd6fa3afaa26540bd5bd63810
/** * BottomToolbar - Floating toolbar at bottom center of canvas. * * Icons: Add | Select | Pan | Snap | Divider | Undo | Redo | Divider | Delete * Replaces the old ControlBar in the new ElevenLabs-style layout. */ import React from 'react'; import { Plus, MousePointer2, Hand, Grid3X3, Undo2, Redo2, ...
eren23/non_linear_ai_chat
frontend/src/components/controls/SharedFlowView.tsx
tsx
10,047
90955795bc29b24bacd7f747300b84c4379a033297e2055966e39dd3626eb206
/** * Shared Flow View - Display and import shared flows */ import React, { useState, useEffect, useCallback } from 'react'; import { Download, X, AlertCircle, FileText } from 'lucide-react'; import { getSharedFlow, importSharedFlow, getFlow, type SharedFlowResponse } from '@/lib/flowsApi'; import { showError, showS...
eren23/non_linear_ai_chat
frontend/src/components/controls/LibraryDocumentCard.tsx
tsx
12,518
509f38f34bd461ef30cf4b9fc3b39fba9206f11c2fb6bc3729c3ffe387d60a98
import { useState, useMemo } from 'react'; import { Tag, Trash2, Loader2, RefreshCw, CheckCircle2, AlertCircle, Paperclip, MessageSquare, ChevronDown, ChevronUp, FileText, FileImage, File as FileIcon, } from 'lucide-react'; import { updateLibraryDocument, type LibraryDocument } from '@/lib/lib...
eren23/non_linear_ai_chat
frontend/src/components/controls/LibrarySearchResultCard.tsx
tsx
2,955
4551d20d729022bc95b5fc699d8aa07e37cd687d7ae43075532eecf8f1be03b4
import { Tag, Paperclip, Loader2, FileText, FileImage, File as FileIcon } from 'lucide-react'; import type { SearchResult } from '@/lib/documentsApi'; import styles from './LibraryPanel.module.css'; interface LibrarySearchResultCardProps { result: SearchResult; currentFlowId: string | null; selectedNodeIds: stri...
eren23/non_linear_ai_chat
frontend/src/components/controls/ImageTemplateForm.tsx
tsx
20,186
984946823b411325b1389b51a39cdc6f4afdf8bd58e3e83f194fe7c5c85f7752
/** * Image template form component - for editing template parameters. */ import React, { useState, useCallback } from 'react'; import { ChevronDown, ChevronRight, X } from 'lucide-react'; import { ImageTemplateParameters } from '@/types/graph'; import styles from './ImageTemplateForm.module.css'; interface ImageTe...
eren23/non_linear_ai_chat
frontend/src/components/controls/NotificationPanel.tsx
tsx
11,555
8fd1a51950ef1b5e95b111bed28813455bae738125beedc7e3aa610432da6e01
/** * Notification Panel - Display and manage user notifications. */ import React, { useState, useEffect, useCallback, useRef } from 'react'; import { createPortal } from 'react-dom'; import { Bell, X, Check, Trash2, AlertCircle, AlertTriangle, Info, CheckCircle } from 'lucide-react'; import { getNotifications, ...
eren23/non_linear_ai_chat
frontend/src/components/controls/UploadProgressPanel.tsx
tsx
9,471
cefe3663815d42ba110800ab260bbc96008cf2863026268b22ab3f2b193cac55
/** * Upload Progress Panel - Floating bottom-right panel showing real-time file upload progress. * * Listens to useFileProgressStore (fed by Socket.IO file:progress events) and displays * a compact, collapsible panel with progress bars for each active upload. * * Features: * - Color-coded stages: blue=processin...
eren23/non_linear_ai_chat
frontend/src/components/controls/LibraryPanel.tsx
tsx
46,975
3819a31d39a0be2be94397ad928bb4b1b8f10ca43037837148cc1521ab983d9c
import React, { useState, useCallback, useEffect, useRef } from 'react'; import { createPortal } from 'react-dom'; import { BookOpen, X, Search, Tag, UploadCloud, Trash2, Filter, Loader2, RefreshCw, ChevronLeft, ChevronRight, ArrowUpDown, AlertCircle, Clock, Link2 } from 'lucide-react'; import useDocumentChatStore from...
eren23/non_linear_ai_chat
frontend/src/components/controls/ModelSelector.tsx
tsx
15,566
559dec819883ee334c948b91df77eac6549d280dee63a86010cd40fc3687062d
import React, { useState, useMemo, useEffect } from 'react'; import { Star, Zap, Brain, Code, Eye, Gift, ChevronDown, ChevronRight, Image, Video, Search } from 'lucide-react'; import type { ModelInfo, ModelCategory, ModelStatus, ProviderFamily } from '@/types/graph'; import { useTranslation } from '@/i18n/useTranslatio...
eren23/non_linear_ai_chat
frontend/src/components/controls/SlashCommandMenu.tsx
tsx
3,574
7b989c685db78e4c3bb2100000da3b4bccda0f8b9121d46dede39339fb462b33
/** * Slash Command Menu - A popup menu for slash commands in chat input. * Triggered when user types '/' in the chat input area. */ import React, { useRef, useEffect, useState, useCallback } from 'react'; import { FileText, Terminal } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; imp...
eren23/non_linear_ai_chat
frontend/src/components/controls/OnboardingModal.tsx
tsx
2,219
9fe6e9731c13cf146fd0cc747c9f517f47f1e5379391bae0a87c3245d7a4798c
import { useCallback } from 'react' import { Play, Sparkles } from 'lucide-react' import styles from './OnboardingModal.module.css' import { useTranslation } from '@/i18n/useTranslation' import { useTourStore } from '@/store/useTourStore' export function OnboardingModal(props: { isOpen: boolean onClose: () => void...
eren23/non_linear_ai_chat
frontend/src/components/controls/SettingsPanel.tsx
tsx
37,901
9af55d4c9f4bf56b965a64e7742180ddbecef740c70dee76f584f799413ab2b9
/** * Settings Panel - User preferences and configuration. */ import React, { useState, useEffect, useCallback, useMemo } from 'react'; import { createPortal } from 'react-dom'; import { Settings, X, Save, RotateCcw, Wrench, ChevronDown, GitBranch, Sparkles, Palette, Cog, ScrollText } from 'lucide-react'; import { u...
eren23/non_linear_ai_chat
frontend/src/components/controls/SearchResultItem.tsx
tsx
5,847
9201dbd36a6d6240bf6517f6eaf764afbd10613c32b721139ffc33c35413df31
/** * SearchResultItem - Renders a single global search result with type-specific styling. */ import React from 'react'; import { Brain, FileText, GitBranch, File, Globe, Link2, MessageSquare, ExternalLink, Calendar, ChevronDown, ChevronUp, } from 'lucide-react'; import type { GlobalSearchResul...
eren23/non_linear_ai_chat
frontend/src/components/controls/FlowManager.tsx
tsx
49,831
8600a77ab947acced808861493d9247aae93b6bb339aaa9415fe0d4a50361c67
/** * Flow Manager - Save/Load flows UI */ import React, { useState, useCallback, useEffect, useRef } from 'react'; import { createPortal } from 'react-dom'; import { Save, FolderOpen, Trash2, X, Plus, Download, Edit2, Check, Move, Folder, Share2, Copy, CheckSquare, Square, Clipboard, LogOut } from 'lucide-react'; i...
eren23/non_linear_ai_chat
frontend/src/components/controls/FlowTreeView.tsx
tsx
11,979
89dc51d8d37175a07eeeedf99552d9ad39e69c649da06e28d352cdb87c9de62d
/** * Flow Tree View - Hierarchical display of flows and groups. */ import React, { useState, useCallback, useEffect, useRef } from 'react'; import { ChevronRight, ChevronDown, Folder, FolderOpen, FileText, MoreVertical, Trash2, Edit2, Move, Plus, LogOut } from 'lucide-react'; import { HierarchyItem, FlowListItem, d...
eren23/non_linear_ai_chat
frontend/src/components/controls/WebOpsPanel.tsx
tsx
13,082
beec03af933e4b76356683b163fd0fd1e01b8ec1be801521f6a2f504e711bc1e
/** * WebOpsPanel - Panel for web search and scraping operations. * * Features: * - Web search with provider selection * - URL scraping with strategy selection * - Results display with expansion */ import { memo, useState, useCallback } from 'react'; import { Search, Globe, Loader2, AlertCircle, X, Settings2 } ...
eren23/non_linear_ai_chat
frontend/src/components/controls/GlobalSearch.tsx
tsx
6,781
399d7cb55b977b5f4a57a544c90616a24e83681810b0d8c34a0492a03a8018cf
/** * GlobalSearch - Search mode UI for the CommandPalette. * * Displays search results grouped by source type with filter tabs. * Handles navigation to the correct destination when a result is clicked. */ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { Search } from 'lucide-rea...
eren23/non_linear_ai_chat
frontend/src/components/controls/ToastNotifications.tsx
tsx
4,150
60ca5518b4fdeda970e248d4dd17bf87f2d07cd051fb822329a12eb9be57d572
/** * Toast Notification System - Shows immediate feedback on screen */ import React, { useState, useEffect, useCallback } from 'react'; import { X, AlertCircle, AlertTriangle, Info, CheckCircle } from 'lucide-react'; import styles from './ToastNotifications.module.css'; export type ToastType = 'error' | 'warning' ...
eren23/non_linear_ai_chat
frontend/src/components/controls/NodeNavigatorModal.tsx
tsx
6,178
481aacd33db3553d45caed83cbb53d64643e7d985a3a71999d628f3121f468a6
import React, { useMemo, useState, useCallback } from 'react' import styles from './NodeNavigatorModal.module.css' import type { GraphNode } from '@/types/graph' import { useTranslation } from '@/i18n/useTranslation' export function NodeNavigatorModal(props: { isOpen: boolean nodes: GraphNode[] selectedNodeIds: ...
eren23/non_linear_ai_chat
frontend/src/components/controls/BranchComparisonView.tsx
tsx
10,991
da0e9617d5ee7890dcfb6b02f0653614fafb110304cb91b21268f4439e6087aa
/** * BranchComparisonView - Modal for comparing parallel generation branches. * Shows all branches side-by-side with streaming output and selection controls. * Supports synthesis mode with a separate synthesis output section. */ import React, { useState, useEffect } from 'react'; import ReactMarkdown from 'react-...
eren23/non_linear_ai_chat
frontend/src/components/controls/FlowFilesPanel.tsx
tsx
37,945
3ad5d1f0495e3f3c1dc660be73b981eee553a2127a2a4e7257ea61d42fbfb576
import React, { useState, useCallback, useEffect, useRef } from 'react'; import { createPortal } from 'react-dom'; import { Paperclip, X, Link as LinkIcon, Trash2, UploadCloud, BookOpen, Plus, Loader2, Check, AlertCircle } from 'lucide-react'; import { shallow } from 'zustand/shallow'; import useGraphStore from '@/stor...
eren23/non_linear_ai_chat
frontend/src/components/controls/VoiceRecordButton.tsx
tsx
2,992
80c7028e8c62852434d4794a1fe47d7682ebcd442673435adfb8a1e0a70915b0
/** * Voice Record Button - Speech-to-text input for ChatNode. * * States: * - idle: Mic icon (gray) * - recording: Square icon (red pulse) + duration * - transcribing: Loader spinning + "Transcribing..." * - error: Brief red flash → idle */ import React, { useCallback } from 'react'; import { Mic, Square, Loa...
eren23/non_linear_ai_chat
frontend/src/components/controls/WebResultCard.tsx
tsx
5,244
6eb69242bbe6832b1fab2cc002f488ad5f8c45c5bd0a07c0137eba33baf4c574
/** * WebResultCard - Displays a single web search/scrape result. */ import { memo, useState } from 'react'; import { ExternalLink, FileText, ChevronDown, ChevronUp, Copy, Check } from 'lucide-react'; import type { SearchResult, ScrapeResult } from '@/lib/webOpsApi'; import { useTranslation } from '@/i18n/useTransla...
eren23/non_linear_ai_chat
frontend/src/components/controls/VideoModelSelector.tsx
tsx
11,358
34000ed7329fb8536d176eb791a192b5ed0482ca0f860e4ea8f78c5b4d6d7907
/** * VideoModelSelector - Dropdown for selecting video generation models. * * Features: * - Grouped dropdown with "Text-to-Video" and "Image-to-Video" sections * - Shows cost estimate per model * - Disables I2V models when no parent image is connected * - Shows quality/speed badges */ import React, { useState...
eren23/non_linear_ai_chat
frontend/src/components/controls/ModelPickerDropdown.tsx
tsx
4,927
28ab200407562f2fbcb6a01cf9e986ee09156a1fe9d89b6581c0273044acbe0b
/** * ModelPickerDropdown - Compact trigger button + floating ModelSelector panel. * * Wraps the existing ModelSelector in a portal-based dropdown so it can be * used in space-constrained locations (toolbar, sidebar card). */ import React, { useState, useRef, useCallback, useEffect } from 'react'; import type { R...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/types.ts
ts
218
78eb993dfefd5f75a5760fe58849e451296f8cd3816c200504fcb89f846f02c7
/** * Shared types for PresetStudio components. * Extracted to break circular dependency between PresetStudio and PresetList. */ export interface PresetFolder { id: string; name: string; sortOrder: number; }
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/PresetList.tsx
tsx
9,769
0b28623e6b13a3d0d297904ad925b18c48505ff0243d9d5ccb148675816a0432
/** * PresetList - Left panel of PresetStudio. * * Features: * - Search bar * - Folder tree with collapsible sections * - Preset cards with badges * - Quick enable/disable toggle * - Drag and drop reordering */ import React, { useState, useMemo } from 'react'; import { Search, Plus, FolderOpen, Folder...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/PresetStudio.tsx
tsx
14,914
e5db34acda41e137c26667210f35c2da221888fcab58766f597f8edbee33794d
/** * PresetStudio - Full-screen modal for managing image generation presets. * * Two-panel layout: * - Left: Preset list with folders, search, drag-and-drop * - Right: Preset editor with visual pickers * * Uses React Portal to render outside sidebar DOM hierarchy. */ import React, { useState, useEffect, useCa...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/PresetEditor.tsx
tsx
16,241
3752ec7683741382a625d67c8042ef8428ba9a517a1804e894901ae25a258f3d
/** * PresetEditor - Right panel of PresetStudio. * * Features: * - Name and category inputs * - Visual pickers for camera/lighting * - Collapsible parameter sections * - Live preview */ import React, { useMemo } from 'react'; import { Palette, Copy, ChevronDown, ChevronRight } from 'lucide-react'; import { Im...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/__tests__/PresetEditor.test.tsx
tsx
18,171
0bc3521e710bb4c9ea358fb9d3f9eac4224e3825b2d4cc47da01b18a9d1ba75b
/** * Tests for PresetEditor component * * PresetEditor is the right panel of PresetStudio. * It provides name/category inputs, visual pickers for camera/lighting, * collapsible parameter sections, and a live preview. * * Tests cover: * - Export verification * - Props interface validation * - Component struct...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/__tests__/PresetList.test.tsx
tsx
12,804
d2623128904f30836725f7b79dc7e95404a1f425bfdb0dc34199d9ac07ca65d7
/** * Tests for PresetList component * * PresetList is the left panel of PresetStudio. * It provides search, folder tree, preset cards with badges, * quick enable/disable toggle, and drag-and-drop reordering. * * Tests cover: * - Export verification * - Props interface validation * - Component structure * - ...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/__tests__/PresetStudio.test.tsx
tsx
7,656
2f42a54d8f89eeebe9515ecc10a2b7ac32e749c2e04025d73817dff631b26587
/** * Tests for PresetStudio component * * PresetStudio is a full-screen modal for managing image generation presets. * It has a two-panel layout: left for preset list, right for preset editor. * Uses React Portal to render outside sidebar DOM hierarchy. * * Tests cover: * - Export verification * - Props inter...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/TimeOfDayPicker.tsx
tsx
9,310
3dc8c5cb1e99b2377c46ccfc23036390afdd37724a8ca141dc738b1fbcaed022
/** * TimeOfDayPicker - Gradient bar for time of day selection. * * Shows sky colors from dawn to night with animated sun/moon, * stars for night, and ground silhouette. */ import React, { useState, useMemo } from 'react'; import { X } from 'lucide-react'; import styles from './VisualPickers.module.css'; interfa...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/LightingDirectionPicker.tsx
tsx
9,715
fc3fd8ceb3fc2a048c8d0ed1056b9599956300b10603d594a6ba6bc427e5959d
/** * LightingDirectionPicker - Hemisphere sun position selector. * * Click to place the light source position. * Features animated sun, light rays, and dynamic shadow/highlight on subject. */ import React, { useState } from 'react'; import { X } from 'lucide-react'; import styles from './VisualPickers.module.css...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/CompositionPicker.tsx
tsx
7,551
9c004230844fc7a39b6694bae75806c70694854be1b6d1948be20d4145ad7f75
/** * CompositionPicker - Visual selector for composition styles. * * Features mini frame previews showing grid overlays. * Options: Rule of Thirds, Golden Ratio, Centered, Dynamic Diagonal */ import React, { useState } from 'react'; import { X } from 'lucide-react'; import styles from './VisualPickers.module.css...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/CameraDistancePicker.tsx
tsx
4,718
64afdd9a0a1339d9b518185ade17d53e43d2019e3bf7acd726577cf183c4fce1
/** * CameraDistancePicker - Slider with silhouette showing framing. * * Options: Close-up, Medium shot, Wide shot */ import React from 'react'; import { X } from 'lucide-react'; import styles from './VisualPickers.module.css'; interface CameraDistancePickerProps { value: string; onChange: (value: string) => ...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/CameraAnglePicker.tsx
tsx
8,171
5101954c3bd530326c0c691a1b77afa29fafcd44f452e66fa2d6606ca8c7fbaf
/** * CameraAnglePicker - Visual arc selector for camera angles. * * Features a camera icon that moves along the arc, subject figure, * and interactive angle points with hover states. */ import React, { useState } from 'react'; import { X } from 'lucide-react'; import styles from './VisualPickers.module.css'; in...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/DepthOfFieldPicker.tsx
tsx
7,956
6dbb11439b0c987d913efbb4e05ec8308c0fc67eb88a5d708906b88a0f966313
/** * DepthOfFieldPicker - Visual selector for depth of field / aperture. * * Shows blur/bokeh visualization with 4 options: * - Deep Focus (f/11+): Everything sharp * - Medium (f/5.6): Balanced blur * - Shallow (f/2.8): Subject sharp, background blurred * - Very Shallow (f/1.4): Extreme bokeh */ import React,...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/WeatherPicker.tsx
tsx
6,568
7e16a3157d981dda655db3f1920825bc7eee23560e603fb516a8afde878b4749
/** * WeatherPicker - Visual selector for weather/atmosphere conditions. * * Features scene preview boxes with visual atmosphere effects. * Options: Clear (sun rays), Foggy (mist), Rainy (rain drops), Stormy (lightning) */ import React, { useState } from 'react'; import { X } from 'lucide-react'; import styles fr...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/index.ts
ts
633
0df74698417e8625aa79918f91834003274f8137431bd98972f61408e8ecae66
/** * Visual Pickers - Interactive controls for camera/lighting parameters */ export { default as AspectRatioPicker } from './AspectRatioPicker'; export { default as CameraAnglePicker } from './CameraAnglePicker'; export { default as CameraDistancePicker } from './CameraDistancePicker'; export { default as Compositi...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/AspectRatioPicker.tsx
tsx
4,773
f6705847645d56df572142117d4bdc9d5735a33e236d5ef668cd7204b23e4fd8
/** * AspectRatioPicker - Visual selector for image aspect ratio. * * Features mini frame previews showing the aspect ratio shape with dimensions. * Options: 16:9 (Landscape), 4:3 (Standard), 1:1 (Square), 9:16 (Portrait/Vertical) */ import React, { useState } from 'react'; import { X } from 'lucide-react'; impor...
eren23/non_linear_ai_chat
frontend/src/components/controls/PresetStudio/VisualPickers/__tests__/VisualPickers.test.tsx
tsx
23,217
0870f845c3a008da04d567f07a36d2fd778526091efa7b4d379da1eeadc4b689
/** * Tests for Visual Pickers components * * Visual Pickers provide interactive controls for camera/lighting parameters: * - CameraAnglePicker: Eye-level, Low, High angle selection * - CameraDistancePicker: Close-up, Medium, Full shot selection * - LightingDirectionPicker: 9-position light source selection * - ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/NodeNavigatorModal.test.tsx
tsx
10,015
6b0b65b00b137ea5d1f846c705e7d66c3efd6d8d453843e52edd3d5365c0d0e8
// @vitest-environment happy-dom /** * Tests for NodeNavigatorModal component. * * NodeNavigatorModal displays a searchable list of graph nodes with two tabs: * "Search" (default) and "Stale" (showing stale chat nodes). It supports * text-based filtering and clicking a node triggers onFocusNode. * * Key behavior...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/PromptDialog.test.tsx
tsx
10,309
0b8fa47d20e27e1bcbf5e218d972bfd7ff6cf7b619bc8119f1d2d26cf1c99f63
/** * Tests for PromptDialog component * * PromptDialog is a modal replacement for prompt() calls. * It supports text input and textarea modes with validation. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation * - Component structure */ im...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ParallelGenerationModal.test.tsx
tsx
12,800
4a379adae55554dbbb7880de0cfad9c895f7368006c83f117ec34dbd14c0c7b2
// @vitest-environment happy-dom /** * Tests for ParallelGenerationModal component. * * ParallelGenerationModal configures parallel generation settings: * - Mode selection (branches, multi-model, synthesis) * - Branch count for branches mode * - Model selection for multi-model/synthesis * - Synthesis model picke...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ToastNotifications.test.tsx
tsx
11,789
dc4b41117bac661932b018d7cae41966212332ee4aa0022b727a01e0f8de1ddf
/** * Tests for ToastNotifications component and ToastManager * * Tests the toast notification system including: * - ToastNotifications component exports and props * - ToastManager singleton functionality * - useToastNotifications hook behavior * * Note: Due to jsdom ESM compatibility issues, component renderin...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ConfirmDialog.test.tsx
tsx
7,631
84246fea0cdab88f39e0acae6c0b5f91e012bceaee8011dfe7f6fb4709ce8062
/** * Tests for ConfirmDialog component * * ConfirmDialog is a modal replacement for confirm() calls. * It supports different types (danger, warning, info) and customizable text. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation * - Componen...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/CustomInstructionsEditor.test.tsx
tsx
7,290
b3110fcb0cf7b723ff98d3fe679f2641ad3dfd03cfc2a486ae93ae4085a03bf7
/** * Tests for CustomInstructionsEditor component * * Covers: * - Export verification * - Template data integrity * - Template insertion logic (replace vs append) * - Character counter color thresholds * - Clear button behavior * - Status badge states */ import { describe, it, expect, vi } from 'vitest'; im...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/SettingsPanel.test.tsx
tsx
18,506
33452d35fbc920d4df103aa50fa05c87025b54ef0e2722e8108088bbe5ad277b
/** * Tests for SettingsPanel component * * SettingsPanel provides user preferences and configuration UI: * - Generation settings (model, temperature, RAG) * - Appearance settings (language, timezone, font size) * - Graph settings (edge type) * - Advanced settings (memory mode, agent tools) * * Tests cover: *...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/FlowManager.runtime.test.tsx
tsx
4,267
fb7c7a13ddeb439fbf38b81fd62b4e8f16c12845307ba672fe5f63adde9fe22c
// @vitest-environment happy-dom import React from 'react'; import { describe, it, expect, vi, beforeEach } from 'vitest'; import { fireEvent, render, screen, waitFor } from '@testing-library/react'; const mockListFlowsWithHierarchy = vi.hoisted(() => vi.fn()); const mockShowError = vi.hoisted(() => vi.fn()); const mo...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ModelPickerDropdown.test.tsx
tsx
7,962
22eae6b7e992219fbf32c0b0077592954baf1d1a6603f59e6ef4a6b3792b653b
/** * Tests for ModelPickerDropdown component * * ModelPickerDropdown provides a compact trigger button + floating ModelSelector panel * for space-constrained locations (toolbar, sidebar card). * * Tests cover: * - Export verification * - Props interface validation * - Variant and placement values * - Display...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/FlowFilesPanel.test.tsx
tsx
16,969
8510d012b8c36eed011062271a3d3f2facfb2acfa163cd90f2f308f7867c352a
/** * Tests for FlowFilesPanel component * * FlowFilesPanel manages file uploads and attachments within a flow. * Supports drag-and-drop, file uploads with progress tracking, * attaching/detaching files to nodes, and adding from library. * * Tests cover: * - Export verification * - Props interface validation ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/EmptyStateInput.test.tsx
tsx
11,299
a733870223c6cf9f626e645c4a5c145518b0f35806218cc0810ed52f043cc566
/** * Tests for EmptyStateInput component * * EmptyStateInput is a chat-like centered input for an empty canvas. * Shows when no nodes exist. User types a prompt, selects a model, * and hits Enter to create the first node with a smooth transition. * * Tests cover: * - Export verification (named + default) * - ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/LibraryPanel.test.tsx
tsx
21,866
fe19873cec8377c8358cd71765ea277888275e53801ad96dbb6c023b2d17bec7
/** * Tests for LibraryPanel component * * LibraryPanel provides UI for managing the personal document library: * - File upload (drag and drop, click to select) * - Document listing with pagination * - Search and filtering by tags/concepts * - Sorting options * - Delete operations * - Processing status trackin...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/BottomToolbar.test.tsx
tsx
6,605
2441a1bd351ac6568d0382e20df2e7b2f5c8bc4dc589f6db3ab00f28478cc61a
/** * Tests for BottomToolbar component * * BottomToolbar is the floating toolbar at bottom center containing: * - Node creation button * - Pan/Select mode toggles * - Snap to grid toggle * - Teleport mode toggle * - Undo/Redo buttons * - Delete button * * Note: Due to jsdom ESM compatibility issues, tests f...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/WebOpsPanel.test.tsx
tsx
6,566
46e11d9d30ff9c18db64b852fe0c65da1bc30f6fb86e616b202ad0efb42e9660
/** * Tests for WebOpsPanel component * * WebOpsPanel provides web search and URL scraping functionality. * It features tab switching between search and scrape modes, * provider/strategy settings, results display, and error handling. * * Tests cover: * - Export verification (named export, memo-wrapped) * - Pro...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/BugReportPanel.test.tsx
tsx
15,644
a64e79da32d3d23a3f60f0dcf6f93885c2521f97dedd394ac7b2a990c2e02d5f
/** * Tests for BugReportPanel component * * BugReportPanel allows users to report bugs with rich context: * title, description, flow IDs, node IDs, steps to reproduce, * expected vs actual behavior. * * Tests cover: * - Export verification * - Props interface validation * - Controlled vs uncontrolled mode *...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ModelSelector.test.tsx
tsx
22,421
1b1849cfdf23355121870019d338ce01b887368e7ef65d9873563f8124904872
/** * Tests for ModelSelector component * * ModelSelector provides UI for selecting LLM models with: * - Quick picks (free, fast, balanced, best) * - Provider family grouping * - Search filtering * - Model status indicators * * Tests cover: * - Export verification * - Props interface validation * - Model gr...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/GlobalSearch.test.tsx
tsx
11,230
b96dd7c69ba7fc75a916a048c0123b02117bfd6f42e13e2f31305e07df6b8d06
/** * Tests for GlobalSearch component * * GlobalSearch is the search mode UI for the CommandPalette. * It displays results grouped by source type with filter tabs, * handles navigation to results, and manages keyboard interaction. * * Tests cover: * - Export verification * - Props interface validation * - Co...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/OnboardingModal.test.tsx
tsx
7,250
d4a1789f100ad6edc78bb02a59426070d8828d9fd501d5db8bda3fb4dfd47914
// @vitest-environment happy-dom /** * Tests for OnboardingModal component. * * OnboardingModal displays a welcome dialog with onboarding steps, * a "Take Tour" button, a "Create Demo" button, and a "Don't show again" * dismiss option that persists via localStorage. * * Key behaviors tested: * - Returns null wh...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/NotificationPanel.test.tsx
tsx
15,379
2c60030cfa60006053e62b38922a37fff42608bc010536b1d4dd13f09621d203
/** * Tests for NotificationPanel component * * NotificationPanel displays and manages user notifications. * Supports real-time socket notifications, polling with backoff, * mark as read, mark all as read, and delete. * * Tests cover: * - Export verification * - Props interface validation * - Controlled vs un...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/ImageTemplateForm.test.tsx
tsx
17,601
bbf62fa9f0a2cae69e5fce3334c7fd5b2ba7cd36e3c0d414c423e813d6f22f54
/** * Tests for ImageTemplateForm component * * ImageTemplateForm provides a structured form for editing * image generation template parameters (scene, environment, * subject, action, lighting, camera, style, resolution, negative prompt). * * Tests cover: * - Export verification * - Props interface validation ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/SlashCommandMenu.test.tsx
tsx
8,153
f7c45f230b11d96cfc22d7d1b2c1c9daac0f9de32e94667fcfa86bed20092c31
// @vitest-environment happy-dom /** * Tests for SlashCommandMenu component. * * SlashCommandMenu shows a popup list of slash commands that appears * when the user types '/' in the chat input. Tests cover: * - Rendering when open/closed * - Command display * - Selection highlighting * - Click and hover handlers...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/FloatingInputBar.test.tsx
tsx
26,578
47b1b765389465154517df14e58825e0d57b0f3532c51bda580e26f22b1d200e
/** * Tests for FloatingInputBar component * * FloatingInputBar is a floating bottom input bar for the new layout. * It renders when a single chat or media generation node is selected. * Contains: textarea, attach file, voice, expand editor, regenerate, send/generate. * * Tests cover: * - Export verification (n...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/LibraryPanel.runtime.test.tsx
tsx
8,264
6a579545f1b0db53dd632072ab4ada3399dfdca9ef8b39a59519d18becfc450f
// @vitest-environment happy-dom import React from 'react'; import { act, fireEvent, render, screen } from '@testing-library/react'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import LibraryPanel from '../LibraryPanel'; const mockUploadToLibrary = vi.fn(); const mockUploadUrlToLibrary = ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/SearchResultItem.test.tsx
tsx
6,905
8726ea7cfbaf5bd3f5f1927b88bccc1a6dda35d40fe46a1dd6265a7b76b44d4c
// @vitest-environment happy-dom /** * Tests for SearchResultItem component. * * SearchResultItem renders a single global search result with type-specific * icon, badge, title, snippet, score bar, and metadata row (flow name, * importance stars, tags, domain, connection info). */ import { describe, it, expect, v...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/CommandPalette.test.tsx
tsx
17,330
326f54d136a34860eca30b686d3f214b839684657853e126c4c4eedb99d85dfa
/** * Tests for CommandPalette component * * CommandPalette provides a Cmd+K interface for quick command access: * - Search filtering * - Keyboard navigation (arrow keys, enter, escape) * - Command grouping by category * - Command execution * * Tests cover: * - Export verification * - Props interface validat...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/FlowTreeView.test.tsx
tsx
14,186
73a7382f98ad717b32cb6ca90154a7dfe17639ff96b589c8fac3a110134ac40f
/** * Tests for FlowTreeView component * * FlowTreeView displays a hierarchical tree of flows and groups. * It supports expand/collapse, context menus, drag handles, * multi-selection checkboxes, and nested group rendering. * * Tests cover: * - Export verification * - Props interface validation * - Component ...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/VoiceRecordButton.test.tsx
tsx
8,130
dca7229cd1bf455c6be03e1b599779cf5e9de1e25efcc309e807d34ced980340
// @vitest-environment happy-dom /** * Tests for VoiceRecordButton component. * * VoiceRecordButton provides a button for speech-to-text recording. It cycles * through states: idle -> requesting -> recording -> transcribing, or error. * * Key behaviors tested: * - Renders mic icon in idle state * - Shows correc...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/FlowManager.test.tsx
tsx
11,806
f3a05495e1b6349e536c04039c03184553098b45980a981154eaaf58e2e6005f
/** * Tests for FlowManager component * * FlowManager provides UI for managing flows - save, load, delete, share, * bulk operations, groups, and more. * * Tests cover: * - Export verification * - Props interface validation * - Component structure * - Flow formatting for export */ import { describe, it, expe...
eren23/non_linear_ai_chat
frontend/src/components/controls/__tests__/_disabled/ConfirmDialog.test.tsx
tsx
6,370
5f828e2473652827e1efcd79070f2a90de4675b2e8d45d258d6a9327618edec2
/** * @vitest-environment jsdom */ /** * Tests for the ConfirmDialog component. * * The ConfirmDialog is used throughout the app to confirm destructive actions. * Tests verify: * - Rendering when open/closed * - Title, message, and button text display * - Callback invocation on confirm/cancel * - Keyboard ac...
eren23/non_linear_ai_chat
frontend/src/components/common/SpiderChatLogo.tsx
tsx
16,171
4538b3bbf3545faa4172529776692f63f7d0857fe9f784deba0fd1317e13734f
import { useRef, useCallback, useEffect } from 'react'; import styles from './SpiderChatLogo.module.css'; type LogoSize = 'xs' | 'sm' | 'md' | 'lg'; interface SpiderChatLogoProps { size?: LogoSize | number; animated?: boolean; showText?: boolean; className?: string; } const SIZE_MAP: Record<LogoSize, number>...
eren23/non_linear_ai_chat
frontend/src/components/drawio/DrawIOGridItem.tsx
tsx
5,508
c7a7d58896d64eb49cd49bf68753d8fbee283a2fb1b393f866ba4c5157b8b805
/** * DrawIOGridItem - Thumbnail card for a DrawIO diagram sub-node in the * InformationNode grid. * * Shows an SVG/PNG preview, title, and action buttons (edit, toggle, delete). * Follows the same layout/API as SketchGridItem. */ import React, { memo, useCallback } from 'react'; import { Share2, Edit2, Trash2, ...
eren23/non_linear_ai_chat
frontend/src/components/drawio/DrawIOEditorModal.tsx
tsx
13,948
a8d008f2564fe32b6998ddc1bc6a1b57c2b9d4d4c4e2429c28a49f55c39fa6ca
/** * DrawIOEditorModal - Fullscreen modal embedding the draw.io diagram editor. * * Uses an iframe to embed.diagrams.net and communicates via postMessage. * On save: captures XML + exports SVG/PNG, uploads assets, then calls * the onSave callback with DrawIOSubNodeData updates. * * Follows the same portal + hea...
eren23/non_linear_ai_chat
frontend/src/components/collab/InviteCollaboratorModal.tsx
tsx
9,074
01b5a2e49d2830f6e252a239c543c8625555e523cbb834ec0c1c60bf66582a4c
/** * Invite Collaborator Modal */ import React, { useState, useEffect } from 'react'; import { X, Mail, UserPlus, Trash2, Crown, Edit3 } from 'lucide-react'; import { API_BASE } from '@/lib/api'; import { apiFetch } from '@/lib/csrfApi'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './...
eren23/non_linear_ai_chat
frontend/src/components/collab/CursorOverlay.tsx
tsx
3,710
8c7250004ee3e964263341a76384a204856501f6dc1ff00ce2192e03864e2658
/** * Cursor Overlay - Shows other users' cursors on the ReactFlow canvas. * Renders in flow-space coordinates so cursors appear correctly * regardless of each user's zoom/pan state. */ import React, { useEffect, useState, useRef } from 'react'; import { useViewport } from '@xyflow/react'; import { useCollaboratio...
eren23/non_linear_ai_chat
frontend/src/components/collab/NodeLockBadge.tsx
tsx
1,980
9290cc12bbf053284d8d541e0cc79cdfaba446d9bd3e41063161a73681d78f98
/** * Node Lock Badge - Shows who is editing a node */ import React from 'react'; import { Lock } from 'lucide-react'; import { useCollaborationStore } from '@/store/useCollaborationStore'; import { useAuthStore } from '@/store/useAuthStore'; import styles from './NodeLockBadge.module.css'; /** Validate avatar URL ...
eren23/non_linear_ai_chat
frontend/src/components/collab/PendingInvites.tsx
tsx
6,059
753389685a02e6bad74496fcbffdbf9ea46e8810b25e439230d613a311b8c304
/** * Component to display and manage pending collaboration invites */ import React, { useEffect, useState } from 'react'; import { Users, Check, X, Clock } from 'lucide-react'; import { useAuthStore } from '@/store/useAuthStore'; import { apiFetch } from '@/lib/csrfApi'; import { useTranslation } from '@/i18n/useTr...
eren23/non_linear_ai_chat
frontend/src/components/collab/CollaboratorList.tsx
tsx
10,712
e88ed7dd074497b9ea0319c27e7490fcb57982bf2b3788014ef8c07db086341e
/** * Collaborator List - Shows active users and invite button */ import React, { useState, useCallback } from 'react'; import { Users, UserPlus, Crown, Edit3, Bot, Unplug, X } from 'lucide-react'; import { useCollaborationStore } from '@/store/useCollaborationStore'; import { useAuthStore } from '@/store/useAuthSto...
eren23/non_linear_ai_chat
frontend/src/components/collab/__tests__/NodeLockBadge.test.tsx
tsx
2,165
a823dc5c5d658c20d62129027231af0e32d3c6c40ffae61e97c4f4e4b40d7a06
/** * Tests for NodeLockBadge component * * NodeLockBadge shows who is currently editing a node in collaborative mode. * It displays the collaborator's avatar and a lock icon. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation * - Component s...
eren23/non_linear_ai_chat
frontend/src/components/collab/__tests__/CollaboratorList.agent.test.tsx
tsx
3,430
a1aed8f3566cf7998623deda40c8e0667e7507e580b57d8d3965cb2b6ef4dd04
// @vitest-environment happy-dom /** * Tests for AI Agent button in CollaboratorList — admin-only gating. */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { render, screen, fireEvent } from '@testing-library/react'; // =========================================================================...
eren23/non_linear_ai_chat
frontend/src/components/notes/AutocompletePopup.tsx
tsx
4,966
ebb7581e689f6518f035c2d9a5dcb0afef2052b175714ca3d0026af494518c99
/** * Autocomplete Popup - Display autocomplete suggestions for note links, tags, and mentions. * Features type-specific colors: notes (blue), tags (green), mentions (purple) */ import React, { useRef, useEffect } from 'react'; import { FileText, Hash, AtSign, Plus } from 'lucide-react'; import { AutocompleteItem, ...
eren23/non_linear_ai_chat
frontend/src/components/notes/MarkdownToolbar.tsx
tsx
3,174
4eca7e5c2f02d14ab8067243ac58520dee5d01cff2029bb185dd6ad9d6f9b686
/** * MarkdownToolbar - Presentational component for markdown formatting actions. * Used in NoteEditor and RichTextEditor. */ import { Bold, Italic, Code, Heading1, Heading2, List, ListOrdered, Quote, Link as LinkIcon, } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; ...
eren23/non_linear_ai_chat
frontend/src/components/notes/QuickCaptureModal.tsx
tsx
18,737
c57b95c5f23cee48a565e7507cea4c7579b911c01f49f9305bc5f5b448c23cb2
/** * Quick Capture Modal - A lightweight modal for rapid note-taking with autocomplete support. */ import React, { useState, useRef, useEffect, useCallback } from 'react'; import { X, Sparkles, FileText, Users, Search, Loader2 } from 'lucide-react'; import { useLinkAutocomplete, AutocompleteItem } from '../../hooks...
eren23/non_linear_ai_chat
frontend/src/components/notes/NotesModal.tsx
tsx
27,248
b10ef76a788dbc50a85bfd52e68f3d0336219045eaa919df79ffed4f22b14bed
/** * Notes Modal - Main container for memory/notes interface. */ import { useState, useEffect, useRef, useCallback, lazy, Suspense } from 'react'; import { X, Plus, Search, Calendar, Sparkles, Brain, FileText, Loader2, Network, GitBranch, Bell, Clock, Trash2, Layers } from 'lucide-react'; import { useNotesStore } f...
eren23/non_linear_ai_chat
frontend/src/components/notes/noteChatItems.ts
ts
5,322
9fd8b3bc39ee8b697fd47009b5c3687bf83d15810c07cd31212c5da577283685
/** * Pure helpers for NoteForceGraph's Quick Chat flow. Extracted so they can be * unit-tested without mounting the full D3 force graph. */ import type { GraphChatItem } from '../visualization/GraphQuickChat'; import type { NoteGraphEdge } from '../../lib/notesApi'; export interface NoteForChatItem { _id: strin...
eren23/non_linear_ai_chat
frontend/src/components/notes/NoteSemanticSearch.tsx
tsx
9,732
64833433df420a329d873948a029d59ba8508f1e558f35ccf5abce266f75ae46
/** * Note Semantic Search - Vector-based semantic search for notes. * Uses embeddings to find semantically similar notes. */ import { useState } from 'react'; import { Search, Sparkles, Clock, Copy, ChevronDown, ChevronUp, AlertTriangle, Pin, Tag } from 'lucide-react'; import styles from './NoteSemanticSearch.modu...