diff --git a/src/apps/draw/DrawCreate.tsx b/src/apps/draw/DrawCreate.tsx index 73b61af7f..2376c2764 100644 --- a/src/apps/draw/DrawCreate.tsx +++ b/src/apps/draw/DrawCreate.tsx @@ -18,8 +18,8 @@ import { createDMessageDataRefDBlob } from '~/common/stores/chat/chat.message'; import { DesignerPrompt, PromptComposer } from './create/PromptComposer'; import { ProviderConfigure } from './create/ProviderConfigure'; import { DrawSectionHeading } from './create/DrawSectionHeading'; -import { FallbackUnconfigured } from './create/FallbackUnconfigured'; -import { FallbackNoImages } from './create/FallbackNoImages'; +import { ZeroDrawConfig } from './create/ZeroDrawConfig'; +import { ZeroGenerations } from './create/ZeroGenerations'; const imagineWorkspaceSx: SxProps = { @@ -241,11 +241,11 @@ export function DrawCreate(props: { {/* })}*/} {/**/} - {/* Fallbac*/} - + {/* Fallback */} + {/* End with this Unconfigured message */} - {!props.mayWork && } + {!props.mayWork && } {/* Visibility and actions are handled via Context */} diff --git a/src/apps/draw/DrawGallery.tsx b/src/apps/draw/DrawGallery.tsx index 18278d913..361e4f71a 100644 --- a/src/apps/draw/DrawGallery.tsx +++ b/src/apps/draw/DrawGallery.tsx @@ -3,20 +3,16 @@ import { Box, Table } from '@mui/joy'; import { DBlobAssetType, DBlobImageAsset } from '~/modules/dblobs/dblobs.types'; import { useDBAssetsByScopeAndType } from '~/modules/dblobs/dblobs.hooks'; - -import { AppPlaceholder } from '../AppPlaceholder'; +import { ZeroGallery } from './gallery/ZeroGallery'; -export function DrawGallery({ domain }: { domain: 'draw' | 'app' }) { +export function DrawGallery(props: { domain: 'draw' | 'app' }) { const [items] = useDBAssetsByScopeAndType( DBlobAssetType.IMAGE, 'global', - domain === 'draw' ? 'app-draw' : 'app-chat', + props.domain === 'draw' ? 'app-draw' : 'app-chat', ); - if (!items || items.length === 0) { - return ; - } const boxStyles = { flexGrow: 1, @@ -40,7 +36,7 @@ export function DrawGallery({ domain }: { domain: 'draw' | 'app' }) { - {items.map(({ id, label, cache, data, origin, metadata, createdAt, updatedAt }) => ( + {(items || []).map(({ id, label, cache, data, origin, metadata, createdAt, updatedAt }) => ( @@ -75,6 +71,7 @@ export function DrawGallery({ domain }: { domain: 'draw' | 'app' }) { ))} + {(!items || items.length === 0) && } ); } \ No newline at end of file diff --git a/src/apps/draw/create/FallbackUnconfigured.tsx b/src/apps/draw/create/ZeroDrawConfig.tsx similarity index 95% rename from src/apps/draw/create/FallbackUnconfigured.tsx rename to src/apps/draw/create/ZeroDrawConfig.tsx index 6abefd8c4..0122ecd70 100644 --- a/src/apps/draw/create/FallbackUnconfigured.tsx +++ b/src/apps/draw/create/ZeroDrawConfig.tsx @@ -5,7 +5,7 @@ import { Button, Card, CardActions, CardContent, Typography } from '@mui/joy'; import { PreferencesTab, useOptimaLayout } from '~/common/layout/optima/useOptimaLayout'; -export function FallbackUnconfigured() { +export function ZeroDrawConfig() { // external state const { openPreferencesTab } = useOptimaLayout(); diff --git a/src/apps/draw/create/FallbackNoImages.tsx b/src/apps/draw/create/ZeroGenerations.tsx similarity index 95% rename from src/apps/draw/create/FallbackNoImages.tsx rename to src/apps/draw/create/ZeroGenerations.tsx index 20aa1b999..9aeed83ac 100644 --- a/src/apps/draw/create/FallbackNoImages.tsx +++ b/src/apps/draw/create/ZeroGenerations.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import { Card, Typography } from '@mui/joy'; -export function FallbackNoImages() { +export function ZeroGenerations() { return ( + {/**/} + {/* {Brand.Title.Base} No Images */} + {/**/} + {/**/} + + {/**/} + + ); +} \ No newline at end of file