From d9e12257aca608412e7e29a58be6727d1cd1eabb Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Sun, 27 Apr 2025 12:03:25 -0700 Subject: [PATCH] Fix duplicate element IDs, tweak copy --- app/components/app-library/ExampleLibraryApps.tsx | 2 +- app/components/chat/BaseChat.tsx | 2 +- app/lib/persistence/apps.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/app-library/ExampleLibraryApps.tsx b/app/components/app-library/ExampleLibraryApps.tsx index 3cb1c9cd..8b6b40a3 100644 --- a/app/components/app-library/ExampleLibraryApps.tsx +++ b/app/components/app-library/ExampleLibraryApps.tsx @@ -59,7 +59,7 @@ export const ExampleLibraryApps = () => {
{displayApps.map((app) => (
{ importChat( diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 34327d7a..be4e568a 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -450,7 +450,7 @@ export const BaseChat = React.forwardRef( handleSendMessage?.(event, messageInput); })}
- Walk in the woods + Arboretum
Browse these auto-generated apps for a place to start diff --git a/app/lib/persistence/apps.ts b/app/lib/persistence/apps.ts index 054cb0bf..48c5c3f9 100644 --- a/app/lib/persistence/apps.ts +++ b/app/lib/persistence/apps.ts @@ -9,6 +9,7 @@ export interface BuildAppOutcome { } export interface BuildAppResult { + id: string; title: string | undefined; elapsedMinutes: number; totalPeanuts: number; @@ -49,6 +50,7 @@ function databaseRowToBuildAppResult(row: any): BuildAppResult { const outcome = parseBuildAppOutcome(row.outcome); return { + id: row.id, title: row.title, elapsedMinutes: row.elapsed_minutes || 0, totalPeanuts: row.total_peanuts || 0,