feat: Add Mantine theme, 12 atom components, and 25 molecule components with Storybook stories

- Mantine theme with component extensions (Badge, Card, Paper, Button, etc.)
- CSS custom properties for design tokens (--inspector-* vars)
- Dark/light mode support with auto detection
- 12 atoms: StatusIndicator, AnnotationBadge, CapabilityItem, LogEntry,
  ProgressDisplay, ContentViewer, ListChangedIndicator, CopyButton,
  ConnectionToggle, TransportBadge, InlineError, MessageBubble
- 25 molecules: ServerCard, AddServerMenu, SchemaForm, ToolListItem,
  ToolDetailPanel, ResultPanel, ResourceListItem, ResourcePreviewPanel,
  ResourceTemplateInput, PromptArgumentsForm, PromptMessagesDisplay,
  LogControls, TaskCard, HistoryEntry, ServerInfoContent, ServerSettingsForm,
  RootsTable, SamplingRequestPanel, ElicitationFormPanel, ElicitationUrlPanel,
  InlineSamplingRequest, InlineElicitationRequest, PendingClientRequests,
  ImportServerJsonPanel, ExperimentalFeaturesPanel
- Exclude storybook-static from version control
- Exclude .stories.tsx from app tsconfig (Storybook-only modules)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
cliffhall 2026-03-17 10:23:56 -04:00
commit 39ef184b53

View file

@ -0,0 +1,94 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import { fn } from 'storybook/test';
import { TaskCard } from './TaskCard';
const meta: Meta<typeof TaskCard> = {
title: 'Molecules/TaskCard',
component: TaskCard,
args: {
onViewDetails: fn(),
onViewResult: fn(),
onCancel: fn(),
onDismiss: fn(),
},
};
export default meta;
type Story = StoryObj<typeof TaskCard>;
export const Running: Story = {
args: {
taskId: 'task-abc-123',
status: 'running',
method: 'tools/call',
target: 'generate_report',
progress: 80,
progressDescription: 'Generating report section 4 of 5...',
startedAt: '2026-03-17T10:30:00Z',
elapsed: '2m 15s',
},
};
export const RunningWithProgress: Story = {
args: {
taskId: 'task-def-456',
status: 'running',
method: 'tools/call',
target: 'analyze_data',
progress: 45,
progressDescription: 'Analyzing dataset...',
startedAt: '2026-03-17T10:32:00Z',
elapsed: '30s',
},
};
export const Waiting: Story = {
args: {
taskId: 'task-ghi-789',
status: 'waiting',
method: 'resources/read',
target: 'file:///data/report.csv',
progress: 0,
startedAt: '2026-03-17T10:35:00Z',
},
};
export const Completed: Story = {
args: {
taskId: 'task-jkl-012',
status: 'completed',
method: 'tools/call',
target: 'generate_summary',
progress: 100,
startedAt: '2026-03-17T10:20:00Z',
completedAt: '2026-03-17T10:25:00Z',
elapsed: '5m 00s',
},
};
export const Failed: Story = {
args: {
taskId: 'task-mno-345',
status: 'failed',
method: 'tools/call',
target: 'fetch_remote_data',
progress: 45,
startedAt: '2026-03-17T10:28:00Z',
completedAt: '2026-03-17T10:29:30Z',
elapsed: '1m 30s',
error: 'Connection refused: upstream server not responding after 3 retries',
},
};
export const Cancelled: Story = {
args: {
taskId: 'task-pqr-678',
status: 'cancelled',
method: 'tools/call',
target: 'long_running_analysis',
progress: 30,
startedAt: '2026-03-17T10:15:00Z',
completedAt: '2026-03-17T10:18:00Z',
elapsed: '3m 00s',
},
};