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:
parent
fcd0d156f4
commit
39ef184b53
1 changed files with 5895 additions and 102158 deletions
|
|
@ -0,0 +1,69 @@
|
|||
import { Badge, Button, Group, Paper, Stack, Text, Textarea } from '@mantine/core'
|
||||
|
||||
export interface InlineSamplingRequestProps {
|
||||
queuePosition: string
|
||||
modelHints?: string[]
|
||||
messagePreview: string
|
||||
responseText: string
|
||||
onAutoRespond: () => void
|
||||
onEditAndSend: () => void
|
||||
onReject: () => void
|
||||
onViewDetails: () => void
|
||||
}
|
||||
|
||||
export function InlineSamplingRequest({
|
||||
queuePosition,
|
||||
modelHints,
|
||||
messagePreview,
|
||||
responseText,
|
||||
onAutoRespond,
|
||||
onEditAndSend,
|
||||
onReject,
|
||||
onViewDetails,
|
||||
}: InlineSamplingRequestProps) {
|
||||
return (
|
||||
<Paper p="md" withBorder>
|
||||
<Stack gap="sm">
|
||||
<Group justify="space-between">
|
||||
<Badge color="blue">sampling/createMessage</Badge>
|
||||
<Text size="xs" c="dimmed">
|
||||
{queuePosition}
|
||||
</Text>
|
||||
</Group>
|
||||
|
||||
{modelHints && (
|
||||
<Text size="sm">Model hints: {modelHints.join(', ')}</Text>
|
||||
)}
|
||||
|
||||
<Text size="sm" c="dimmed" lineClamp={2}>
|
||||
{messagePreview}
|
||||
</Text>
|
||||
|
||||
<Button variant="subtle" size="xs" onClick={onViewDetails}>
|
||||
View Details
|
||||
</Button>
|
||||
|
||||
<Textarea
|
||||
size="sm"
|
||||
value={responseText}
|
||||
placeholder="Response..."
|
||||
autosize
|
||||
minRows={2}
|
||||
readOnly
|
||||
/>
|
||||
|
||||
<Group justify="flex-end" gap="xs">
|
||||
<Button size="xs" variant="light" onClick={onAutoRespond}>
|
||||
Auto-respond
|
||||
</Button>
|
||||
<Button size="xs" variant="light" onClick={onEditAndSend}>
|
||||
Edit & Send
|
||||
</Button>
|
||||
<Button size="xs" variant="light" color="red" onClick={onReject}>
|
||||
Reject
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
</Paper>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue