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/labs/HtmlCanvasLab/__tests__/useLabsStore.test.ts
ts
5,074
612a4e557b91b853c6c0e451f839af4d205a5e104ccda0a33ef0cce24a096230
/** * Tests for the HTML-in-Canvas Labs store. * * The store tracks: * - masterEnabled: global on/off for the parallel lab renderer * - activeDirection: which of the three prototype renderers is active * ('lod' | 'shader' | 'cinematic' | null) * - URL param override: `?lab=html-canvas` force-enables fo...
eren23/non_linear_ai_chat
frontend/src/components/labs/HtmlCanvasLab/__tests__/wicgApi.test.ts
ts
4,512
4a793ecb93b9b229c430dc1c30500ce6eadc4c675b0f69b16975296c89c90613
/** * Tests for the WICG HTML-in-Canvas API wrapper. * * Each wrapper guards the real API behind a runtime method probe so our * production code can work uniformly across browsers. These tests cover * both branches (supported / unsupported) for each wrapper. */ import { describe, it, expect, vi } from 'vitest'; ...
eren23/non_linear_ai_chat
frontend/src/components/labs/HtmlCanvasLab/scene/LabCanvasRoot.tsx
tsx
5,709
281bdf7b5de3702bcb768a4c159a2692a0e47c6948f19507dcbfa81e93496326
/** * Milestone M1: "Hello world" for the WICG HTML-in-Canvas API. * * Mounts a real `<canvas layoutsubtree>` with ONE hardcoded DOM child and * draws that child into the canvas during the browser's `paint` event. * No pan/zoom, no store subscriptions, no real Spider Chat nodes β€” this is * the smallest possible p...
eren23/non_linear_ai_chat
frontend/src/components/labs/HtmlCanvasLab/scene/wicgApi.ts
ts
2,476
887062cdb768b956abf1a890c51d5119d76db1175515bc3d92c9cf82f41b9003
/** * Thin wrapper around the experimental WICG HTML-in-Canvas primitives. * * Spec: https://github.com/WICG/html-in-canvas * Flag: chrome://flags/#canvas-draw-element * * Every call is probed at runtime and returns `false` (or `null`) if the * underlying method is missing. That keeps the rest of the lab code sa...
eren23/non_linear_ai_chat
frontend/src/components/labs/HtmlCanvasLab/store/useLabsStore.ts
ts
5,695
be68760612f7dbe9232a1e7ee65daa81c055402140feb9e9cf6f4ff60deb4f15
/** * HTML-in-Canvas Labs store. * * IMPORTANT: this store is intentionally located INSIDE the labs directory * (not under `@/store/`). Keeping it here prevents accidental imports from * the main app β€” if nothing under `frontend/src/` outside this directory * references the labs module, Vite tree-shakes the entir...
eren23/non_linear_ai_chat
frontend/src/components/ui/FeatureHint.tsx
tsx
2,203
8cd1f2b69175f83f030c1452b864f964b7a64d3c10b9a835600197f64c915a66
/** * FeatureHint - Shows a pulsing indicator and tooltip for undiscovered features. * * Wraps any component (usually a button) and displays: * - A subtle pulsing dot when the feature hasn't been discovered * - A tooltip explaining the feature on hover * - "Got it" button to dismiss permanently */ import React,...
eren23/non_linear_ai_chat
frontend/src/components/ui/VideoPlayer.tsx
tsx
13,801
19c71d836cc64b8fdadc555cf4f56764aacb9773715a5f296cf9cc97f91e0200
// frontend/src/components/ui/VideoPlayer.tsx import React, { useRef, useState, useEffect } from 'react'; import { Play, Pause, Volume2, VolumeX, Maximize, Download, RotateCcw } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import { formatDateTime } from '@/i18n/formatters'; interface V...
eren23/non_linear_ai_chat
frontend/src/components/ui/FeatureDisabled.tsx
tsx
1,488
fe7808985ec0e1a9b66b5c768a56f6793db7350e7ff605230bbae0c11af07fee
/** * FeatureDisabled - Placeholder component shown when a feature is disabled. * * Use this to display a subtle, informative message where a disabled * feature's UI would normally appear. */ import React from 'react'; import { AlertCircle } from 'lucide-react'; import styles from './FeatureDisabled.module.css'; ...
eren23/non_linear_ai_chat
frontend/src/components/ui/FeatureGate.tsx
tsx
1,632
245069eb5f6aaa17f6d4d3338cb82dd61ff536836d793efa1b608c553a23145b
/** * FeatureGate - Wrapper component for conditional feature rendering. * * Renders children only when the specified feature is enabled. * Shows a disabled placeholder or custom fallback when disabled. */ import React, { ReactNode } from 'react'; import { useFeature, getFeatureDisplayName, type FeatureStat...
eren23/non_linear_ai_chat
frontend/src/components/ui/__tests__/FeatureDisabled.test.tsx
tsx
6,006
fca197788ffd81aa1cc9bce7c6bc16aa0e4d4dac326fb8c68cb2de6aeb531985
/** * Tests for FeatureDisabled component * * FeatureDisabled shows a placeholder when features are disabled. * It supports both compact (badge) and full (card) display modes. * * Note: Due to jsdom ESM compatibility issues, these tests focus on: * - Export verification * - Props interface validation * - Compo...
eren23/non_linear_ai_chat
frontend/src/components/ui/__tests__/FeatureGate.test.tsx
tsx
9,683
236b726b9cd6f224c4f62eb00ce195cc7654bbf13e04d45d5b2db7c33d1c990b
/** * Tests for FeatureGate component * * FeatureGate conditionally renders children based on feature flags. * When a feature is disabled, it shows a placeholder or custom fallback. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation * - Compo...
eren23/non_linear_ai_chat
frontend/src/components/ui/__tests__/FeatureHint.test.tsx
tsx
10,585
966433368abe426b857a7503de33ffa5d809f5aec12141f687ce102020e4f778
/** * Tests for FeatureHint component * * FeatureHint shows a pulsing indicator and tooltip for undiscovered features. * It wraps any element and displays hints until the user dismisses them. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation ...
eren23/non_linear_ai_chat
frontend/src/components/ui/__tests__/VideoPlayer.test.tsx
tsx
13,310
a0374df8d6090296d29e2d601bba51517a61d118d15fdc31d88a3e02764f71b6
/** * Tests for VideoPlayer component * * VideoPlayer is a custom video player with controls for * play/pause, volume, progress, fullscreen, and download. * * Note: Due to jsdom ESM compatibility issues, tests focus on: * - Export verification * - Props interface validation * - Component structure */ import ...
eren23/non_linear_ai_chat
frontend/src/components/tasks/TaskCard.tsx
tsx
11,019
863d0e35c6d7056f4f705bff26c7db8c52c4662886e9577740242ed1cfad2a99
/** * TaskCard Component * * Displays a single task with completion toggle, due date, source indicator, * and action buttons. Used in the TasksPage list view. */ import { useState } from 'react'; import { Clock, Trash2, Archive, RotateCcw, Check, Bell, Repeat, Edit2 } from 'lucide-react'; import { useTranslation ...
eren23/non_linear_ai_chat
frontend/src/components/tasks/RecurrenceEditor.tsx
tsx
9,378
e787097ad2245d3bfbfbf5f4b7ae81f903b02ba2062074e01dd252d0bd51b28a
/** * RecurrenceEditor - Modal for editing task recurrence patterns. */ import React, { useState, useEffect } from 'react'; import { createPortal } from 'react-dom'; import { X, Repeat, Calendar } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import type { RecurrenceConfig, RecurrenceP...
eren23/non_linear_ai_chat
frontend/src/components/tasks/index.ts
ts
124
840357a1deb25aaa1f0b7fb6920091d574973e412aee43f84b5c5c1018409f42
/** * Tasks components barrel export. */ export { TaskCard } from './TaskCard'; export { TasksPage } from './TasksPage';
eren23/non_linear_ai_chat
frontend/src/components/tasks/TasksPage.tsx
tsx
16,057
232c6ff4dd652b5dfce9b046251fd58c26d5090a4cc741edc474760ed1088992
/** * TasksPage Component * * Main page for viewing and managing tasks (commitments) and reminders. * Displays tasks from both Telegram and web sources with filtering options. */ import { useEffect, useState, useCallback } from 'react'; import { CheckSquare, Clock, AlertCircle, Archive, Bell, Loader2,...
eren23/non_linear_ai_chat
frontend/src/components/tasks/__tests__/TaskComponents.test.tsx
tsx
16,290
55fccc8671e83ddd0d8b66e7fc116b3e27e453d8acea3ee0e8e8ee35971bbad1
// @vitest-environment happy-dom /** * Tests for TaskCard and TasksPage components. * * TaskCard: Single task card with completion toggle, due date, actions. * TasksPage: Main tasks/reminders page with filtering and tabs. */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { render, screen, f...
eren23/non_linear_ai_chat
frontend/src/components/tasks/__tests__/TasksPage.test.tsx
tsx
16,965
39d3d61cda17e53d658234aabe2dd86d14f81ccd342e9c1f1637cb7a6dfe00a9
/** * Tests for TasksPage component * * TasksPage is the main page for viewing and managing tasks and reminders. * It displays tasks from both Telegram and web sources with filtering, * tab switching between tasks and reminders, and inline reminder management. * * Tests cover: * - Export verification (default a...
eren23/non_linear_ai_chat
frontend/src/components/calendar/CalendarEventsPage.tsx
tsx
9,733
5cd524382f63c358b0b89ababf0b0ce79d78d7c989da6406c7a3db742cb19e8d
/** * Calendar Events Page - Manage calendar events from memories. */ import { useState, useEffect } from 'react'; import { Calendar, Clock, CheckCircle, AlertCircle, ArrowLeft } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import { formatDateTime } from '@/i18n/formatters'; import st...
eren23/non_linear_ai_chat
frontend/src/components/chat/ChatPanel.tsx
tsx
8,480
cbc58677d563e4ddf83c65d857dd999ad3ddc268a1df3c45562c436a030bb012
/** * ChatPanel - Sliding conversation view for selected chat nodes. * * Behavior: * - Slides in from right when chat node is selected * - Shows full ancestry chain conversation * - Auto-opens on single chat node selection * - Manual close button to collapse * - Expandable messages with max-height threshold */...
eren23/non_linear_ai_chat
frontend/src/components/nodes/DocumentPicker.tsx
tsx
11,270
dfd221ae61ac8c71f8615a46c6cf0cf38b22422874d2db5e1510246873b4277c
/** * DocumentPicker - Searchable document attachment picker for chat nodes. * * Replaces the flat file selector dropdown with a Cmd+K style picker * that searches across flow documents and the entire library. */ import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react'; import { FileText...
eren23/non_linear_ai_chat
frontend/src/components/nodes/MermaidDiagram.tsx
tsx
4,466
1bbe4c6f0ff089a5db515acba5a3cd548d4e5b539dfbe6a28c7bd70681b5b8f2
/** * MermaidDiagram component - Renders Mermaid diagrams from code blocks. * PERFORMANCE: Optimized with React.memo to prevent unnecessary re-renders */ import React, { useEffect, useRef, useState, memo } from 'react'; import mermaid from 'mermaid'; import { sanitizeSVG } from '@/lib/domSanitize'; import { useTran...
eren23/non_linear_ai_chat
frontend/src/components/nodes/CapturePickerPopover.tsx
tsx
5,528
24ca0befd1dfd7bb3d20f7b288a9b135527e16d05f28c459bd957b811b157565
/** * CapturePickerPopover - Compact popover for selecting a capture to attach * to the current chat node via captureIds reference. */ import React, { useState, useEffect, useCallback } from 'react'; import { Camera, Loader2, Globe, FileText, Highlighter, X } from 'lucide-react'; import { useCaptureStore, type Capt...
eren23/non_linear_ai_chat
frontend/src/components/nodes/CapabilityBadgeStrip.tsx
tsx
7,580
63d94fd9b8457c25f81961a200a64f1a7965a8ebec926c2f231edfed3d58f0fb
/** * CapabilityBadgeStrip - Inline capability indicator replacing ToolBadgeStrip, * RAG toggle button, and Context Sources button. * * Shows colored icon pills for each enabled capability, grouped by category. * Click to open CapabilityConfigPanel popover. */ import React, { useCallback, useMemo, useRef, useSta...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeHeader.tsx
tsx
20,070
66725f39101a12073c99ef29428ebb6dcf7eca81c16002b136ee22c05b7c01ac
/** * ChatNodeHeader component - Extracted from ChatNode.tsx * * Contains: * - Model selector dropdown * - Unified capability strip (replaces separate tool/RAG/context buttons) * - Color picker * - Font size control * - Action buttons (Deep Mode, Refine, Regenerate, etc.) * - Group menu * - Overflow menu for ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/MediaGenerationNodeTemplateOverride.tsx
tsx
3,197
88070d8b7720a478dd17f06a91d1f64da5397f6d12b6b099a63de5456de73e85
/** * Template override modal for MediaGenerationNode. * Allows per-node overrides of template parameters. */ import React, { useState, useCallback } from 'react'; import { X, Save } from 'lucide-react'; import { ImageTemplateParameters, ImageTemplate } from '@/types/graph'; import ImageTemplateForm from '@/compone...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeOutput.tsx
tsx
6,598
4f931eafab014d08d6277efde2046d4875d61c092d63881143d00e5d47832763
/** * ChatNodeOutput - Output display area for chat nodes. * * Extracted from ChatNode to encapsulate: * - Loading state animation * - Markdown rendering with code highlighting * - Token info display * - Feedback component * - Copy output button * - Error display with retry * - Stale indicator */ import Rea...
eren23/non_linear_ai_chat
frontend/src/components/nodes/NodeErrorBoundary.tsx
tsx
2,735
cba0ded3e0ec563f4179d04154d0e89e1f8f8defbf7b7e38d60877fb2f4586f9
import React, { Component, type ErrorInfo, type ReactNode } from 'react'; import * as Sentry from '@sentry/react'; interface Props { children: ReactNode; nodeType: string; } interface State { hasError: boolean; error: Error | null; } /** * Error boundary for individual ReactFlow nodes. * Catches rendering ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/InfoNodeMemoryIntegration.tsx
tsx
2,659
86c6e5f3b519beb129bb2807186045a9757faa541398bf24b644a92b4edfdf9e
/** * Info Node Memory Integration - Add memory creation to information nodes */ import { useState } from 'react'; import { Brain, Sparkles, Loader2, Check } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './InfoNodeMemoryIntegration.module.css'; import { createMemory...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ReferenceSelector.tsx
tsx
11,405
72a9a96ffc430a7cd09b43cfc9e46c59d3635a26cc6c8491dd7e954d2d109e8c
/** * Reference Selector - Component for adding references to other flows and nodes * Similar to Obsidian/Flowit linking */ import React, { useState, useCallback, useEffect, useMemo } from 'react'; import { X, Search, Link as LinkIcon, FileText, ChevronRight } from 'lucide-react'; import { listFlows, getFlowMetadat...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeResources.tsx
tsx
5,876
abd038287c21b9d3738db25ecc34731ae6664b211ea4d8ffc0532b0503d68ec4
/** * ChatNodeResources - Displays files, web sources, and tools used during LLM generation. * Shows compact view with resource names and overflow indicator. */ import React, { useState } from 'react'; import type { LucideIcon } from 'lucide-react'; import { FileText, Image, Globe, ChevronDown, ChevronUp,...
eren23/non_linear_ai_chat
frontend/src/components/nodes/DocumentPickerPanel.tsx
tsx
24,711
fc9b3239390213ded8986252856f730be257b8afa27b55217edc95f0bc7de6eb
/** * DocumentPickerPanel β€” Full-size modal for browsing, searching, and selecting * library documents to import into a node. Supports multi-select. * * Uses independent local state for data fetching. * * Features: * - Multi-select with checkboxes * - Search with debounce * - Grouping (flat by default, or by t...
eren23/non_linear_ai_chat
frontend/src/components/nodes/CapabilityConfigPanel.tsx
tsx
11,973
6b05bf65c0b59ae0a3d76f7cda992282eb31c96c857e2d45f2ec1b917739f278
/** * CapabilityConfigPanel - Unified popover for configuring per-node capabilities. * * Replaces both ToolConfigPanel and ContextConfigPanel with a single surface. * Maps capability toggles to the dual backend mechanisms (tools + contextConfig) * transparently. */ import React, { useCallback, useMemo } from 're...
eren23/non_linear_ai_chat
frontend/src/components/nodes/GroupNode.tsx
tsx
5,275
192eaf04407a32f414ed0fe293f34a14f6acfe9600e70b10d1a529204bb36495
/** * GroupNode component - Background container for grouped nodes. * * Features: * - Renders behind other nodes as a background rectangle * - Shows a small name badge at top-left corner * - Connection handles for creating edges (MUST have pointer-events: auto) * - Full group details live in the right sidebar /...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ExpandedInputModal.tsx
tsx
11,462
c0dfa717673eb950d6e9955e02721226d031c8477070a4d917054d345b584823
/** * ExpandedInputModal - Full-screen editor for composing prompts. * * Features: * - Large textarea (80vh height) * - AI text selection toolbar integration * - Markdown formatting shortcuts * - Character count display * - Keyboard shortcuts: Cmd+Enter to send, Escape to close */ import React, { useRef, useE...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeFeedback.tsx
tsx
11,033
38eb1c94f42229faab933bd4c9bca974a11b629bf7c28a72765fe5188ba97f28
/** * ChatNodeFeedback - Feedback collection UI for ChatNode responses * * Features: * - Thumbs up/down buttons visible on hover * - Optional detailed feedback dialog for negative ratings * - Tracks feedback state per node * - Correlates with Langfuse traces for evaluation */ import React, { useState, useCallb...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeContextTelemetry.tsx
tsx
4,404
3382a88468b5ae7597d5a9c4b85377bbee92dd7de77cee4458143efd6a137233
/** * ChatNodeContextTelemetry β€” pill + expandable details panel that surfaces * the per-generation "context injected/skipped" decision from the backend. * * Extracted from ChatNode.tsx as part of Tier 2F so the markup, the * `formatContextReason` mapping, and the open/close state form a single * memoised unit in...
eren23/non_linear_ai_chat
frontend/src/components/nodes/AuthenticatedImage.tsx
tsx
3,675
49772a5139e231faf410448b32354fc762eacd97e50b1aa483276141ad517b38
/** * Authenticated Image Component * Loads images with authentication and displays them using blob URLs * Supports lazy loading with Intersection Observer for performance */ import React, { ImgHTMLAttributes } from 'react'; import { useAuthenticatedImage } from '@/lib/useAuthenticatedImage'; import { useTranslati...
eren23/non_linear_ai_chat
frontend/src/components/nodes/MediaGenerationNode.tsx
tsx
21,470
fd9d2861f3bde9199e4763d6392087b3aec1b489975ab0d6e8fefc9fc13d2ace
/** * MediaGenerationNode - Display-only canvas node for AI image/video generation. * * Ultra-minimal pattern (like SimplifiedChatNode): * - Canvas: Drag handle, badges, parent images preview, prompt (read-only), generated images/videos * - Sidebar: All controls (MediaNodeProperties) * - Input: FloatingInputBar h...
eren23/non_linear_ai_chat
frontend/src/components/nodes/FlowReferenceNode.tsx
tsx
1,843
2067b730678be17f7ea05fcde3086b8635740b3eefb47bafb42cd682e0bffa88
/** * FlowReferenceNode - Compact node that represents a reference to another flow. * * Features: * - Shows link icon and flow name * - Truncated summary (2 lines) * - Count of selected context nodes * - Stale indicator when source flow has changed */ import React, { memo } from 'react'; import { Handle, Posit...
eren23/non_linear_ai_chat
frontend/src/components/nodes/MarkdownRenderer.tsx
tsx
1,628
fdf4e82e90e31ac7a666006d67a09437efd4d5fb197a09162c83a3228625bfe6
/** * MarkdownRenderer - Lazy-loaded markdown rendering component. * * Encapsulates the heavy markdown dependencies (react-markdown, remark-gfm, * remark-math, rehype-katex, katex CSS) so they can be code-split and only * loaded when markdown output is actually displayed. */ import React, { useMemo } from 'react...
eren23/non_linear_ai_chat
frontend/src/components/nodes/InformationNode.tsx
tsx
50,507
00bff9367b7f9fc9d6583e2732f7c90773ad0068df2a2b8ed8946254e9b2eca6
/** * Information Node - Simplified grid-based component for displaying information * * Ultra-minimal pattern (like SimplifiedChatNode): * - Canvas: Grid display, weblinks, drag handle, drop zone * - Sidebar: All controls (InfoNodeProperties) */ import React, { useState, useCallback, useRef, memo, useEffect, use...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNode.tsx
tsx
95,012
47a68ebdfa2b933e979600084e58c30943636683bcf73c40209a3b7c59fc6fdd
/** * ChatNode component - The main node type for conversations. * * Features: * - Display AI response with markdown rendering * - Input field for next user prompt (spawns child node) * - Regenerate and edit controls * - Stale status indicator (time travel feature) * - Ethereal glass design * * Extracted comp...
eren23/non_linear_ai_chat
frontend/src/components/nodes/StaggeredImageLoader.tsx
tsx
3,251
ad712914fb7f9e8770009970f9c42e8856c2129035c5c8063292a84ef90f62d6
/** * Staggered Image Loader * * Loads images progressively with delays between batches * to prevent overwhelming the backend with simultaneous requests. */ import React, { useState, useEffect, useRef } from 'react'; import AuthenticatedImage from './AuthenticatedImage'; interface StaggeredImageLoaderProps { ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeHistory.tsx
tsx
4,893
42f1cfdd69c910fdce0096f8d12be18fc01526053da132b743abc6c005d6ca44
/** * ChatNodeHistory component - Extracted from ChatNode.tsx * * Contains: * - Version history panel * - History item rendering with markdown */ import React, { useMemo } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import remarkMath from 'remark-math'; import re...
eren23/non_linear_ai_chat
frontend/src/components/nodes/RichTextEditor.tsx
tsx
2,485
1e5f00887228bab85557c5378725875a6716ffa44290bc30fdc3d5a205d5d638
/** * Rich Text Editor - Enhanced text editing for information nodes. * Uses shared useMarkdownToolbar hook and MarkdownToolbar component. */ import { useState, useRef, useEffect } from 'react'; import { Type } from 'lucide-react'; import { useMarkdownToolbar } from '../../hooks/useMarkdownToolbar'; import { Markdo...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodePromptInput.tsx
tsx
6,540
e8932349ddc74ebb946bcb804b1c756f64f23efce61597727dcdb2e3d519c994
/** * ChatNodePromptInput - Input area for chat nodes. * * Extracted from ChatNode to encapsulate: * - Prompt textarea with auto-expand * - Slash command menu * - Voice recording button * - Send/branch buttons * - Parallel generation button */ import React, { memo, useCallback, useRef, useState, ClipboardEven...
eren23/non_linear_ai_chat
frontend/src/components/nodes/SimplifiedChatNode.tsx
tsx
10,261
d89281a84e973a101c3443d1fd9c4d9b9b56dec6b6f08bc1b0d2e06d3c6d7dbc
/** * SimplifiedChatNode - Minimal node display for the new ElevenLabs-style layout. * * This component shows ONLY: * - Prompt text (collapsible if > 3 lines) * - Output markdown rendering * - Loading indicator (3-dot animation) * - Status indicators (stale, error, generating) * - Connection handles * * ALL c...
eren23/non_linear_ai_chat
frontend/src/components/nodes/NodeErrorDisplay.tsx
tsx
4,425
35ceff4f09a188460ac023c40b2311f59d17f62fb73ce97eb9aeff2358a007a8
/** * NodeErrorDisplay - Actionable inline error display for chat nodes. * * Replaces the generic red banner + single "Retry" button with * category-aware messages and context-specific action buttons. */ import React, { memo, useState, useEffect, useCallback } from 'react'; import { AlertTriangle } from 'lucide-r...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ChatNodeFiles.tsx
tsx
23,743
eede54843af6bc8f2f9f6a5cbd029219f3f385fc2c0d14343b5ade4c1c6ece24
/** * ChatNodeFiles component - Extracted from ChatNode.tsx * * Contains: * - Document suggestions (RAG) section * - File attachments UI as compact chips with expandable popup (T015) * - DocumentPicker for searching & attaching documents * - Upload status indicators (T016) */ import React, { useRef, useState, ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/ToolActivityIndicator.tsx
tsx
3,108
129e8e81bfcc61f2964056a27aa5d4442d34795c22e4c3a0074b6f38894f4911
/** * ToolActivityIndicator - Compact inline pills showing tool activity during generation. * * Displays real-time status of tool calls: * ⟳ Searching web for 'rust async' * βœ“ Checked memories */ import React, { memo } from 'react'; import type { LucideIcon } from 'lucide-react'; import { Globe, FileText...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeHistory.test.tsx
tsx
11,596
c7468566d928d20cf45e901e7c13de978266300e197f497513c34df7ca08add4
// @vitest-environment happy-dom /** * Tests for ChatNodeHistory component. * * ChatNodeHistory displays the version history panel including: * - History item rendering with markdown * - Version numbering (reverse order) * - Model name display * - Token count display * - Timestamps (completedAt or createdAt) *...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/AuthenticatedImage.test.tsx
tsx
7,724
26164db3754eab3c9bfe8830830cdf4ac6c7dc68349155a3c78ccaeb5cad1e04
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, waitFor } from '@testing-library/react'; // Mock useAuthenticatedImage hook const mockUseAuthenticatedImage = vi.fn(); vi.mock('@/lib/useAuthenticatedImage', () => ({ u...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/GroupNode.test.tsx
tsx
15,365
6f3dab60b69018ba18d70d21a84a332d9f199ece92e479e2f596db88fa583b36
/** * Comprehensive tests for GroupNode component. * * GroupNode is a background container for grouped nodes: * - Renders as a background rectangle * - Shows name badge at top-left * - Connection handles for edges * - Branch creation button * * Tests focus on component structure, props interface validation, *...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ReferenceSelector.test.tsx
tsx
12,684
7996826dbdedaa0db3a1a63848d94ca3f56ff91a1918424d8680859fdd241101
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; // Mock flowsApi const mockListFlows = vi.fn(); const mockGetFlowM...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/InformationNode.test.tsx
tsx
34,147
20b7638d7d8f93694dedc60eea18f3476b7cd4855f051dd100d76f0c75a77f52
/** * Comprehensive tests for InformationNode component. * * InformationNode is a grid-based component for displaying information: * - Image and text sub-nodes in a grid layout * - Web links display * - Drag and drop for images and sub-nodes * - Sub-node editing modals * * Tests focus on component structure, p...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/MediaGenerationNodeTemplateOverride.test.tsx
tsx
7,926
a41d97b36460a2f7462989a7ca237fc2e78d3589556fdbd55ff7cbbbedfffc3d
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent } from '@testing-library/react'; // Mock ImageTemplateForm component vi.mock('@/components/controls/ImageTemplateForm', () => ({ default: ({ parameters, onChan...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodePromptInput.test.tsx
tsx
15,358
02e122ed41a0db92a06ffca2e1198b9ab305766f3fd5fa149755e60b7f686634
// @vitest-environment happy-dom /** * Tests for ChatNodePromptInput component. * * ChatNodePromptInput is the prompt input area for chat nodes including: * - Textarea with auto-expand * - Slash command menu integration * - Voice recording button * - Send / branch buttons * - Parallel generation button * - Dis...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/InfoNodeMemoryIntegration.test.tsx
tsx
7,588
1b33d36e04997939cf7138f337444744dcf994ef87d25ffa0ca841b445fa32d1
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent, waitFor } from '@testing-library/react'; // Mock memoriesApi const mockCreateMemory = vi.fn(); vi.mock('@/lib/memoriesApi', () => ({ createMemory: (...args: a...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/RichTextEditor.test.tsx
tsx
9,474
24f6f0a33aa0da9cbd2a3dfa29b48cb745daf04694e3c3b007a31c8d11e709d4
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; // Mock CSS module vi.mock('../RichTextEditor.module.css', () => (...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeFiles.test.tsx
tsx
42,837
510e3247121f64afa6dcda09e628091f9f8454e6f8087a2616390200de0709a4
// @vitest-environment happy-dom /** * Tests for ChatNodeFiles component. * * ChatNodeFiles displays file attachments for chat nodes including: * - Document suggestions (RAG) section * - File attachments UI with image thumbnails * - File selector dropdown * - Upload status indicators * - File type icons * - Fi...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeHeader.test.tsx
tsx
16,496
41b41c2b0cfb3bf464ad949d888395e7c316ac07bff8334aa5737a3387c55fe0
/** * Comprehensive tests for ChatNodeHeader component. * * ChatNodeHeader is the extracted header component from ChatNode containing: * - Model selector dropdown * - Tool selector dropdown * - Color picker * - Font size control * - Action buttons (Deep Mode, RAG, Refine, Regenerate, etc.) * - Group menu * - ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/MediaGenerationNodeFeedback.test.tsx
tsx
10,362
edb3444707deacd2cd3aac7fa2ca3052c7d1be73b8ed148336956091e989d4b8
// @vitest-environment happy-dom /** * Tests for feedback integration in MediaGenerationNode. * * Verifies that ChatNodeFeedback is rendered for: * - Each generated image (with compact mode, contentType="image") * - Each generated video (with contentType="video") * - Correct contentIndex for each item */ import...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ExpandedInputModal.test.tsx
tsx
13,165
8688dcf4f9f23970c995db43d8b9a8862c604e2ecc3e2e73d0f945ef32ee9fce
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; // Mock dependencies const mockUseAISelection = vi.fn(); vi.mock('...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/SimplifiedChatNode.test.tsx
tsx
8,759
247333f8f93ae0d327a0cdb54a056a850aae0260636b12838a50259c52909170
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, fireEvent } from '@testing-library/react'; // Mock dependencies vi.mock('@/store/useGraphStore', () => ({ default: vi.fn((selector) => { if (typeof selector === 'fun...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeFeedback.test.tsx
tsx
19,223
4fb4b34e93b2a757c1469ed425d0d66637bd7835fd47780cd3fa61fceafd2a15
// @vitest-environment happy-dom /** * Tests for ChatNodeFeedback component. * * ChatNodeFeedback handles thumbs up/down feedback for LLM responses including: * - Thumbs up/down buttons * - Positive feedback submits immediately * - Negative feedback opens detailed modal * - Category selection in modal * - Comme...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNode.test.tsx
tsx
29,214
b1aded1f5b170996bb991d7576ee808826ed9663aa50c78327f80abab298e4f9
// @vitest-environment happy-dom /** * Comprehensive tests for ChatNode component. * * ChatNode is the main conversation node component featuring: * - AI response display with markdown rendering * - Input field for user prompts * - Model selector, tool controls * - Generation, regeneration, and refinement * - S...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeOutput.test.tsx
tsx
13,619
31209391fde19fc5f6b318b708c743ec13c576fd8129bb41e1d269e04b10bc94
// @vitest-environment happy-dom /** * Tests for ChatNodeOutput component. * * ChatNodeOutput renders the AI response output area including: * - Loading state with animation * - Markdown rendering with code highlighting * - Token info display * - Feedback component * - Copy output button * - Error display with...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/MermaidDiagram.test.tsx
tsx
5,320
d973678146a1ccfbf0325a03011ec4a108e1f8e774c0f9ceb1e39115eb97b4a2
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import React from 'react'; import { render, screen, waitFor } from '@testing-library/react'; // Mock mermaid library vi.mock('mermaid', () => ({ default: { initialize: vi.fn(), render: vi.fn(), }, })); // Mock ...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/NodeErrorDisplay.test.tsx
tsx
11,320
1eaeaef157de471ce442a4f44672d8efd08f347e686a0d710246b9ab891a12ab
/** * @vitest-environment happy-dom */ /** * Tests for NodeErrorDisplay component. * * Covers: * - Renders error message and title * - Shows category description when it differs from error message * - Renders correct action buttons per category * - Countdown timer for RATE_LIMIT with retryAfter * - Callbacks...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/FlowReferenceNode.test.tsx
tsx
5,173
6277f57c8eebe43a9ea4bbbd86e2a9c0e4a3b2bdcf37052aea380b365cf60cfa
// @vitest-environment happy-dom import { describe, it, expect, vi } from 'vitest'; import React from 'react'; import { render, screen } from '@testing-library/react'; // Mock ReactFlow vi.mock('@xyflow/react', () => ({ Handle: ({ children, ...props }: any) => ( <div data-testid={`handle-${props.id || 'default'}...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/StaggeredImageLoader.test.tsx
tsx
7,357
2963d4ed0da11e5d87512493c1cbf9fa328be230b4f7296677d27a8d2c64ed1c
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import React from 'react'; import { render, screen, waitFor } from '@testing-library/react'; // Mock AuthenticatedImage component vi.mock('../AuthenticatedImage', () => ({ default: ({ src, alt, className }: any...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/MediaGenerationNode.test.tsx
tsx
22,817
621cf3153d8d89b84ff40067aba5baf5b6a5f488a8b818ff18f081cbe905e532
/** * Comprehensive tests for MediaGenerationNode component. * * MediaGenerationNode is a component for AI image generation: * - Prompt input and editing * - Model selection * - Image generation from text * - Video generation * - Parent image inputs * - Template support * * Tests focus on component structure...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/ChatNodeResources.test.tsx
tsx
13,423
ddf4158f715a17ecd3d9c5a3c7741bf43a744a8f7e0642b96b5eac5f396f4509
// @vitest-environment happy-dom /** * Tests for ChatNodeResources component. * * ChatNodeResources displays files and web sources used during LLM generation: * - File resources with icons based on type (text/image) * - Web resources with links and domain names * - Expand/collapse for overflow (max 5 visible by d...
eren23/non_linear_ai_chat
frontend/src/components/nodes/__tests__/_disabled/FlowReferenceNode.test.tsx
tsx
7,929
85057c17034cd417ff95145bd01d19e34103a98483c768e01c85ae2aba09886d
/** * @vitest-environment jsdom */ /** * Tests for the FlowReferenceNode component. * * FlowReferenceNode displays a compact reference to another flow. * Tests verify: * - Correct rendering of flow name, summary, and context count * - Stale indicator visibility * - Token count display * - Summary truncation ...
eren23/non_linear_ai_chat
frontend/src/components/auth/WaitingListPage.tsx
tsx
3,175
798c27f3cb8722390ea5207c11bb4353f007102f641ad490459a93f97786570e
/** * Waiting list page - shown when user tries to log in but email is not in allowed list. */ import React, { useEffect } from 'react'; import { Clock } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './WaitingListPage.module.css'; interface WaitingListPageProps { ...
eren23/non_linear_ai_chat
frontend/src/components/auth/LoginPage.tsx
tsx
15,842
3ce8c0c7f833e9e201e5930646f44cd53c62f0f19c1fac53f06ef0f48e922219
/** * Login page component with email/password and OAuth support. */ import React, { useEffect, useState, useMemo, useRef, useCallback } from 'react'; import { initiateLogin, loginWithEmail, registerWithEmail, getCaptchaConfig, type CaptchaConfig } from '@/lib/authApi'; import { useAuthStore } from '@/store/useAuthS...
eren23/non_linear_ai_chat
frontend/src/components/auth/ForgotPasswordPage.tsx
tsx
4,455
68107d9608a9787aed12274b2e5aad976cd66ea0c584753c4940c1cd9e9c34ac
/** * Forgot password page β€” request a password reset link. */ import React, { useState, useRef, useEffect } from 'react'; import { forgotPassword, getCaptchaConfig, type CaptchaConfig } from '@/lib/authApi'; import { validateEmail } from '@/lib/authValidation'; import { useTranslation } from '@/i18n/useTranslation'...
eren23/non_linear_ai_chat
frontend/src/components/auth/TurnstileWidget.tsx
tsx
1,401
4768173661e907f1f5596d372c5a3732165111faf7f11efb4d96505a1ea4c201
/** * Cloudflare Turnstile CAPTCHA widget wrapper. * * The site key is provided at runtime via the `siteKey` prop (fetched from * the backend's /auth/captcha-config endpoint). The parent component decides * whether to render this widget based on the captcha config. */ import { forwardRef, useImperativeHandle, us...
eren23/non_linear_ai_chat
frontend/src/components/auth/ResetPasswordPage.tsx
tsx
6,826
2aa2a5359142ca96a0bf6272f90afcf2a5322b9296ca2864fdf9e5d70fd7bfc0
/** * Reset password page β€” set a new password using a token from email. */ import React, { useState } from 'react'; import { resetPasswordApi } from '@/lib/authApi'; import { validatePassword, validateConfirmPassword } from '@/lib/authValidation'; import { useTranslation } from '@/i18n/useTranslation'; import { Pas...
eren23/non_linear_ai_chat
frontend/src/components/auth/AccountBlockedPage.tsx
tsx
4,122
01ef09705db4911d4a43b8f736867592e3905236f1548e1bce51687cffb3a4d4
/** * Account blocked page - shown when a suspended, deleted, or inactive user tries to log in. */ import React, { useEffect } from 'react'; import { ShieldOff, PauseCircle } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './WaitingListPage.module.css'; const Account...
eren23/non_linear_ai_chat
frontend/src/components/auth/EmailVerificationPage.tsx
tsx
5,747
b443a87ab178b3da3ee5e69d7962b3ac5f446d1e88101185d0486fbe715f2109
/** * Email verification page. * Two modes: * - ?pending=true β€” "Check your email" message with resend option * - ?token=xxx β€” Calls verify API on mount, shows result */ import React, { useEffect, useState } from 'react'; import { verifyEmailApi, resendVerification } from '@/lib/authApi'; import { useTransl...
eren23/non_linear_ai_chat
frontend/src/components/auth/useAuthForm.ts
ts
2,476
202495b040d74f9209d92f0abb1f3d5b7c251dd525806203f720052a88109b43
/** * Lightweight form state hook for auth forms. */ import { useState, useCallback } from 'react'; import { useTranslation } from '@/i18n/useTranslation'; interface UseAuthFormOptions<T extends Record<string, string>> { initialValues: T; validate: (values: T) => Partial<Record<keyof T, string>>; onSubmit: (v...
eren23/non_linear_ai_chat
frontend/src/components/auth/AuthFormFields.tsx
tsx
1,615
eacb545d16890fe4fcb52e594972292f2787200eddfe79c1b6302220839b59e6
/** * Auth form field components β€” PasswordInput with show/hide toggle. */ import React, { useState } from 'react'; import { Eye, EyeOff } from 'lucide-react'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './LoginPage.module.css'; interface PasswordInputProps { value: string; onCha...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/ForgotPasswordPage.test.tsx
tsx
10,108
b4a4d09583edfc26f3de351b4d69ecc1a103995c025c102eb5b8cfafac2a0dd7
/** * @vitest-environment happy-dom */ /** * Tests for ForgotPasswordPage component. * * Tests cover: * - Renders email input form * - Shows validation error for empty email * - Shows validation error for invalid email format * - Submits email and shows success message * - Shows submitting state (button disa...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/ResetPasswordPage.test.tsx
tsx
14,416
a994c88e040609d729a03651ece55cfc59e38c0073d88f9ae6f5566bc1e8f497
/** * @vitest-environment happy-dom */ /** * Tests for ResetPasswordPage component. * * Tests cover: * - Renders "Invalid Reset Link" when no token in URL * - Renders password form when token is present * - Shows validation errors for empty password * - Shows validation errors for weak password (length, upper...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/AccountBlockedPage.test.tsx
tsx
4,349
6eaf73c414154e6facbaf3599383dc01fd8dbaea0fff387f3f49cc273071968c
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; import { render, screen, fireEvent } from '@testing-library/react'; import AccountBlockedPage from '../AccountBlockedPage'; // Helper to set URL search params before rendering function setUrlParams(params: Record<string, st...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/LoginPage.test.tsx
tsx
5,725
ef748e17c7b4a857e297a87b6c3556916c66df5c1603d1e1270f469bf827de71
/** * Tests for LoginPage component * * Tests: export verification, props interface, loading state, * login buttons, redirect logic, provider setup. */ import { describe, it, expect, vi, beforeEach } from 'vitest'; const mockInitiateLogin = vi.fn(); const mockGetCaptchaConfig = vi.fn(); const mockAuthState = { ...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/RegisterPage.test.tsx
tsx
10,613
74f9e39eb58eac02f0e792d324a4c586e8c61a72cce212644462a98c649aa782
/** * @vitest-environment happy-dom */ /** * Tests for the Registration flow in LoginPage. * * Since RegisterPage.tsx does not exist (registration is a tab within LoginPage), * this file tests the "Register" tab of LoginPage including: * - Renders registration form fields (email + name) * - Shows validation er...
eren23/non_linear_ai_chat
frontend/src/components/auth/__tests__/TurnstileWidget.test.tsx
tsx
4,899
e5e616745057273b926b6f4b1f270839d5b004c5fcf3ae268e9eb9d9652ed3d0
// @vitest-environment happy-dom /** * Tests for TurnstileWidget component. * * TurnstileWidget wraps the @marsidev/react-turnstile Turnstile component * with a forwardRef API that exposes a reset() method. It passes siteKey, * onSuccess, onError, and onExpire to the underlying component. * * Key behaviors teste...
eren23/non_linear_ai_chat
frontend/src/components/layout/index.ts
ts
264
42d3846cf38d307b83522ae93ded93c0b59bcc4b3caf9df4b73ba88aab88bce6
/** * Layout components index */ export { LeftSidebar } from './LeftSidebar'; export { RightSidebar } from './RightSidebar'; export { TabBar } from './TabBar/TabBar'; export type { TabBarProps } from './TabBar/TabBar'; export { Navbar } from './Navbar/Navbar';
eren23/non_linear_ai_chat
frontend/src/components/layout/ResizeHandle.tsx
tsx
2,789
a9aea1b05457021081912894984c44aca33118845f41726cd0cc9bdfdac9a601
/** * ResizeHandle - Draggable handle for resizing sidebars. * * Renders a thin vertical line on the inner edge of a sidebar. * Drag to resize the sidebar width within min/max bounds. */ import React, { useCallback, useRef, useEffect } from 'react'; import { useTranslation } from '@/i18n/useTranslation'; import s...
eren23/non_linear_ai_chat
frontend/src/components/layout/Navbar/Navbar.tsx
tsx
5,319
c684bd80869cd353af580c088b155b25b768a7d27fcade593aedc2d9199487b4
/** * Navbar - Top navigation bar for the new layout. * * Features: * - Breadcrumb navigation (Flows > Current Flow Name) * - Search button with indicator * - Feedback button with green dot * - Notification bell icon * - Info/help icon */ import React, { useState, useRef, useCallback } from 'react'; import { ...
eren23/non_linear_ai_chat
frontend/src/components/layout/Navbar/UserLimitsIndicator.tsx
tsx
1,499
2996045435d6c75576353963347e200793c784da3eff0c62e6b762eedbbc18ca
import React from 'react'; import { useUserLimits } from '@/hooks/useUserLimits'; import { useAuthStore } from '@/store/useAuthStore'; import styles from './UserLimitsIndicator.module.css'; /** * Compact spending indicator for the Navbar. * Shows a small progress bar with current spend / allowance. * Changes color ...
eren23/non_linear_ai_chat
frontend/src/components/layout/RightSidebar/HistoryPanel.tsx
tsx
6,975
8c1985446b6209c485fc630549a980435ec77573d1a6f03769a79ddb59039fef
/** * HistoryPanel β€” view & restore prior versions of a node's content/prompt * after a non-human writer (MCP / Agent / Telegram) overwrote it. * Issue #1130. * * v1 scope: shows revisions for the currently-selected chat or info node. * Empty state when nothing selected, or when an entity has no revision rows. *...
eren23/non_linear_ai_chat
frontend/src/components/layout/RightSidebar/SidebarTabs.tsx
tsx
1,267
f367d5a3cade6d3b0287d731825c2414b65022b9b2ee7d7e0577d119650e072c
/** * SidebarTabs - Tab navigation for Right Sidebar. * Switches between Settings and History views. */ import React from 'react'; import { useTranslation } from '@/i18n/useTranslation'; import styles from './SidebarTabs.module.css'; export type SidebarTab = 'settings' | 'history'; interface SidebarTabsProps { ...
eren23/non_linear_ai_chat
frontend/src/components/layout/RightSidebar/ReferencesGrid.tsx
tsx
4,245
68814c3e66905465cff1d00bea2a7d102425fa3e7e7f745664a5a2830e7679df
/** * ReferencesGrid - Reference image upload for media generation nodes. * * Three slots: * - Style: Aesthetic/mood references * - Character: Subject/person references * - General: Additional reference images */ import React, { useCallback, useRef } from 'react'; import { ImagePlus, Palette, User, Upload, X } ...
eren23/non_linear_ai_chat
frontend/src/components/layout/RightSidebar/RightSidebar.tsx
tsx
19,107
6dd9abf92cf189a5b426a619dfc3a3bc8d3f24ca4bccfac84b9e7c60cba39616
/** * RightSidebar - Always-visible properties panel. * * Contains: * - Dynamic node type header * - Settings/History tabs * - Node creation buttons * - Model selection * - Save flow button * - Properties panel (context-aware) * - References grid (for media nodes) * - Browse templates button * - Image prese...
eren23/non_linear_ai_chat
frontend/src/components/layout/TabBar/PerformanceIndicator.tsx
tsx
4,825
661579f9b77cf1def7d1dab6b2d7d4e6453e30bf1e3ab3e9a9f1e4b9412ccd72
/** * PerformanceIndicator Component * * Shows memory/performance metrics in the tab bar. * Displays system health status, memory usage, and per-tab breakdown. * Helps users understand why tabs might get suspended. */ import React, { useState, useEffect } from 'react'; import { Activity, ChevronDown, ChevronUp }...