From d819a0f1e60d3332174163725360b2e4f663a4a3 Mon Sep 17 00:00:00 2001 From: Jamie Brunton Date: Sat, 8 Aug 2026 18:53:11 +0100 Subject: [PATCH] feat: track received image outcomes --- .../features/performance/performance-page.tsx | 9 ++-- .../src/features/performance/performance.css | 2 +- packages/api-contracts/src/messages.ts | 2 + packages/api-contracts/src/stats.ts | 2 + .../api-contracts/tests/contracts.test.ts | 7 +-- src/bootstrap.ts | 18 ++++++++ src/database/client.ts | 6 +++ src/database/repositories.ts | 44 +++++++++++++++++-- src/services/chat/service.ts | 23 ++++++++++ src/services/strategy-selector.ts | 2 + tests/chat-service-delta-media.test.ts | 22 +++++++++- tests/dashboard/app.test.tsx | 2 +- .../dashboard/performance-operations.test.tsx | 16 ++++--- tests/database.test.ts | 2 + tests/repositories.test.ts | 9 +++- 15 files changed, 145 insertions(+), 21 deletions(-) diff --git a/apps/dashboard/src/features/performance/performance-page.tsx b/apps/dashboard/src/features/performance/performance-page.tsx index e8f624c..b178084 100644 --- a/apps/dashboard/src/features/performance/performance-page.tsx +++ b/apps/dashboard/src/features/performance/performance-page.tsx @@ -40,7 +40,7 @@ function PerformanceTable({ return (
- + {rows.map((row) => ( @@ -50,6 +50,8 @@ function PerformanceTable({ + + ))} @@ -67,6 +69,7 @@ function Trend({ rows }: { rows: readonly DailyTrend[] }) {
NameResponsesRateSample
NameResponsesResponse rateImagesImage rateSample
{row.totalResponses} {row.responseRate}%{row.totalImages}{row.imageRate}%