import { useState } from 'react'; import { DEMO_IMAGE_ID } from '../../shared/api/demo'; import { useQuery, useQueryClient } from '@tanstack/react-query'; import { Server, Check, RefreshCw, ShieldCheck } from 'lucide-react'; import { api } from '../../shared/api/client'; import { ErrorNotice, External, PageTitle } from '../../shared/components/ui'; export function SettingsPage() { const status = useQuery({ queryKey: ['system'], queryFn: api.status }), assets = useQuery({ queryKey: ['assets'], queryFn: api.assets }), client = useQueryClient(); const [checks, setChecks] = useState>(), [busy, setBusy] = useState(false), [error, setError] = useState(); async function check() { setBusy(true); try { setChecks(await api.check()); } catch (e) { setError(e); } finally { setBusy(false); } } async function revoke(id: string) { if ( !window.confirm( 'Revoke this asset? It will no longer be available for rendering or download.', ) ) return; try { await api.revoke(id); await client.invalidateQueries({ queryKey: ['assets'] }); } catch (e) { setError(e); } } return ( <> {busy ? 'Checking…' : 'Check connections'} } />
{Object.entries(status.data?.providers || {}).map(([key, p]) => (
{key}

{p.name}

{checks?.[key]?.message || (p.configured ? 'Configured · not verified' : 'Not configured')} {!(key === 'dialogue' ? status.data?.capabilities.ai_dialogue : status.data?.capabilities.animated_video) && (

Disabled for this MVP. Connection checks do not enable the feature.

)}

{key === 'dialogue' ? 'Creates editable dialogue drafts. Scripted mode works without it.' : key === 'speech' ? 'Synthesizes speech using your authorized voice references.' : 'Animates both characters from a shared image and two audio tracks.'}

))}

Hugging Face deployment

Set SPEECH_URL, VIDEO_URL, OLLAMA_URL and{' '} PROVIDER_TOKEN in Space variables and secrets. Credentials never enter the browser.

Worker: {status.data?.worker ? 'Heartbeat received' : 'No heartbeat yet'} . Start the separate worker with the API.

Docker Spaces documentation

Demo assets

This MVP uses the included fictional scene. Image uploads and character editing are disabled.

{assets.data?.length ? (
{assets.data.map((a) => (
{a.name} {a.kind} · {a.rights} · {a.rights_note}
{a.id !== DEMO_IMAGE_ID && ( )}
))}
) : (

Your uploaded assets will appear here.

)}

What to review

{status.data?.limitations.map((l) => (

{l}

))}
); }