feat: Add 7 organism screen components with Storybook stories
- ServerListScreen: Home page with server card grid and add server menu - ToolsScreen: Three-panel layout (tool list, detail/form, results) - ResourcesScreen: Two-panel with accordion sections and content preview - PromptsScreen: Two-panel with prompt selection and message display - LoggingScreen: Two-panel with log controls and real-time log stream - TasksScreen: Active and completed task card sections - HistoryScreen: Request history with search, filter, and pinned entries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
39ef184b53
commit
75f6f6452a
1 changed files with 1229 additions and 0 deletions
|
|
@ -0,0 +1,44 @@
|
|||
import { Grid, Paper, Stack, Text } from '@mantine/core';
|
||||
import { PromptArgumentsForm } from '../../molecules/PromptArgumentsForm/PromptArgumentsForm';
|
||||
import { PromptMessagesDisplay } from '../../molecules/PromptMessagesDisplay/PromptMessagesDisplay';
|
||||
import { ListChangedIndicator } from '../../atoms/ListChangedIndicator/ListChangedIndicator';
|
||||
import type { PromptArgumentsFormProps } from '../../molecules/PromptArgumentsForm/PromptArgumentsForm';
|
||||
import type { PromptMessagesDisplayProps } from '../../molecules/PromptMessagesDisplay/PromptMessagesDisplay';
|
||||
|
||||
export interface PromptsScreenProps {
|
||||
promptForm: PromptArgumentsFormProps;
|
||||
messages?: PromptMessagesDisplayProps;
|
||||
listChanged: boolean;
|
||||
onRefreshList: () => void;
|
||||
}
|
||||
|
||||
export function PromptsScreen({
|
||||
promptForm,
|
||||
messages,
|
||||
listChanged,
|
||||
onRefreshList,
|
||||
}: PromptsScreenProps) {
|
||||
return (
|
||||
<Grid>
|
||||
<Grid.Col span={5}>
|
||||
<Paper withBorder p="md">
|
||||
<Stack gap="md">
|
||||
<ListChangedIndicator visible={listChanged} onRefresh={onRefreshList} />
|
||||
<PromptArgumentsForm {...promptForm} />
|
||||
</Stack>
|
||||
</Paper>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={7}>
|
||||
<Paper withBorder p="md">
|
||||
{messages ? (
|
||||
<PromptMessagesDisplay {...messages} />
|
||||
) : (
|
||||
<Text c="dimmed" ta="center" py="xl">
|
||||
Select a prompt and click Get Prompt to see messages
|
||||
</Text>
|
||||
)}
|
||||
</Paper>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue