Deploy Patch Testing Co-worker
Browse files- web/package-lock.json +0 -10
- web/package.json +0 -1
- web/src/chat/ChatCards.tsx +1 -1
- web/src/components/shell/EnvSwitcher.tsx +2 -2
- web/src/main.tsx +0 -2
- web/src/pages/InsightPages.tsx +3 -3
- web/src/pages/QueuesPages.tsx +1 -1
- web/src/pages/RunCases.tsx +1 -1
- web/src/pages/RunData.tsx +2 -2
- web/src/pages/RunResearch.tsx +2 -2
- web/src/pages/RunTriage.tsx +1 -1
- web/src/pages/ScenarioReview.tsx +2 -2
- web/src/styles.css +0 -0
- web/src/theme.ts +28 -9
web/package-lock.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
| 8 |
"name": "fpt-web",
|
| 9 |
"version": "1.0.0",
|
| 10 |
"dependencies": {
|
| 11 |
-
"@fontsource/poppins": "^5.3.0",
|
| 12 |
"@mantine/core": "^7.17.8",
|
| 13 |
"@mantine/hooks": "^7.17.8",
|
| 14 |
"@mantine/notifications": "^7.17.8",
|
|
@@ -1127,15 +1126,6 @@
|
|
| 1127 |
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
|
| 1128 |
"license": "MIT"
|
| 1129 |
},
|
| 1130 |
-
"node_modules/@fontsource/poppins": {
|
| 1131 |
-
"version": "5.3.0",
|
| 1132 |
-
"resolved": "https://registry.npmjs.org/@fontsource/poppins/-/poppins-5.3.0.tgz",
|
| 1133 |
-
"integrity": "sha512-cms1nM7U6SN8epIV1WMVOV8VsA645aSm3wHfzIQnkk188U341ThbJGSl2Sv54V29gnDbT2arMPfLzvVIIVCceQ==",
|
| 1134 |
-
"license": "OFL-1.1",
|
| 1135 |
-
"funding": {
|
| 1136 |
-
"url": "https://github.com/sponsors/ayuhito"
|
| 1137 |
-
}
|
| 1138 |
-
},
|
| 1139 |
"node_modules/@humanfs/core": {
|
| 1140 |
"version": "0.19.2",
|
| 1141 |
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
|
|
|
|
| 8 |
"name": "fpt-web",
|
| 9 |
"version": "1.0.0",
|
| 10 |
"dependencies": {
|
|
|
|
| 11 |
"@mantine/core": "^7.17.8",
|
| 12 |
"@mantine/hooks": "^7.17.8",
|
| 13 |
"@mantine/notifications": "^7.17.8",
|
|
|
|
| 1126 |
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
|
| 1127 |
"license": "MIT"
|
| 1128 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1129 |
"node_modules/@humanfs/core": {
|
| 1130 |
"version": "0.19.2",
|
| 1131 |
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
|
web/package.json
CHANGED
|
@@ -15,7 +15,6 @@
|
|
| 15 |
"e2e": "playwright test -c e2e/playwright.config.ts"
|
| 16 |
},
|
| 17 |
"dependencies": {
|
| 18 |
-
"@fontsource/poppins": "^5.3.0",
|
| 19 |
"@mantine/core": "^7.17.8",
|
| 20 |
"@mantine/hooks": "^7.17.8",
|
| 21 |
"@mantine/notifications": "^7.17.8",
|
|
|
|
| 15 |
"e2e": "playwright test -c e2e/playwright.config.ts"
|
| 16 |
},
|
| 17 |
"dependencies": {
|
|
|
|
| 18 |
"@mantine/core": "^7.17.8",
|
| 19 |
"@mantine/hooks": "^7.17.8",
|
| 20 |
"@mantine/notifications": "^7.17.8",
|
web/src/chat/ChatCards.tsx
CHANGED
|
@@ -82,7 +82,7 @@ export function AnswerCard({ card }: { card: ChatCard }) {
|
|
| 82 |
<Stack gap={4}>
|
| 83 |
{card.items.map((r) => (
|
| 84 |
<Group key={r.run_id} gap={6} wrap="nowrap" justify="space-between">
|
| 85 |
-
<Link to={`/runs/${r.run_id}`} style={{ fontSize: 12
|
| 86 |
<Pill tone={r.pending_gate ? 'amber' : 'neutral'}>{r.pending_gate ? 'your review' : r.status_words}</Pill>
|
| 87 |
</Group>
|
| 88 |
))}
|
|
|
|
| 82 |
<Stack gap={4}>
|
| 83 |
{card.items.map((r) => (
|
| 84 |
<Group key={r.run_id} gap={6} wrap="nowrap" justify="space-between">
|
| 85 |
+
<Link to={`/runs/${r.run_id}`} style={{ fontSize: 12, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{r.title}</Link>
|
| 86 |
<Pill tone={r.pending_gate ? 'amber' : 'neutral'}>{r.pending_gate ? 'your review' : r.status_words}</Pill>
|
| 87 |
</Group>
|
| 88 |
))}
|
web/src/components/shell/EnvSwitcher.tsx
CHANGED
|
@@ -75,8 +75,8 @@ export function EnvSwitcher({ compact = false }: { compact?: boolean }) {
|
|
| 75 |
<Menu.Item key={p.id} onClick={() => set({ env: p.id })}
|
| 76 |
leftSection={envKind(p.kind) === 'fusion' ? <IconCloud size={14} /> : <IconShieldLock size={14} />}
|
| 77 |
rightSection={p.id === pod?.id ? <IconCheck size={14} aria-label="chosen" /> : undefined}>
|
| 78 |
-
<div style={{ fontSize:
|
| 79 |
-
<div style={{ fontSize:
|
| 80 |
<span className="fpt-sdot" data-state={p.last_check_ok === false ? 'failed' : p.last_check_at ? 'done' : 'idle'} aria-hidden style={{ width: 7, height: 7, flexBasis: 7 }} />
|
| 81 |
{p.last_check_ok === false ? `not reachable, ${ago(p.last_check_at)}` : ago(p.last_check_at)}
|
| 82 |
</div>
|
|
|
|
| 75 |
<Menu.Item key={p.id} onClick={() => set({ env: p.id })}
|
| 76 |
leftSection={envKind(p.kind) === 'fusion' ? <IconCloud size={14} /> : <IconShieldLock size={14} />}
|
| 77 |
rightSection={p.id === pod?.id ? <IconCheck size={14} aria-label="chosen" /> : undefined}>
|
| 78 |
+
<div style={{ fontSize: 14 }}>{p.name}{p.is_default ? ' (default)' : ''}</div>
|
| 79 |
+
<div style={{ fontSize: 12, color: 'var(--fpt-dim)', display: 'flex', alignItems: 'center', gap: 5 }}>
|
| 80 |
<span className="fpt-sdot" data-state={p.last_check_ok === false ? 'failed' : p.last_check_at ? 'done' : 'idle'} aria-hidden style={{ width: 7, height: 7, flexBasis: 7 }} />
|
| 81 |
{p.last_check_ok === false ? `not reachable, ${ago(p.last_check_at)}` : ago(p.last_check_at)}
|
| 82 |
</div>
|
web/src/main.tsx
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
import '@fontsource/poppins/400.css';
|
| 2 |
-
import '@fontsource/poppins/600.css';
|
| 3 |
import '@mantine/core/styles.css';
|
| 4 |
import '@mantine/notifications/styles.css';
|
| 5 |
import './styles.css';
|
|
|
|
|
|
|
|
|
|
| 1 |
import '@mantine/core/styles.css';
|
| 2 |
import '@mantine/notifications/styles.css';
|
| 3 |
import './styles.css';
|
web/src/pages/InsightPages.tsx
CHANGED
|
@@ -46,12 +46,12 @@ export function LearnerPage() {
|
|
| 46 |
<Card withBorder>
|
| 47 |
<Title order={5}>Run history</Title>
|
| 48 |
<HistoryChart rows={hist.data?.items ?? []} />
|
| 49 |
-
<Table fz="xs"
|
| 50 |
<Table.Tbody>{(hist.data?.items ?? []).slice(0, 50).map((h) => <Table.Tr key={h.id}><Table.Td>{h.run_id}</Table.Td><Table.Td>{h.module}</Table.Td><Table.Td>{h.patch_id}</Table.Td><Table.Td>{h.decision}</Table.Td><Table.Td>{Object.entries(h.counts).map(([k, v]) => `${k}=${v}`).join(' ')}</Table.Td><Table.Td>{fmtTs(h.ts)}</Table.Td></Table.Tr>)}</Table.Tbody></Table>
|
| 51 |
</Card>
|
| 52 |
<Card withBorder>
|
| 53 |
<Title order={5}>Failure patterns</Title>
|
| 54 |
-
<Table fz="xs"
|
| 55 |
<Table.Tbody>{(pats.data ?? []).slice(0, 100).map((p, i) => <Table.Tr key={i}><Table.Td>{p.case_id}</Table.Td><Table.Td>{p.count}</Table.Td><Table.Td>{Object.entries(p.labels).map(([k, v]) => `${k}:${v}`).join(' ')}</Table.Td><Table.Td><Tooltip label={p.example} multiline w={420}><Text size="xs" lineClamp={1}>{p.signature}</Text></Tooltip></Table.Td><Table.Td>{fmtTs(p.last_seen)}</Table.Td></Table.Tr>)}</Table.Tbody></Table>
|
| 56 |
</Card>
|
| 57 |
</Stack>
|
|
@@ -78,7 +78,7 @@ export function AuditPage() {
|
|
| 78 |
</Group>
|
| 79 |
<ErrorAlert error={q.error} />
|
| 80 |
<Table.ScrollContainer minWidth={760}>
|
| 81 |
-
<Table
|
| 82 |
<Table.Thead><Table.Tr><Table.Th>Seq</Table.Th><Table.Th>Time</Table.Th><Table.Th>Actor</Table.Th><Table.Th>Kind</Table.Th><Table.Th>Run</Table.Th><Table.Th>Node</Table.Th><Table.Th>Summary</Table.Th><Table.Th>Hash</Table.Th></Table.Tr></Table.Thead>
|
| 83 |
<Table.Tbody>
|
| 84 |
{q.data?.items.map((r) => (
|
|
|
|
| 46 |
<Card withBorder>
|
| 47 |
<Title order={5}>Run history</Title>
|
| 48 |
<HistoryChart rows={hist.data?.items ?? []} />
|
| 49 |
+
<Table fz="xs" aria-label="run history"><Table.Thead><Table.Tr><Table.Th>Run</Table.Th><Table.Th>Module</Table.Th><Table.Th>Patch</Table.Th><Table.Th>Decision</Table.Th><Table.Th>Counts</Table.Th><Table.Th>When</Table.Th></Table.Tr></Table.Thead>
|
| 50 |
<Table.Tbody>{(hist.data?.items ?? []).slice(0, 50).map((h) => <Table.Tr key={h.id}><Table.Td>{h.run_id}</Table.Td><Table.Td>{h.module}</Table.Td><Table.Td>{h.patch_id}</Table.Td><Table.Td>{h.decision}</Table.Td><Table.Td>{Object.entries(h.counts).map(([k, v]) => `${k}=${v}`).join(' ')}</Table.Td><Table.Td>{fmtTs(h.ts)}</Table.Td></Table.Tr>)}</Table.Tbody></Table>
|
| 51 |
</Card>
|
| 52 |
<Card withBorder>
|
| 53 |
<Title order={5}>Failure patterns</Title>
|
| 54 |
+
<Table fz="xs" aria-label="failure patterns"><Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Count</Table.Th><Table.Th>Labels</Table.Th><Table.Th>Signature</Table.Th><Table.Th>Last seen</Table.Th></Table.Tr></Table.Thead>
|
| 55 |
<Table.Tbody>{(pats.data ?? []).slice(0, 100).map((p, i) => <Table.Tr key={i}><Table.Td>{p.case_id}</Table.Td><Table.Td>{p.count}</Table.Td><Table.Td>{Object.entries(p.labels).map(([k, v]) => `${k}:${v}`).join(' ')}</Table.Td><Table.Td><Tooltip label={p.example} multiline w={420}><Text size="xs" lineClamp={1}>{p.signature}</Text></Tooltip></Table.Td><Table.Td>{fmtTs(p.last_seen)}</Table.Td></Table.Tr>)}</Table.Tbody></Table>
|
| 56 |
</Card>
|
| 57 |
</Stack>
|
|
|
|
| 78 |
</Group>
|
| 79 |
<ErrorAlert error={q.error} />
|
| 80 |
<Table.ScrollContainer minWidth={760}>
|
| 81 |
+
<Table fz="xs" aria-label="audit rows">
|
| 82 |
<Table.Thead><Table.Tr><Table.Th>Seq</Table.Th><Table.Th>Time</Table.Th><Table.Th>Actor</Table.Th><Table.Th>Kind</Table.Th><Table.Th>Run</Table.Th><Table.Th>Node</Table.Th><Table.Th>Summary</Table.Th><Table.Th>Hash</Table.Th></Table.Tr></Table.Thead>
|
| 83 |
<Table.Tbody>
|
| 84 |
{q.data?.items.map((r) => (
|
web/src/pages/QueuesPages.tsx
CHANGED
|
@@ -59,7 +59,7 @@ export function ScriptsPage() {
|
|
| 59 |
<SegmentedControl w="fit-content" aria-label="status filter" value={status} onChange={setStatus} data={['staged', 'promoted', 'discarded', 'all']} />
|
| 60 |
<ErrorAlert error={q.error || act.error} />
|
| 61 |
<Table.ScrollContainer minWidth={760}>
|
| 62 |
-
<Table
|
| 63 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Run</Table.Th><Table.Th>Lint</Table.Th><Table.Th>Dry-run</Table.Th><Table.Th>Status</Table.Th><Table.Th>Actions</Table.Th></Table.Tr></Table.Thead>
|
| 64 |
<Table.Tbody>
|
| 65 |
{q.data?.items.map((d) => (
|
|
|
|
| 59 |
<SegmentedControl w="fit-content" aria-label="status filter" value={status} onChange={setStatus} data={['staged', 'promoted', 'discarded', 'all']} />
|
| 60 |
<ErrorAlert error={q.error || act.error} />
|
| 61 |
<Table.ScrollContainer minWidth={760}>
|
| 62 |
+
<Table fz="sm" aria-label="drafts">
|
| 63 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Run</Table.Th><Table.Th>Lint</Table.Th><Table.Th>Dry-run</Table.Th><Table.Th>Status</Table.Th><Table.Th>Actions</Table.Th></Table.Tr></Table.Thead>
|
| 64 |
<Table.Tbody>
|
| 65 |
{q.data?.items.map((d) => (
|
web/src/pages/RunCases.tsx
CHANGED
|
@@ -87,7 +87,7 @@ export function RunCases({ id, waiting }: { id: string; waiting: boolean }) {
|
|
| 87 |
<Card withBorder>
|
| 88 |
<Title order={5}>In scope ({cases.data.test_cases.length}) / deferred ({cases.data.deferred.length})</Title>
|
| 89 |
<Table.ScrollContainer minWidth={640}>
|
| 90 |
-
<Table fz="xs"
|
| 91 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Priority</Table.Th><Table.Th>Origin</Table.Th><Table.Th>Patch</Table.Th><Table.Th>Map rows</Table.Th></Table.Tr></Table.Thead>
|
| 92 |
<Table.Tbody>
|
| 93 |
{cases.data.test_cases.map((c) => <Table.Tr key={c.id}><Table.Td>{c.id} <Text span c="dimmed">{c.title}</Text></Table.Td><Table.Td>{c.priority}</Table.Td><Table.Td>{c.origin}</Table.Td><Table.Td>{c.changed_by_patch ? 'touched' : ''}</Table.Td><Table.Td>{c.map_ids.join(', ')}</Table.Td></Table.Tr>)}
|
|
|
|
| 87 |
<Card withBorder>
|
| 88 |
<Title order={5}>In scope ({cases.data.test_cases.length}) / deferred ({cases.data.deferred.length})</Title>
|
| 89 |
<Table.ScrollContainer minWidth={640}>
|
| 90 |
+
<Table fz="xs" aria-label="cases in scope">
|
| 91 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Priority</Table.Th><Table.Th>Origin</Table.Th><Table.Th>Patch</Table.Th><Table.Th>Map rows</Table.Th></Table.Tr></Table.Thead>
|
| 92 |
<Table.Tbody>
|
| 93 |
{cases.data.test_cases.map((c) => <Table.Tr key={c.id}><Table.Td>{c.id} <Text span c="dimmed">{c.title}</Text></Table.Td><Table.Td>{c.priority}</Table.Td><Table.Td>{c.origin}</Table.Td><Table.Td>{c.changed_by_patch ? 'touched' : ''}</Table.Td><Table.Td>{c.map_ids.join(', ')}</Table.Td></Table.Tr>)}
|
web/src/pages/RunData.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export function RunData({ id }: { id: string }) {
|
|
| 15 |
<Title order={5}>Recipes ({Object.keys(d.data_refs).length})</Title>
|
| 16 |
<Text size="xs" c="dimmed">Read-only finds via the egress gate; seeding only with SEED_ALLOWED=1 on a test pod; BIP is a stub.</Text>
|
| 17 |
<Table.ScrollContainer minWidth={640}>
|
| 18 |
-
<Table fz="xs"
|
| 19 |
<Table.Thead><Table.Tr><Table.Th>Recipe</Table.Th><Table.Th>Strategy</Table.Th><Table.Th>Status</Table.Th><Table.Th>Outputs</Table.Th><Table.Th>Note</Table.Th></Table.Tr></Table.Thead>
|
| 20 |
<Table.Tbody>
|
| 21 |
{Object.values(d.data_refs).map((r) => (
|
|
@@ -50,7 +50,7 @@ export function RunScripts({ id }: { id: string }) {
|
|
| 50 |
<Card withBorder>
|
| 51 |
<Title order={5}>Scripts ({rows.length}): {rows.filter((r) => r.status === 'existing').length} existing, {rows.filter((r) => r.status === 'generated').length} generated drafts</Title>
|
| 52 |
<Table.ScrollContainer minWidth={700}>
|
| 53 |
-
<Table fz="xs"
|
| 54 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Status</Table.Th><Table.Th>Path</Table.Th><Table.Th>Lint</Table.Th><Table.Th>Dry-run</Table.Th><Table.Th>Last outcome</Table.Th></Table.Tr></Table.Thead>
|
| 55 |
<Table.Tbody>
|
| 56 |
{rows.map((s) => (
|
|
|
|
| 15 |
<Title order={5}>Recipes ({Object.keys(d.data_refs).length})</Title>
|
| 16 |
<Text size="xs" c="dimmed">Read-only finds via the egress gate; seeding only with SEED_ALLOWED=1 on a test pod; BIP is a stub.</Text>
|
| 17 |
<Table.ScrollContainer minWidth={640}>
|
| 18 |
+
<Table fz="xs" aria-label="data recipes">
|
| 19 |
<Table.Thead><Table.Tr><Table.Th>Recipe</Table.Th><Table.Th>Strategy</Table.Th><Table.Th>Status</Table.Th><Table.Th>Outputs</Table.Th><Table.Th>Note</Table.Th></Table.Tr></Table.Thead>
|
| 20 |
<Table.Tbody>
|
| 21 |
{Object.values(d.data_refs).map((r) => (
|
|
|
|
| 50 |
<Card withBorder>
|
| 51 |
<Title order={5}>Scripts ({rows.length}): {rows.filter((r) => r.status === 'existing').length} existing, {rows.filter((r) => r.status === 'generated').length} generated drafts</Title>
|
| 52 |
<Table.ScrollContainer minWidth={700}>
|
| 53 |
+
<Table fz="xs" aria-label="scripts">
|
| 54 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Status</Table.Th><Table.Th>Path</Table.Th><Table.Th>Lint</Table.Th><Table.Th>Dry-run</Table.Th><Table.Th>Last outcome</Table.Th></Table.Tr></Table.Thead>
|
| 55 |
<Table.Tbody>
|
| 56 |
{rows.map((s) => (
|
web/src/pages/RunResearch.tsx
CHANGED
|
@@ -26,7 +26,7 @@ export function RunResearch({ id }: { id: string }) {
|
|
| 26 |
<SimpleGrid cols={{ base: 1, sm: 2, md: 3 }} mt="sm">
|
| 27 |
{(prof?.modules ?? []).map((m) => (
|
| 28 |
<Card key={m.module} withBorder p="xs">
|
| 29 |
-
<Group justify="space-between"><Text fw={
|
| 30 |
<Text size="xs" c="dimmed">persona {m.scout_persona} - {m.resources.length} resources - {m.processes.length} processes</Text>
|
| 31 |
<Text size="xs">{Object.entries(m.usage ?? {}).map(([k, v]) => `${k}: ${v ?? 'n/a'}`).join(', ')}</Text>
|
| 32 |
</Card>
|
|
@@ -61,7 +61,7 @@ export function RunResearch({ id }: { id: string }) {
|
|
| 61 |
</Group>
|
| 62 |
<Text size="xs" c="dimmed">{q.data?.coverage_map?.note} Generated by {q.data?.coverage_map?.generated_by}.</Text>
|
| 63 |
<Table.ScrollContainer minWidth={800}>
|
| 64 |
-
<Table fz="xs"
|
| 65 |
<Table.Thead><Table.Tr><Table.Th>Module</Table.Th><Table.Th>Row</Table.Th><Table.Th>Process</Table.Th><Table.Th>I x C</Table.Th><Table.Th>Usage</Table.Th><Table.Th>Score</Table.Th><Table.Th>Tier</Table.Th><Table.Th>Patch</Table.Th><Table.Th>Confidence</Table.Th><Table.Th>Gap</Table.Th></Table.Tr></Table.Thead>
|
| 66 |
<Table.Tbody>
|
| 67 |
{rows.slice(0, 400).map((r) => (
|
|
|
|
| 26 |
<SimpleGrid cols={{ base: 1, sm: 2, md: 3 }} mt="sm">
|
| 27 |
{(prof?.modules ?? []).map((m) => (
|
| 28 |
<Card key={m.module} withBorder p="xs">
|
| 29 |
+
<Group justify="space-between"><Text fw={600}>{m.module}</Text><Badge variant="light">usage {m.usage_score ?? '-'}/5 (mock-derived)</Badge></Group>
|
| 30 |
<Text size="xs" c="dimmed">persona {m.scout_persona} - {m.resources.length} resources - {m.processes.length} processes</Text>
|
| 31 |
<Text size="xs">{Object.entries(m.usage ?? {}).map(([k, v]) => `${k}: ${v ?? 'n/a'}`).join(', ')}</Text>
|
| 32 |
</Card>
|
|
|
|
| 61 |
</Group>
|
| 62 |
<Text size="xs" c="dimmed">{q.data?.coverage_map?.note} Generated by {q.data?.coverage_map?.generated_by}.</Text>
|
| 63 |
<Table.ScrollContainer minWidth={800}>
|
| 64 |
+
<Table fz="xs" aria-label="coverage map">
|
| 65 |
<Table.Thead><Table.Tr><Table.Th>Module</Table.Th><Table.Th>Row</Table.Th><Table.Th>Process</Table.Th><Table.Th>I x C</Table.Th><Table.Th>Usage</Table.Th><Table.Th>Score</Table.Th><Table.Th>Tier</Table.Th><Table.Th>Patch</Table.Th><Table.Th>Confidence</Table.Th><Table.Th>Gap</Table.Th></Table.Tr></Table.Thead>
|
| 66 |
<Table.Tbody>
|
| 67 |
{rows.slice(0, 400).map((r) => (
|
web/src/pages/RunTriage.tsx
CHANGED
|
@@ -63,7 +63,7 @@ export function RunTriage({ id, waiting }: { id: string; waiting: boolean }) {
|
|
| 63 |
<Card withBorder>
|
| 64 |
<Title order={5}>Verdicts (retry count {results.data.retry_count})</Title>
|
| 65 |
<Table.ScrollContainer minWidth={640}>
|
| 66 |
-
<Table fz="xs"
|
| 67 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Outcome</Table.Th><Table.Th>Category</Table.Th><Table.Th>Confidence</Table.Th><Table.Th>Review?</Table.Th><Table.Th>Human</Table.Th></Table.Tr></Table.Thead>
|
| 68 |
<Table.Tbody>
|
| 69 |
{Object.values(results.data.verdicts).map((v) => (
|
|
|
|
| 63 |
<Card withBorder>
|
| 64 |
<Title order={5}>Verdicts (retry count {results.data.retry_count})</Title>
|
| 65 |
<Table.ScrollContainer minWidth={640}>
|
| 66 |
+
<Table fz="xs" aria-label="verdicts">
|
| 67 |
<Table.Thead><Table.Tr><Table.Th>Case</Table.Th><Table.Th>Outcome</Table.Th><Table.Th>Category</Table.Th><Table.Th>Confidence</Table.Th><Table.Th>Review?</Table.Th><Table.Th>Human</Table.Th></Table.Tr></Table.Thead>
|
| 68 |
<Table.Tbody>
|
| 69 |
{Object.values(results.data.verdicts).map((v) => (
|
web/src/pages/ScenarioReview.tsx
CHANGED
|
@@ -130,7 +130,7 @@ export function ScenarioBody({ s, p, children }: { s: Scenario; p?: PendingCase;
|
|
| 130 |
{s.steps.length > 0 && (
|
| 131 |
<div>
|
| 132 |
<Text size="sm" fw={600}>Steps</Text>
|
| 133 |
-
<ol style={{ margin: '4px 0 0', paddingLeft: 20, fontSize:
|
| 134 |
{s.steps.map((st) => <li key={st.n}>{st.text}{st.expected ? <Text span size="xs" c="dimmed"> → {st.expected}</Text> : null}</li>)}
|
| 135 |
</ol>
|
| 136 |
</div>
|
|
@@ -157,7 +157,7 @@ export function ScenarioBody({ s, p, children }: { s: Scenario; p?: PendingCase;
|
|
| 157 |
<DryRunLine d={p?.ai?.dry_run ?? s.dry_run} />
|
| 158 |
{p?.ai && p.ai.steps.length > 0 && (
|
| 159 |
<Table.ScrollContainer minWidth={480}>
|
| 160 |
-
<Table fz="xs"
|
| 161 |
<Table.Thead><Table.Tr><Table.Th>#</Table.Th><Table.Th>Action</Table.Th><Table.Th>Field</Table.Th><Table.Th>Value</Table.Th><Table.Th>Expected</Table.Th></Table.Tr></Table.Thead>
|
| 162 |
<Table.Tbody>{p.ai.steps.map((st) => (
|
| 163 |
<Table.Tr key={st.n}><Table.Td>{st.n}</Table.Td><Table.Td>{st.action.replace(/_/g, ' ')}</Table.Td><Table.Td>{st.field ?? ''}</Table.Td><Table.Td>{st.value ?? ''}</Table.Td><Table.Td>{st.expected ?? ''}</Table.Td></Table.Tr>
|
|
|
|
| 130 |
{s.steps.length > 0 && (
|
| 131 |
<div>
|
| 132 |
<Text size="sm" fw={600}>Steps</Text>
|
| 133 |
+
<ol style={{ margin: '4px 0 0', paddingLeft: 20, fontSize: 14 }}>
|
| 134 |
{s.steps.map((st) => <li key={st.n}>{st.text}{st.expected ? <Text span size="xs" c="dimmed"> → {st.expected}</Text> : null}</li>)}
|
| 135 |
</ol>
|
| 136 |
</div>
|
|
|
|
| 157 |
<DryRunLine d={p?.ai?.dry_run ?? s.dry_run} />
|
| 158 |
{p?.ai && p.ai.steps.length > 0 && (
|
| 159 |
<Table.ScrollContainer minWidth={480}>
|
| 160 |
+
<Table fz="xs" withTableBorder aria-label={`steps of ${s.id}`}>
|
| 161 |
<Table.Thead><Table.Tr><Table.Th>#</Table.Th><Table.Th>Action</Table.Th><Table.Th>Field</Table.Th><Table.Th>Value</Table.Th><Table.Th>Expected</Table.Th></Table.Tr></Table.Thead>
|
| 162 |
<Table.Tbody>{p.ai.steps.map((st) => (
|
| 163 |
<Table.Tr key={st.n}><Table.Td>{st.n}</Table.Td><Table.Td>{st.action.replace(/_/g, ' ')}</Table.Td><Table.Td>{st.field ?? ''}</Table.Td><Table.Td>{st.value ?? ''}</Table.Td><Table.Td>{st.expected ?? ''}</Table.Td></Table.Tr>
|
web/src/styles.css
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
web/src/theme.ts
CHANGED
|
@@ -4,21 +4,40 @@ import { createTheme, type MantineColorsTuple } from '@mantine/core';
|
|
| 4 |
// re-mapped to a light surface in styles.css so the same components stay readable.
|
| 5 |
const ink: MantineColorsTuple = ['#f3f5f4', '#e3e7e5', '#c5ccc9', '#a3adaa', '#7f8b87', '#5b6763', '#111111', '#0d0d0d', '#080808', '#000000'];
|
| 6 |
const mint: MantineColorsTuple = ['#eef7f4', '#e0f0eb', '#c5e3da', '#a4d3c7', '#84c3b4', '#62ae9d', '#3f8f7f', '#2f7266', '#22564d', '#163b35'];
|
| 7 |
-
// The one accent
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
const lavender: MantineColorsTuple = ['#f3f2fd', '#e6e4fa', '#cdc9f4', '#b1abed', '#978fe6', '#7d73dc', '#6258c4', '#4c44a0', '#38327a', '#252154'];
|
| 10 |
|
| 11 |
export const theme = createTheme({
|
| 12 |
primaryColor: 'accent',
|
| 13 |
-
primaryShade: { light: 6, dark:
|
| 14 |
colors: { accent, ink, mint, lavender },
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
spacing: { xs: '8px', sm: '12px', md: '16px', lg: '20px', xl: '24px' },
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
components: {
|
| 23 |
// Secondary by default: each screen marks its one primary with variant="filled" (UI-SIMPLIFY 1.2).
|
| 24 |
Button: { defaultProps: { radius: 'sm', size: 'xs', variant: 'default' } },
|
|
|
|
| 4 |
// re-mapped to a light surface in styles.css so the same components stay readable.
|
| 5 |
const ink: MantineColorsTuple = ['#f3f5f4', '#e3e7e5', '#c5ccc9', '#a3adaa', '#7f8b87', '#5b6763', '#111111', '#0d0d0d', '#080808', '#000000'];
|
| 6 |
const mint: MantineColorsTuple = ['#eef7f4', '#e0f0eb', '#c5e3da', '#a4d3c7', '#84c3b4', '#62ae9d', '#3f8f7f', '#2f7266', '#22564d', '#163b35'];
|
| 7 |
+
// The one accent is Fluent 2's brand ramp (@fluentui/tokens brandWeb, MIT): shade 6 = #0f6cbd (brandBackground), 7 = #115ea3
|
| 8 |
+
// (hover; also the dark-theme brandBackground with white text), 9 = #0c3b5e (pressed). Links and indicators in dark use #479ef5.
|
| 9 |
+
const accent: MantineColorsTuple = ['#ebf3fc', '#cfe4fa', '#b4d6fa', '#96c6fa', '#479ef5', '#2886de', '#0f6cbd', '#115ea3', '#0f548c', '#0c3b5e'];
|
| 10 |
+
const FONT = '"Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif';
|
| 11 |
+
const FONT_DISPLAY = '"Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif';
|
| 12 |
+
// Fluent 2 shadows: cards are flat (a 1px stroke); flyouts and menus use shadow4, dialogs shadow16 (styles.css for dark).
|
| 13 |
+
const SHADOW2 = '0 0 2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14)';
|
| 14 |
+
const SHADOW4 = '0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.14)';
|
| 15 |
+
const SHADOW16 = '0 0 2px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.14)';
|
| 16 |
const lavender: MantineColorsTuple = ['#f3f2fd', '#e6e4fa', '#cdc9f4', '#b1abed', '#978fe6', '#7d73dc', '#6258c4', '#4c44a0', '#38327a', '#252154'];
|
| 17 |
|
| 18 |
export const theme = createTheme({
|
| 19 |
primaryColor: 'accent',
|
| 20 |
+
primaryShade: { light: 6, dark: 7 },
|
| 21 |
colors: { accent, ink, mint, lavender },
|
| 22 |
+
// Fluent 2 type ramp: Caption 12/16, Body 14/20 (base), Subtitle 16/22, Title3 20/28, Title2 24/32; weights 400 and 600
|
| 23 |
+
fontFamily: FONT,
|
| 24 |
+
fontFamilyMonospace: '"Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, Menlo, monospace',
|
| 25 |
+
headings: {
|
| 26 |
+
fontFamily: FONT_DISPLAY, fontWeight: '600',
|
| 27 |
+
sizes: {
|
| 28 |
+
h1: { fontSize: '24px', lineHeight: '32px' }, h2: { fontSize: '20px', lineHeight: '28px' }, h3: { fontSize: '16px', lineHeight: '22px' },
|
| 29 |
+
h4: { fontSize: '14px', lineHeight: '20px' }, h5: { fontSize: '14px', lineHeight: '20px' }, h6: { fontSize: '12px', lineHeight: '16px' },
|
| 30 |
+
},
|
| 31 |
+
},
|
| 32 |
+
fontSizes: { xs: '12px', sm: '14px', md: '14px', lg: '16px', xl: '20px' },
|
| 33 |
+
lineHeights: { xs: '1.3333', sm: '1.4286', md: '1.4286', lg: '1.375', xl: '1.4' },
|
| 34 |
+
// a 4px grid
|
| 35 |
spacing: { xs: '8px', sm: '12px', md: '16px', lg: '20px', xl: '24px' },
|
| 36 |
+
// Fluent radii: 4px controls, 8px cards and dialogs; xl only for true chips and dots
|
| 37 |
+
defaultRadius: 'sm',
|
| 38 |
+
radius: { xs: '2px', sm: '4px', md: '4px', lg: '8px', xl: '999px' },
|
| 39 |
+
shadows: { xs: SHADOW2, sm: SHADOW4, md: SHADOW4, lg: SHADOW16, xl: SHADOW16 },
|
| 40 |
+
focusRing: 'auto',
|
| 41 |
components: {
|
| 42 |
// Secondary by default: each screen marks its one primary with variant="filled" (UI-SIMPLIFY 1.2).
|
| 43 |
Button: { defaultProps: { radius: 'sm', size: 'xs', variant: 'default' } },
|