refine UI layout, theming, and component consistency across screens

- Add MCP logo (light/dark variants) to ConnectedLayout header
- Replace Tabs with SegmentedControl in header, split into 1/3 sections
- Wrap all screens in Container for consistent margins
- Use Card instead of Paper for panel backgrounds across all screens
- Add SubscribeButton atom, CopyButton for resource URI
- Move annotations from ResourceListItem to ResourcePreviewPanel
- Improve AnnotationBadge colors for dark mode visibility
- Add Tools, Resources, and Prompts headers to list panels
- Add ConnectedLayout stories for Tools, Resources, and Prompts tabs
- Remove unused onCopy prop and copy button from PromptMessagesDisplay

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

View file

@ -1,4 +1,4 @@
import { Grid, Paper, Stack, Text } from "@mantine/core";
import { Card, Container, Grid, Stack, Text } from "@mantine/core";
import { PromptArgumentsForm } from "../../molecules/PromptArgumentsForm/PromptArgumentsForm";
import { PromptMessagesDisplay } from "../../molecules/PromptMessagesDisplay/PromptMessagesDisplay";
import { ListChangedIndicator } from "../../atoms/ListChangedIndicator/ListChangedIndicator";
@ -19,9 +19,10 @@ export function PromptsScreen({
onRefreshList,
}: PromptsScreenProps) {
return (
<Grid>
<Container size="xl" py="xl">
<Grid align="stretch">
<Grid.Col span={5}>
<Paper withBorder p="md">
<Card withBorder padding="lg" h="100%">
<Stack gap="md">
<ListChangedIndicator
visible={listChanged}
@ -29,10 +30,10 @@ export function PromptsScreen({
/>
<PromptArgumentsForm {...promptForm} />
</Stack>
</Paper>
</Card>
</Grid.Col>
<Grid.Col span={7}>
<Paper withBorder p="md">
<Card withBorder padding="lg" h="100%">
{messages ? (
<PromptMessagesDisplay {...messages} />
) : (
@ -40,8 +41,9 @@ export function PromptsScreen({
Select a prompt and click Get Prompt to see messages
</Text>
)}
</Paper>
</Card>
</Grid.Col>
</Grid>
</Container>
);
}