mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Fix duplicate element IDs, tweak copy
This commit is contained in:
parent
b147f7503f
commit
d9e12257ac
@ -59,7 +59,7 @@ export const ExampleLibraryApps = () => {
|
||||
<div className={styles.grid}>
|
||||
{displayApps.map((app) => (
|
||||
<div
|
||||
key={app.appId}
|
||||
key={app.id}
|
||||
className={`${styles.appItem} ${!app.outcome.testsPassed ? styles.appItemError : ''}`}
|
||||
onClick={() => {
|
||||
importChat(
|
||||
|
||||
@ -450,7 +450,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
handleSendMessage?.(event, messageInput);
|
||||
})}
|
||||
<div className="text-2xl lg:text-4xl font-bold text-bolt-elements-textPrimary mt-8 mb-4 animate-fade-in text-center max-w-chat mx-auto">
|
||||
Walk in the woods
|
||||
Arboretum
|
||||
</div>
|
||||
<div className="text-bolt-elements-textSecondary text-center max-w-chat mx-auto">
|
||||
Browse these auto-generated apps for a place to start
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user