formatting

This commit is contained in:
cliffhall 2026-03-17 16:43:27 -04:00
commit 4b28a69856

View file

@ -1,9 +1,9 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import { fn } from 'storybook/test';
import { HistoryEntry } from './HistoryEntry';
import type { Meta, StoryObj } from "@storybook/react-vite";
import { fn } from "storybook/test";
import { HistoryEntry } from "./HistoryEntry";
const meta: Meta<typeof HistoryEntry> = {
title: 'Molecules/HistoryEntry',
title: "Molecules/HistoryEntry",
component: HistoryEntry,
args: {
onToggleExpand: fn(),
@ -17,10 +17,10 @@ type Story = StoryObj<typeof HistoryEntry>;
export const SuccessCollapsed: Story = {
args: {
timestamp: '2026-03-17T10:30:00Z',
method: 'tools/call',
target: 'get_weather',
status: 'success',
timestamp: "2026-03-17T10:30:00Z",
method: "tools/call",
target: "get_weather",
status: "success",
durationMs: 142,
isPinned: false,
isExpanded: false,
@ -29,20 +29,20 @@ export const SuccessCollapsed: Story = {
export const SuccessExpanded: Story = {
args: {
timestamp: '2026-03-17T10:30:00Z',
method: 'tools/call',
target: 'get_weather',
status: 'success',
timestamp: "2026-03-17T10:30:00Z",
method: "tools/call",
target: "get_weather",
status: "success",
durationMs: 142,
isPinned: false,
isExpanded: true,
parameters: {
city: 'San Francisco',
units: 'celsius',
city: "San Francisco",
units: "celsius",
},
response: {
temperature: 18,
conditions: 'Partly cloudy',
conditions: "Partly cloudy",
humidity: 65,
},
},
@ -50,10 +50,10 @@ export const SuccessExpanded: Story = {
export const Error: Story = {
args: {
timestamp: '2026-03-17T10:31:15Z',
method: 'tools/call',
target: 'query_database',
status: 'error',
timestamp: "2026-03-17T10:31:15Z",
method: "tools/call",
target: "query_database",
status: "error",
durationMs: 3200,
isPinned: false,
isExpanded: false,
@ -62,32 +62,32 @@ export const Error: Story = {
export const WithChildren: Story = {
args: {
timestamp: '2026-03-17T10:32:00Z',
method: 'tools/call',
target: 'complex_operation',
status: 'success',
timestamp: "2026-03-17T10:32:00Z",
method: "tools/call",
target: "complex_operation",
status: "success",
durationMs: 1250,
isPinned: false,
isExpanded: true,
parameters: {
action: 'process',
action: "process",
},
response: {
result: 'completed',
result: "completed",
},
children: [
{
timestamp: '+120ms',
method: 'sampling/createMessage',
target: 'gpt-4',
status: 'success',
timestamp: "+120ms",
method: "sampling/createMessage",
target: "gpt-4",
status: "success",
durationMs: 800,
},
{
timestamp: '+950ms',
method: 'elicitation/create',
target: 'confirm_action',
status: 'success',
timestamp: "+950ms",
method: "elicitation/create",
target: "confirm_action",
status: "success",
durationMs: 200,
},
],
@ -96,13 +96,13 @@ export const WithChildren: Story = {
export const Pinned: Story = {
args: {
timestamp: '2026-03-17T10:33:00Z',
method: 'resources/read',
target: 'config.json',
status: 'success',
timestamp: "2026-03-17T10:33:00Z",
method: "resources/read",
target: "config.json",
status: "success",
durationMs: 45,
isPinned: true,
pinLabel: 'Baseline',
pinLabel: "Baseline",
isExpanded: false,
},
};