mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-08 02:36:10 +00:00
fix(studio): shell UX — data-loss guards, error surfacing, dialog contracts, toasts (#1964)
This commit is contained in:
@@ -2,15 +2,18 @@ export function StudioSplash({ waiting }: { waiting?: boolean }) {
|
||||
return (
|
||||
<div className="h-full w-full bg-neutral-950 flex items-center justify-center">
|
||||
{waiting ? (
|
||||
<div className="flex flex-col items-center gap-3 text-center px-6">
|
||||
<div className="w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin" />
|
||||
<div className="flex flex-col items-center gap-3 text-center px-6" role="status">
|
||||
<div className="w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin motion-reduce:animate-none" />
|
||||
<p className="text-xs text-neutral-600">
|
||||
Waiting for preview server… run{" "}
|
||||
<code className="text-neutral-500 font-mono">npm run dev</code>
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="w-4 h-4 rounded-full bg-studio-accent animate-pulse" />
|
||||
<div className="flex flex-col items-center gap-3 text-center px-6" role="status">
|
||||
<div className="w-4 h-4 rounded-full bg-studio-accent animate-pulse motion-reduce:animate-none" />
|
||||
<p className="text-xs text-neutral-600">Connecting to project…</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user