Phase 1: Style refinements and component tweaks from Storybook review
Theme & styling:
- Add custom "inspector" color palette with dark navy primary
- Change primaryShade to { light: 7, dark: 8 }
- Add Input theme override to apply --inspector-input-background globally
- Add --inspector-input-background token (white in light, dark-9 in dark)
- Override --mantine-color-body in dark mode via cssVariablesResolver
in both main.tsx and Storybook preview.tsx
- Add dark-mode CSS overrides for Select dropdown and option hover
- Add dark-mode CSS override for Accordion control hover
- Rename CSS variable --inspector-status-failed → --inspector-status-error
Component changes:
- CopyButton: increase icon font size to 24px, use --inspector-text-primary
for high-contrast color (black/white per theme)
- TaskControls: remove onClearHistory (moved to TaskListPanel), fix Select
clear button not disappearing by passing null instead of undefined
- TaskListPanel: add onClearCompleted callback, render "Clear" button
next to Completed section header
- HistoryListPanel: move "Clear" button from toolbar to History section
header, rename from "Clear All"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2d4fca4fa6
commit
658ef86944
1 changed files with 148 additions and 51 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Card, Flex, ScrollArea, Stack, Text } from "@mantine/core";
|
||||
import { Card, Flex, Group, ScrollArea, Stack, Text } from "@mantine/core";
|
||||
import { PromptControls } from "../../groups/PromptControls/PromptControls";
|
||||
import { PromptArgumentsForm } from "../../groups/PromptArgumentsForm/PromptArgumentsForm";
|
||||
import { PromptMessagesDisplay } from "../../groups/PromptMessagesDisplay/PromptMessagesDisplay";
|
||||
|
|
@ -47,6 +47,7 @@ const SidebarCard = Card.withProps({
|
|||
});
|
||||
|
||||
const DetailCard = Card.withProps({
|
||||
flex: 1,
|
||||
withBorder: true,
|
||||
padding: "lg",
|
||||
});
|
||||
|
|
@ -84,7 +85,7 @@ export function PromptsScreen({
|
|||
flex={1}
|
||||
mah="calc(100vh - var(--app-shell-header-height, 0px) - var(--mantine-spacing-xl) * 2)"
|
||||
>
|
||||
<Stack gap="md">
|
||||
<Group flex={1} gap="md" align="flex-start" wrap="nowrap">
|
||||
{selectedPrompt ? (
|
||||
<>
|
||||
<DetailCard>
|
||||
|
|
@ -108,7 +109,7 @@ export function PromptsScreen({
|
|||
<EmptyState>Select a prompt to view details</EmptyState>
|
||||
</DetailCard>
|
||||
)}
|
||||
</Stack>
|
||||
</Group>
|
||||
</ScrollArea.Autosize>
|
||||
</ScreenLayout>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue