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/lib/__tests__/systemHealthApi.test.ts
ts
8,004
fcf4d874b6b0686b8670ab9c947b030238178c1f7874c5e9472877e601e59c7b
import { describe, it, expect, vi, beforeEach } from 'vitest'; // Mock fetch globally const mockFetch = vi.fn(); vi.stubGlobal('fetch', mockFetch); // Mock the API_BASE import β€” systemHealthApi imports { API_BASE } from './api' vi.mock('../api', () => ({ API_BASE: '/api', })); import { getCacheStats, getSystemHeal...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/attachmentsApi.test.ts
ts
12,858
95a3fed0fb6c726c22bce417fdc16dbe7d6254270aba88392e92a90ae58aef0b
import { describe, it, expect, vi, beforeEach } from 'vitest'; // Mock filesApi module - must be hoisted, so use vi.fn() inline vi.mock('../filesApi', () => ({ uploadFile: vi.fn(), getNodeFiles: vi.fn(), attachFileToNode: vi.fn(), detachFileFromNode: vi.fn(), getFile: vi.fn(), })); vi.mock('../tasksApi', ()...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/graphTheme.test.ts
ts
6,053
9d2425cfffb4f545a8630d3e92e0d8c9bc4f0e259d109aea9c97752cc2ec48f6
/** * Tests for centralized graph theme constants. * * Covers: * - MEMORY_NODE_COLORS β€” Node colors by memory type * - MEMORY_EDGE_COLORS β€” Edge colors by edge type (rgba) * - MEMORY_EDGE_COLORS_3D β€” Opaque edge colors for Three.js * - NOTE_NODE_COLORS β€” Note node colors by connectivity * - NOTE_EDGE_COLOR / NO...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/api.test.ts
ts
19,712
8e8b7ccbecf42141ff5fc7e462b0f3592a136be6af1b9ad2d73ef51932149129
// @vitest-environment happy-dom import { describe, it, expect, vi, beforeEach } from 'vitest'; // Mock fetch globally const mockFetch = vi.fn(); vi.stubGlobal('fetch', mockFetch); vi.mock('@/lib/csrfApi', () => ({ apiFetch: (input: any, init?: any) => globalThis.fetch(input, { ...init, credentials: init?.crede...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/userPreferencesApi.test.ts
ts
5,461
b9825071f6db53758018c95fa3717b0c51cfa86c3e25e8a53f27b2cbb537eb12
import { describe, it, expect, vi, beforeEach } from 'vitest'; // Mock apiCache module vi.mock('../apiCache', () => ({ cachedFetch: vi.fn((key, fn) => fn()), invalidateCache: vi.fn(), CACHE_KEYS: { USER_PREFERENCES: 'user_preferences' }, CACHE_TTLS: { USER_PREFERENCES: 60000 }, })); // Mock fetch globally bef...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/useAuthenticatedImage.test.ts
ts
9,328
ab089a617238e1cc0d3b52936d97d63c0669fba2bb79c783f99712cc92fe60a9
// @vitest-environment happy-dom /** * Tests for useAuthenticatedImage hook and clearAuthenticatedImageCache. * * Verifies multi-layer caching (memory + IndexedDB), lazy loading with * IntersectionObserver, retry logic for 202 responses, error handling, * and cache clearing. */ import { describe, it, expect, vi,...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/knowledgeGraphUtils.test.ts
ts
1,642
a1522c6ca41c125994a7d6d62c3c968b0ad8348e17f18bbec5eea9e1e3e103ee
import { describe, it, expect } from 'vitest'; import { getPrefixedId } from '../knowledgeGraphUtils'; describe('knowledgeGraphUtils', () => { describe('getPrefixedId', () => { it('prefixes note items with "note-"', () => { expect(getPrefixedId({ kind: 'note', id: 'abc123' })).toBe('note-abc123'); });...
eren23/non_linear_ai_chat
frontend/src/lib/__tests__/authApi.test.ts
ts
5,469
d0b2be766e80ccd3edbaad06f01bf5c527914c26fb44cd48ef07f5686b0f1e99
import { describe, it, expect, vi, beforeEach } from 'vitest'; const mockFetch = vi.fn(); vi.stubGlobal('fetch', mockFetch); // Mock clearAuthenticatedImageCache vi.mock('../useAuthenticatedImage', () => ({ clearAuthenticatedImageCache: vi.fn(), })); import { getCurrentUser, initiateLogin, initiateGitHubLogi...
eren23/non_linear_ai_chat
frontend/src/workers/graphTraversal.types.ts
ts
4,091
7f83770039932bbecbe743836be58960ef6f0c63e80e7a4c9bf944dc120d7e3c
/** * Types for graph traversal Web Worker. * * These types are shared between the main thread (graphWorkerClient.ts) * and the worker thread (graphTraversal.worker.ts). */ import type { Message } from '@/types/graph'; /** * Serialized node data for worker communication. * Strips React-specific properties and ...
eren23/non_linear_ai_chat
frontend/src/workers/graphTraversal.worker.ts
ts
17,022
7a1bbbebeaa4bc8e41d8a032c6051303f7e680986a720e3c8476da06eb1a8d23
/** * Graph Traversal Web Worker * * Offloads CPU-intensive graph traversal operations from the main thread. * Handles: * - Ancestry chain computation (topological sort) * - Message building for LLM context * - Recursive children finding * - Synthesis node detection */ import type { WorkerRequest, WorkerR...
eren23/non_linear_ai_chat
frontend/src/workers/__tests__/graphTraversal.worker.test.ts
ts
42,237
2cbadc00344aa816405a03e05e39c652097a2789e0e4f02ac6f6cacfcba16530
/** * Tests for graphTraversal.worker.ts * * Since this is a Web Worker, we cannot test the worker lifecycle directly * in a Node environment. Instead, we extract and test the core algorithms * by simulating the worker's `self.onmessage` handler and capturing * `self.postMessage` calls. * * Tests cover: * - An...
eren23/non_linear_ai_chat
frontend/src/i18n/index.ts
ts
2,485
906b137b70eecc72971be142136a8775965c363e0368abc1e75093bdc5ed4d23
import i18n from 'i18next' import en from './locales/en.json' import tr from './locales/tr.json' import de from './locales/de.json' export const SUPPORTED_LANGUAGES = ['en', 'tr', 'de'] as const export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number] const UI_LANGUAGE_STORAGE_KEY = 'uiLanguage' functio...
eren23/non_linear_ai_chat
frontend/src/i18n/formatters.ts
ts
1,653
339147257fe730acc23ef58f65a3e1b7fc9cbb3510421e42a97c6fffe0ccfc66
import i18n from './index'; function getLocale(): string { return i18n.resolvedLanguage || i18n.language || 'en'; } function toDate(value: string | number | Date): Date { return value instanceof Date ? value : new Date(value); } export function formatDate( value: string | number | Date, options?: Intl.DateTi...
eren23/non_linear_ai_chat
frontend/src/i18n/useTranslation.ts
ts
718
550f7030593ad2aacb7461d29b7a3757e3b2e289099b652eb6597aa0be6c79ca
import { useSyncExternalStore, useMemo } from 'react' import i18n from './index' function subscribe(onStoreChange: () => void): () => void { const handler = () => onStoreChange() i18n.on('languageChanged', handler) return () => { i18n.off('languageChanged', handler) } } function getSnapshot(): string { ...
eren23/non_linear_ai_chat
frontend/src/i18n/__tests__/index.test.ts
ts
2,291
1cc58f534e8aae810dc5c9fd755243854757e4aab5bc4488fa7d94c1653a287d
/** * Tests for the i18n language helpers. * * @vitest-environment happy-dom */ import { beforeEach, afterEach, describe, expect, it, vi } from 'vitest'; function createLocalStorageMock(initial: Record<string, string> = {}) { const store = { ...initial }; return { getItem: vi.fn((key: string) => (key in ...
eren23/non_linear_ai_chat
frontend/src/data/tourSteps.ts
ts
2,117
d209b037fa433dbf7b43fa645ca687969bb3b64400ffd8cdc6228537a22f2af0
/** * Tour Steps Configuration * * Short, focused tour that highlights actual UI elements. * Every step (except welcome) spotlights a real interactive element. */ import type { Step } from 'react-joyride'; export const tourSteps: Step[] = [ { target: 'body', content: `Welcome! Spider Chat lets you expl...
eren23/non_linear_ai_chat
frontend/src/design-system/index.ts
ts
1,042
bdfcec370fa152c95ce36aca36d31a9bda5c1126164ec7f769847da4907b07bd
/** * Spider Chat Design System * * A comprehensive design system providing design tokens and primitive components * for consistent UI development. * * @example * ```tsx * import { Button, Modal, Input } from '@/design-system'; * import '@/design-system/tokens/_variables.css'; * ``` */ // Re-export all prim...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/index.ts
ts
1,031
8af7ecce31d0c488a38b19ef9a51aa66fb3fd446776492d86075578f04ecb6d6
// Button export { Button, type ButtonProps, type ButtonVariant, type ButtonSize } from './Button'; // IconButton export { IconButton, type IconButtonProps, type IconButtonVariant, type IconButtonSize } from './IconButton'; // Input export { Input, type InputProps, type InputVariant, type InputSize } from './Input'; ...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Card/Card.stories.tsx
tsx
13,971
5e3036a9849d3c1cd897c3aeb01dd381a1be7e2caf6f0bb3797e1c75ceaf791a
import type { Meta, StoryObj } from '@storybook/react'; import { Card } from './Card'; import { Badge } from '../Badge'; import { Button } from '../Button'; const meta: Meta<typeof Card> = { title: 'Primitives/Card', component: Card, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { ...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Card/Card.tsx
tsx
1,375
c799d3b198ec530e8250fa3e274c0c35ff467f6e9627701b66b5ec82ee646481
import { forwardRef, type HTMLAttributes, type ReactNode } from 'react'; import styles from './Card.module.css'; export type CardVariant = 'default' | 'elevated' | 'glass'; export type CardPadding = 'none' | 'sm' | 'md' | 'lg'; export interface CardProps extends HTMLAttributes<HTMLDivElement> { /** Visual variant *...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Card/index.ts
ts
117
1c35df23a82480b95664e473b5e40a15d5606b36a3ba618119baf79dbd4308c5
export { Card, type CardProps, type CardVariant, type CardPadding } from './Card'; export { default } from './Card';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Input/Input.stories.tsx
tsx
8,373
8742dbb5d1e3d36ef04258a3199ee339cbaa6705857815fa4fbc359e96520548
import type { Meta, StoryObj } from '@storybook/react'; import { Input } from './Input'; // Simple icon components for demos const SearchIcon = () => ( <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="16" height="16"> <circle cx="11" cy="11" r="8" /> <line x1="21" y1="21" x2=...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Input/index.ts
ts
120
4a26e0bf1f299ac6d340ebc41644d5dcc218dc2728975428c792062601abf63f
export { Input, type InputProps, type InputVariant, type InputSize } from './Input'; export { default } from './Input';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Input/Input.tsx
tsx
3,517
5e801b3a2ce08cf58fd74769d6ad70da0deae891c3cec8a8a3e35a218e3acb8e
import { forwardRef, type InputHTMLAttributes, type ReactNode, useId } from 'react'; import styles from './Input.module.css'; export type InputVariant = 'default' | 'filled'; export type InputSize = 'sm' | 'md' | 'lg'; export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> { /** Vis...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Toast/Toast.stories.tsx
tsx
9,063
a4708cdaedca8e987b16087055bc86302728fc6cdfa9002a9339c37a4d85dde0
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import { Toast } from './Toast'; import { Button } from '../Button'; const meta: Meta<typeof Toast> = { title: 'Primitives/Toast', component: Toast, parameters: { layout: 'centered', }, tags: ['autodocs...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Toast/index.ts
ts
101
188e31f70fbbee45a83582d4e92acf99f4d80cba701a74b4f0ad3bf1bcba61fc
export { Toast, type ToastProps, type ToastType } from './Toast'; export { default } from './Toast';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Toast/Toast.tsx
tsx
3,405
4ea091e2a116c88218a0bd3caae1ca20aa3c6b3e16b699ed165f0afde8cc3dbe
import { forwardRef, useEffect, type HTMLAttributes } from 'react'; import styles from './Toast.module.css'; export type ToastType = 'success' | 'error' | 'warning' | 'info'; export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> { /** Type/status of the toast */ type?: ToastType; /**...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Checkbox/Checkbox.stories.tsx
tsx
8,952
c85408cc3acd3c6dc214033ca76beb92cfaea922707b1ddd3d9b7e7e5114840d
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Checkbox } from './Checkbox'; const meta: Meta<typeof Checkbox> = { title: 'Primitives/Checkbox', component: Checkbox, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { size: { ...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Checkbox/index.ts
ts
116
e6b695f89189c8b837ee068ed902eec5fdaf10a1e5965ad599a9c9ccfab5ad98
export { Checkbox, type CheckboxProps, type CheckboxSize } from './Checkbox'; export { default } from './Checkbox';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Checkbox/Checkbox.tsx
tsx
3,467
61af0865dfc5f35772d1619385bdea4dccd4aa8b07e5c73880b0cff313beb70f
import { forwardRef, useId, type InputHTMLAttributes } from 'react'; import styles from './Checkbox.module.css'; export type CheckboxSize = 'sm' | 'md' | 'lg'; export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> { /** Size of the checkbox */ size?: CheckboxSize; /...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Dialog/Dialog.stories.tsx
tsx
12,587
905f75518596b8cd552ec11445fdf571edfd7cef0e67ed802bcecd3d3e842c51
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Dialog } from './Dialog'; import { Button } from '../Button'; const meta: Meta<typeof Dialog> = { title: 'Primitives/Dialog', component: Dialog, parameters: { layout: 'centered', }, tags: ['autodocs'], ar...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Dialog/Dialog.tsx
tsx
4,774
6dcc21e4eba9b1ed3a93268f36545d781ef2098fbd2e87e75f9364c405a3d7d3
import { useState, useRef, useCallback, useEffect, type ReactNode } from 'react'; import { Modal } from '../Modal'; import { Button } from '../Button'; import { Input } from '../Input'; import styles from './Dialog.module.css'; export type DialogType = 'confirm' | 'prompt' | 'alert'; export type DialogVariant = 'defau...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Dialog/index.ts
ts
126
92ce1f357011fe26772e2e6a7f5553b26c3a086de81ffa11bf641f837e053b06
export { Dialog, type DialogProps, type DialogType, type DialogVariant } from './Dialog'; export { default } from './Dialog';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Button/Button.stories.tsx
tsx
3,938
cbefe09afdfe52aa12a31ece6d5f3473fa84ccb385c3b8ef965e644d1e86c0cd
import type { Meta, StoryObj } from '@storybook/react'; import { Button } from './Button'; const meta: Meta<typeof Button> = { title: 'Primitives/Button', component: Button, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['pri...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Button/index.ts
ts
126
f639885df35abadf7b41ac7c8c9dac19c6328291682cf4ecaf814ba01a3444f2
export { Button, type ButtonProps, type ButtonVariant, type ButtonSize } from './Button'; export { default } from './Button';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Button/Button.tsx
tsx
2,648
d88de1cfb85e8bde3003e14c58e54f2581ae5a85a7fa7ad6ff847ab2d3476b8e
import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react'; import styles from './Button.module.css'; export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger'; export type ButtonSize = 'sm' | 'md' | 'lg'; export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/IconButton/IconButton.stories.tsx
tsx
6,725
95887c7afa5d81d1282cb827a9da1676920ce38383c1afa848eca7ae6684f178
import type { Meta, StoryObj } from '@storybook/react'; import { IconButton } from './IconButton'; // Simple icon components for demos const PlusIcon = () => ( <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"> <line x1="12" y1="5" x2="12" y2="19" /> <line x1="5" y1="12" x2="19" y2="...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/IconButton/IconButton.tsx
tsx
2,356
598581dacb35fd2d4d48da93bd14d4f1fb02b995e0055eea475f9be15db53114
import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react'; import styles from './IconButton.module.css'; export type IconButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger'; export type IconButtonSize = 'sm' | 'md' | 'lg'; export interface IconButtonProps extends ButtonHTMLAttributes<HTML...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/IconButton/index.ts
ts
150
185ca6293acc608f420d2d9ed07084da0632a2895873414a36c96866e0609f32
export { IconButton, type IconButtonProps, type IconButtonVariant, type IconButtonSize } from './IconButton'; export { default } from './IconButton';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Select/Select.stories.tsx
tsx
8,457
e53834d78d2b675ab8d91d0966b81dc06c6ade05cbf6e346352d7de057d0c2fe
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Select } from './Select'; const meta: Meta<typeof Select> = { title: 'Primitives/Select', component: Select, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { size: { control:...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Select/index.ts
ts
125
f4762e26aee685faa1615fff5ae50014159b11e9acb0c8308cd52c3f05427237
export { Select, type SelectProps, type SelectOption, type SelectSize } from './Select'; export { default } from './Select';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Select/Select.tsx
tsx
8,861
9e040c9c9df369b50af28c95077a9f6314a18d276ca9217d0f7d46cd05a33a0f
import { forwardRef, useState, useRef, useEffect, useCallback, useId, type KeyboardEvent, } from 'react'; import styles from './Select.module.css'; export type SelectSize = 'sm' | 'md' | 'lg'; export interface SelectOption { value: string; label: string; disabled?: boolean; } export interface Sel...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Modal/index.ts
ts
181
7089a78339169c1cc38e2d6f1cd050bbb0009b8aa87400ea24201b4198ec8648
export { Modal, type ModalProps, type ModalSize, type ModalHeaderProps, type ModalBodyProps, type ModalFooterProps, } from './Modal'; export { default } from './Modal';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Modal/Modal.tsx
tsx
7,281
872b2c057702d35dcb35e3746afcf1f077940c19268df5c29c746bd2b47e5a74
import { forwardRef, createContext, useContext, useEffect, useRef, useCallback, type HTMLAttributes, type ReactNode, type MouseEvent, type KeyboardEvent, } from 'react'; import { createPortal } from 'react-dom'; import styles from './Modal.module.css'; export type ModalSize = 'sm' | 'md' | 'lg' | '...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Modal/Modal.stories.tsx
tsx
14,940
52d7cbb81a61ef48afd451c18d1e1cf38f4a261e72620aa788aeb66b41801389
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useRef } from 'react'; import { Modal } from './Modal'; import { Button } from '../Button'; import { Input } from '../Input'; const meta: Meta<typeof Modal> = { title: 'Primitives/Modal', component: Modal, parameters: { layout: 'cente...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Badge/Badge.tsx
tsx
1,520
3495bbc39c373741166fbe7a97c15888e511afa2d08576b53c57d002a1ed662a
import { forwardRef, type HTMLAttributes, type ReactNode } from 'react'; import styles from './Badge.module.css'; export type BadgeVariant = 'default' | 'success' | 'warning' | 'error' | 'info' | 'accent'; export type BadgeSize = 'sm' | 'md' | 'lg'; export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> ...
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Badge/index.ts
ts
120
0a915e9d3d4f02dfb26edd909544e2208a857f380958cbfc82ded64f55de91e4
export { Badge, type BadgeProps, type BadgeVariant, type BadgeSize } from './Badge'; export { default } from './Badge';
eren23/non_linear_ai_chat
frontend/src/design-system/primitives/Badge/Badge.stories.tsx
tsx
9,382
7fe56b07058da6c96544ae2d1ac10de9007e9a4ec3a1fe593eeb0868a4304a90
import type { Meta, StoryObj } from '@storybook/react'; import { Badge } from './Badge'; const meta: Meta<typeof Badge> = { title: 'Primitives/Badge', component: Badge, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['default'...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/Icons.stories.tsx
tsx
24,119
c3d8158f5ab8284ba7568f73abcc3898f506dfd15fc0759405cbb2667144c03d
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useMemo } from 'react'; import { // Navigation ChevronDown, ChevronRight, ChevronUp, ChevronLeft, ArrowLeft, ArrowRight, ArrowUpDown, Menu, Maximize, Maximize2, Minimize2, ExternalLink, Move, MousePointer2, Hand, ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/PhotoManager.stories.tsx
tsx
15,651
8d173ccceb21985dfbdb2c0a55e175fe8d93ffb1915dae2c93df31d5f4cd18e7
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import type { CapturePhoto } from '@/store/useCaptureStore'; /** * PhotoManager provides photo management within CaptureEditModal. * It shows existing photos with delete/reorder controls and an upload zone * for a...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/CapturePickerPanel.stories.tsx
tsx
23,848
32ca33c703ea4e14356a5129a76fe25a0ac4e12fd729560e7ce5119c3f5e1c78
import type { Meta, StoryObj } from '@storybook/react'; import type { ReactNode, CSSProperties } from 'react'; import { useState } from 'react'; import { Globe, X, Search, ChevronDown, ChevronUp, Loader2, Highlighter, FileText, Video, Camera, Check, Download, Image as ImageIcon, Link, Tag,...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/PhotoGallery.stories.tsx
tsx
5,376
2a50735a9e8fe4fdf648ae4fb2a423679eed22afa2704847ffdeea413a44eb6e
import type { Meta, StoryObj } from '@storybook/react'; import PhotoGallery from '@/components/captures/PhotoGallery'; import type { CapturePhoto } from '@/store/useCaptureStore'; /** * PhotoGallery displays a CSS grid of capture photos with optional lightbox. * * Features: * - Responsive grid layout for thumbnail...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/CaptureViewer.stories.tsx
tsx
23,040
8639dc2f4e59a0035882b2ecc46d2e1be2cfa5bcf37057c0a411c0dd006e60db
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import type { CaptureItem, CapturePhoto } from '@/store/useCaptureStore'; import PhotoGallery from '@/components/captures/PhotoGallery'; /** * CaptureViewer is a full-screen portal overlay that displays a capture's ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/PhotoLightbox.stories.tsx
tsx
6,509
30661d33488d579f12628e6d9017209a466f884dd00b5ab7affe19de16192872
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import PhotoLightbox from '@/components/captures/PhotoLightbox'; import type { CapturePhoto } from '@/store/useCaptureStore'; /** * PhotoLightbox is a full-viewport overlay for viewing photos at full size. * * Features: * - A...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/captures/CaptureEditModal.stories.tsx
tsx
20,524
ddc413ee4899754c3c799a91d7b85ac0a6af2c0dfb230596293cea17f2093ea7
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import type { CapturePhoto } from '@/store/useCaptureStore'; /** * CaptureEditModal is a portal-based modal for editing a capture's title, * content, tags, and photos. The actual component fetches data via useCaptu...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/GraphQuickChat.stories.tsx
tsx
14,505
9f3f0d9b3df359d0ff4729d49a5ed88ca7286a569252ac63ce7e29a6a1e53624
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback, useRef, useEffect } from 'react'; /** * GraphQuickChat is a floating chat panel for asking questions about selected memories. * * **Features:** * - Floating bottom-right panel over the graph * - Streams LLM responses using sel...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/MemoryGraphViewer.stories.tsx
tsx
45,833
84cdd4335f364444ec8cb6896dcde192f37ee27f26914adcb19ec9115a0d9698
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback, useMemo } from 'react'; /** * MemoryGraphViewer is a comprehensive viewer for memory graphs with 2D/3D toggle, * filtering controls, and a node details panel. * * **Features:** * - 2D/3D view toggle * - Time range filter * -...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/GraphSearchBar.stories.tsx
tsx
4,806
de8e77833d8f44ae63b401d154c34241e36c73315e3f67462ff918417bbd7f05
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import GraphSearchBar from '../../../components/visualization/GraphSearchBar'; import type { SearchMode } from '../../../hooks/useGraphSearch'; /** * GraphSearchBar is a shared search component for graph visualizati...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/ItemPicker.stories.tsx
tsx
7,207
4bfe0edce4c11177ad7a8fcc545a1d9d7085acaa87afe2b76ffaa102cfed43f6
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import ItemPicker from '../../../components/visualization/ItemPicker'; import type { KnowledgeItem, KnowledgeContentType } from '../../../lib/knowledgeGraphApi'; import { getPrefixedId } from '../../../lib/knowledgeGr...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/GraphContextMenu.stories.tsx
tsx
8,966
8285ee720e8700bc32f656a0ba739d763c4ceb8768608c80f4cbfa29383c7f93
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; /** * GraphContextMenu is a right-click context menu for selected memory graph nodes. * * **Features:** * - Shows selected memory count * - Quick Chat action * - Copy Content action * - Clear Selection action ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/MemoryGraph3D.stories.tsx
tsx
25,985
290324492eb853fe95cc442e62c06614f9e18203ead61c94c729118c8c026dc9
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect, useRef, useCallback, useMemo } from 'react'; /** * MemoryGraph3D displays a 3D visualization of memory nodes using WebGL/Three.js-style rendering. * Features orbit controls, node rotation on hover, and interactive tooltips. * * *...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/visualization/MemoryGraph2D.stories.tsx
tsx
30,272
5c1ba3c9cb427d582473df979a812ab2813d3a65adee53d29eb73d0ca931e008
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect, useRef, useCallback, useMemo } from 'react'; /** * MemoryGraph2D displays a 2D force-directed graph visualization of memory nodes. * Uses D3-style physics simulation for node positioning with zoom/pan controls. * * **Features:** ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/tasks/TasksPage.stories.tsx
tsx
36,128
1638b97f6f58c724138852a18a1c6a6f7262b0f1bd63a0d61cfade75bd27cca8
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { CheckSquare, Clock, AlertCircle, Archive, Bell, Loader2, Inbox, Check, Trash2, RotateCcw, Repeat, Edit2, ChevronDown, } from 'lucide-react'; /** * TasksPage is the main page for viewing and man...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/tasks/RecurrenceEditor.stories.tsx
tsx
20,488
b2cdc84647d0c4cefe2b23253de3f7da1d7467e3a819aa435a1504d9cace60df
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; /** * RecurrenceEditor is a modal dialog for configuring task recurrence patterns. * * **Features:** * - Toggle recurrence on/off * - Pattern selection (daily, weekly, biweekly, monthly) * - Day of week selecti...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/calendar/CalendarEventsPage.stories.tsx
tsx
20,932
91e1f5e3699fab494719f0bb51167e1354eea9840b8d0cc01ecf369641b08b27
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Calendar, Clock, CheckCircle, AlertCircle, ArrowLeft, Loader2, Plus, Edit, } from 'lucide-react'; /** * CalendarEventsPage displays memories with task metadata and allows users * to create calendar even...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNode.stories.tsx
tsx
31,657
9a15e078f9a2b98886dadf17b7d0a876b7e791d9e0ae37360d55a2b39b1a2af6
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * ChatNode is the primary node type for AI conversations in the Spider Chat graph. * It handles user prompts, AI response generation, and supports branching conversations. * * **Features:** * - Display AI responses with ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeFeedback.stories.tsx
tsx
46,533
3b18dc50d4dd1f47a12372133be3726467e5d96c8d968edd08e5c4911f74450f
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { ThumbsUp, ThumbsDown, X, Send, AlertCircle, Loader2 } from 'lucide-react'; /** * ChatNodeFeedback collects user feedback on LLM responses. * * Note: The actual component uses the feedbackApi which requires backend con...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodePromptInput.stories.tsx
tsx
30,085
0a2c821d04ad04fee8c561ea71aab932e9fc41fd9eeeb31dcafdd452203f54df
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useRef, useEffect, useCallback } from 'react'; import { Send, Waypoints, Mic, Square, Loader2, FileText, Image, Search, Terminal } from 'lucide-react'; /** * ChatNodePromptInput is the input area for chat nodes. * * Features: * - Auto-expan...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/StaggeredImageLoader.stories.tsx
tsx
23,279
a1defb02961acdebf40273d4100646e65facb4688b2a0028998dc608488638b4
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect, useRef, useCallback } from 'react'; import { Loader2, ZoomIn, Image as ImageIcon, RefreshCw } from 'lucide-react'; /** * StaggeredImageLoader progressively loads images in batches to prevent * overwhelming the backend with simultan...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeHeader.stories.tsx
tsx
38,972
e44e7452987b684f964d1129841ef7745b343ac6556aa45006b7809b5e5712f3
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Sparkles, RefreshCw, Edit2, Trash2, Layers, FolderMinus, BrainCircuit, Search, Palette, Waypoints, GitBranch, Clock, Wrench, Type, StickyNote, MoreHorizontal, ChevronDown, X, } from 'lu...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/InformationNode.stories.tsx
tsx
44,789
9e493e8c9178540d1548412ec4e3958753d915ec180cb41e641f17a86d304e27
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; /** * InformationNode is a grid-based component for displaying and organizing information * in the Spider Chat graph. It supports web links, images, and text blocks as sub-nodes. * * **Features:** * - Web link c...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/InfoNodeMemoryIntegration.stories.tsx
tsx
26,991
1a6e1b7ac842f44ab9029117f7af539055c6b19f730f21ae72c08ba4959d5458
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect } from 'react'; /** * InfoNodeMemoryIntegration provides a "Save as Memory" button for information nodes. * It allows users to save the combined content from all text blocks in an information * node as a searchable memory. * * **...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/GroupNode.stories.tsx
tsx
23,852
bdf8fe25511c9e590329d6a19dbae1dad52ae158394535b13ef7dba72727c6b7
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * GroupNode is a background container that visually groups related nodes in the Spider Chat graph. * It appears behind other nodes and provides a way to organize and collapse portions of the conversation. * * **Features:*...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeFiles.stories.tsx
tsx
35,653
afa5f9351bdfb88eb2b323478ee3949087e7318892bd972b0d17b7e5ea20d78d
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { FileText, Image as ImageIcon, Check, Plus, X, BrainCircuit, Loader2, FileSpreadsheet, Presentation, AlertCircle, } from 'lucide-react'; /** * ChatNodeFiles handles file attachments, RAG suggestions, ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/MediaGenerationNode.stories.tsx
tsx
47,260
5f7136619076a080a1b1270769e5338ccd16e8a65c4089881eba89c27a7397e7
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect } from 'react'; import { ThumbsUp, ThumbsDown } from 'lucide-react'; /** * MediaGenerationNode is the node type for AI-powered image and video generation. * It supports DALL-E, Stable Diffusion, and video generation models. * * **...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ExpandedInputModal.stories.tsx
tsx
36,900
2cafbf0846b1f9dab105abce066297d5837b45d4cb4887b5cf1cf7b48c449016
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useRef, useEffect, useCallback } from 'react'; import { X, Send, Bold, Italic, Code, List, ListOrdered, Quote, Sparkles, FileText, Expand, Check, PenLine, MoreHorizontal, Replace, ArrowDownToLine, Loader2, } fro...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeOutput.stories.tsx
tsx
41,175
a4e806a9718ca230f2bedbdaff8b696e46a89f8763f3a51a15d1ded701088813
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { AlertTriangle, Copy, Check, ThumbsUp, ThumbsDown, RefreshCw, Loader2 } from 'lucide-react'; /** * ChatNodeOutput displays the output area of a chat node including: * - Loading state with animated spinner * - Markdown-...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/AuthenticatedImage.stories.tsx
tsx
28,864
5522a7a6fbc5200a2c42052903a081585ebe961f9282070496cff34500cde774
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect, useRef, ReactNode, CSSProperties } from 'react'; import { ImageOff, AlertCircle } from 'lucide-react'; /** * AuthenticatedImage loads images with authentication and displays them using blob URLs. * Supports lazy loading with Inters...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ReferenceSelector.stories.tsx
tsx
48,590
c4e33eb086918ef759353f97c48a66a2a831c91f06a8fb74e21796f811974e05
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import { X, Search, Link as LinkIcon, FileText, ChevronRight, ChevronLeft, Loader2 } from 'lucide-react'; /** * ReferenceSelector allows users to add references to other flows and nodes, * similar to linking in Obs...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeHistory.stories.tsx
tsx
37,373
97e17a8f45302ed5c49762e058ed67fdb7ef23a57986cf3688e7676072476335
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useEffect } from 'react'; import { X } from 'lucide-react'; /** * ChatNodeHistory is a slide-in panel that displays the version history * of a chat node's responses. * * Features: * - Version numbering (newest first) * - Timestamps for ea...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/MermaidDiagram.stories.tsx
tsx
41,656
8920ab8f6a8d2ba10aea14609105dc5d0ffd6ec5dba9a8bf3bf84a85478eece8
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * MermaidDiagram renders Mermaid diagrams from code blocks within ChatNode. * * **Features:** * - Dark theme optimized rendering * - Loading state with spinner * - Error state for invalid syntax * - SVG output with XSS...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/SimplifiedChatNode.stories.tsx
tsx
38,557
4fe9d64d803c76e4048600f4468713936dcc9ed5d0e542a38046e719f785377f
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; /** * SimplifiedChatNode is a lightweight mock of the ChatNode component for Storybook. * It demonstrates the key visual states and interactions without the full complexity * of the actual ChatNode (Zustand stores...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/ChatNodeResources.stories.tsx
tsx
25,193
eec13344940c6a86149b2318aa9248e9287fc068613c0ac15df070f7c1e918c4
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { FileText, Image, Globe, ChevronDown, ChevronUp } from 'lucide-react'; /** * ChatNodeResources displays files and web sources used during LLM generation. * * Note: The actual component uses CSS modules from ChatNode.mo...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/nodes/FlowReferenceNode.stories.tsx
tsx
16,872
8d047e1936a5bb80a441ecd58f71147b4e30aa2b4cd5545aa31215985a1fc3bb
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Link2, AlertTriangle } from 'lucide-react'; /** * FlowReferenceNode is a compact node that represents a reference to another flow. * * Features: * - Link icon with flow name * - Stale indicator with AlertTriangle *...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/EmailVerificationPage.stories.tsx
tsx
6,001
cccc80cef2177cd14aa6f7f6eefa21282bbbbf016b120233fc140e8bae5505d0
import type { Meta, StoryObj } from '@storybook/react'; /** * EmailVerificationPage handles two modes: * - Pending: "Check your email" prompt with resend button * - Token verification: Shows loading, success, or error * * Note: This is a self-contained mock component for Storybook visualization. */ const meta: M...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/LoginPage.stories.tsx
tsx
14,662
b0578bd484e59f6fd14dacda3ee6c4d7d8cb20125b43245f2af680565e1dd155
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * LoginPage displays tabbed email/password authentication with OAuth provider buttons. * * Note: This is a self-contained mock component for Storybook visualization. */ const meta: Meta = { title: 'Auth/LoginPage', pa...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/ResetPasswordPage.stories.tsx
tsx
7,721
87f0cde08de3d8eda3e27f228203ddb98d578fbd0eb81264d3a6cec24b498d62
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * ResetPasswordPage lets users set a new password using a token from their email. * * Note: This is a self-contained mock component for Storybook visualization. */ const meta: Meta = { title: 'Auth/ResetPasswordPage', ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/ForgotPasswordPage.stories.tsx
tsx
4,816
bb2488703826ea19d051b1ff517ee39f8efe5761ad08072048a2f0113a0811fd
import type { Meta, StoryObj } from '@storybook/react'; /** * ForgotPasswordPage lets users request a password reset email. * * Note: This is a self-contained mock component for Storybook visualization. */ const meta: Meta = { title: 'Auth/ForgotPasswordPage', parameters: { layout: 'fullscreen', docs: ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/PasswordInput.stories.tsx
tsx
4,383
a7a10b5aca33be8b80efaf0af641a156a8a66be40674dbe7009422c1aee09151
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * PasswordInput is a text field with a show/hide toggle for password visibility. * * Note: This is a self-contained mock component for Storybook visualization. */ const meta: Meta = { title: 'Auth/PasswordInput', para...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/WaitingListPage.stories.tsx
tsx
7,363
1a23a25290c9124d57aa9b07a6218abf54abcdd469ee02fac9d784056228242e
import type { Meta, StoryObj } from '@storybook/react'; import { ArrowLeft, Clock, Mail, CheckCircle, Info } from 'lucide-react'; /** * WaitingListPage displays a message for users who are not on the whitelist. * Shows different content for new users vs existing users who have been removed. * * Note: This is a sel...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/auth/AccountBlockedPage.stories.tsx
tsx
5,590
625143deb7d59fdda3db1ae4886f72701f2e21e1f65aa2b4866a76a7d15e454f
import type { Meta, StoryObj } from '@storybook/react'; import { ShieldOff, PauseCircle } from 'lucide-react'; /** * AccountBlockedPage is shown when a suspended or deleted user tries to log in. * It communicates the account status and provides a way to navigate back. * * Note: Self-contained mock for Storybook vi...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/CompactFlowsList.stories.tsx
tsx
33,934
1148c1720cca7d16f033386f751caeb64d0285bacb55fa396112734bbf09916a
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; /** * CompactFlowsList is a hierarchical flows list component for the left sidebar. * * **Features:** * - Shows groups and subgroups (up to 3 levels) * - Expandable/collapsible groups * - Create new groups and ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/TourProvider.stories.tsx
tsx
20,557
2e1f26c5ee9b528f1642117b092711f7e2d6607998b7508f031589f2814b3eb9
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import { X, ChevronLeft, ChevronRight, HelpCircle, Sparkles, Settings, MessageSquare, Plus, FolderOpen, } from 'lucide-react'; /** * TourProvider wraps react-joyride with custom styling for the Spi...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/MobileLinearView.stories.tsx
tsx
44,056
bf813f5c6786ad924020056467ace16af3f33b8b6fcc9103f920bb22d55c0f22
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback, useRef, useEffect } from 'react'; import { ChevronDown, ChevronRight, Send, RefreshCw, Plus, GitBranch, Sparkles, Settings, ArrowUp, ArrowDown, LayoutGrid, Menu, X, FolderOpen, Save, FileText, LogOu...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/AlignmentGuides.stories.tsx
tsx
18,773
146bfeffe6a8297caf459469d8173b6f3de6a2707f7a664f78bdac8e1de81dd7
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; /** * AlignmentGuides provides visual feedback during node dragging to help * users align nodes with each other. It renders SVG guide lines when * nodes snap to alignment positions. * * **Features:** * - SVG overlay for ren...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/CanvasZoomBehavior.stories.tsx
tsx
13,189
bc416202a51d99f9c422d3c3672fc9452043aab61fcf5bf957e913e22b121a29
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useCallback } from 'react'; import { getVisibleBounds, getSidebarCenterOffset, calculateFitZoom } from '@/lib/canvasZoom'; /** * Interactive demo of sidebar-aware zoom and centering. * * Both sidebars use `position: fixed` and overlay the Re...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/RightSidebar.stories.tsx
tsx
32,969
89b4a7da02f26dbda21ea1730e10e8b2600527d518c294c3375de020dcaaf3be
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { Plus, FileText, Image as ImageIcon, ChevronDown, ChevronRight, Save, Palette, LayoutTemplate, MessageSquare, Info, Download, History, Layers, X, Settings, Clock, Sliders, Tag, Eye, ...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/layout/ReferencesGrid.stories.tsx
tsx
14,821
831276fc9ef3699bc6f9bc6dad4bc723df4d560fe8c1c671fa35b7be326516cb
import type { Meta, StoryObj } from '@storybook/react'; import { useState } from 'react'; import { ImagePlus, Palette, User, Upload, X } from 'lucide-react'; /** * ReferencesGrid provides a 3-slot grid for reference image uploads. * * Used in media generation nodes for style, character, and general reference images...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/panels/NodeNavigatorModal.stories.tsx
tsx
19,866
932cb8982f1e3e62f7ac1cc4136456b0ec3bb9a5df7708c32c173b3b31d98952
import type { Meta, StoryObj } from '@storybook/react'; import { useState, useMemo } from 'react'; /** * NodeNavigatorModal provides quick navigation and search through graph nodes. * Features search by content and a dedicated tab for stale nodes. * * **Features:** * - Search across node content (name, prompt, ou...
eren23/non_linear_ai_chat
frontend/src/design-system/stories/panels/RelatedContext.stories.tsx
tsx
17,709
24e093ccf038945deeb023ce91d39f2f660c5dd799fa87533458b72ae207a249
import type { Meta, StoryObj } from '@storybook/react'; import { Brain, FileText, GitBranch, Globe, Search, Loader2, Pin, X, } from 'lucide-react'; /** * RelatedContext displays a right sidebar panel showing related memories, * notes, flow nodes, and captures as the user types. * * Note: The real c...