refine UI layout, stories, and component consistency across screens
Add HistoryActive and other missing stories to ConnectedLayout, wrap HistoryScreen and TasksScreen in consistent Container/Paper layout, add copy button to MessageBubble, and clean up various component props. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f674ce0c22
commit
bca31d1d3c
1 changed files with 321 additions and 88 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Button, Container, Group, Stack, Text, Title } from "@mantine/core";
|
||||
import { Button, Container, Group, Paper, Stack, Text, Title } from "@mantine/core";
|
||||
import { TaskCard } from "../../molecules/TaskCard/TaskCard";
|
||||
import type { TaskCardProps } from "../../molecules/TaskCard/TaskCard";
|
||||
|
||||
|
|
@ -17,14 +17,14 @@ export function TasksScreen({
|
|||
}: TasksScreenProps) {
|
||||
return (
|
||||
<Container size="xl" py="xl">
|
||||
<Paper withBorder p="md">
|
||||
<Stack gap="lg">
|
||||
<Group justify="flex-end">
|
||||
<Button variant="dark" onClick={onRefresh}>
|
||||
<Group justify="space-between">
|
||||
<Title order={4}>Active Tasks ({activeTasks.length})</Title>
|
||||
<Button variant="light" size="xs" onClick={onRefresh}>
|
||||
Refresh Tasks
|
||||
</Button>
|
||||
</Group>
|
||||
|
||||
<Title order={4}>Active Tasks ({activeTasks.length})</Title>
|
||||
{activeTasks.length === 0 ? (
|
||||
<Text c="dimmed">No active tasks</Text>
|
||||
) : (
|
||||
|
|
@ -53,6 +53,7 @@ export function TasksScreen({
|
|||
</Stack>
|
||||
)}
|
||||
</Stack>
|
||||
</Paper>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue