Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

fix(studio): animate reconnecting feedback dots

open-design-crew[bot]f9bf0cbf4e10
diff --git a/docs/product/architecture.md b/docs/product/architecture.md
index 2aa2e0d6..1d67c5ef 100644
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@ -20,7 +20,7 @@ Model Gateway remains a shared media-generation backend for MCP, using local Cod
- The project sidebar opens as a modal drawer over the editor at every viewport size. It starts closed, leaves the editor dimensions unchanged, and closes via its button, outside click or Escape. The header toggle remains mounted for focus restoration; privacy, theme and language settings live in the drawer footer. Error and empty-session views retain a drawer toggle so users can select an existing project or create one. Project rows show names without dates; the heading offers a New project button instead of a count. Creation uses the existing save and revision guards before opening the blank project.
- An empty, loaded root composition shows a centered import/drop prompt over the mounted preview and hides transport controls, including the placeholder duration. The empty state requires both no timeline clips and no authored preview content; loading, failed previews and nested compositions retain their existing states. Import uses the existing timeline gateway and file-drop pipeline. The empty timeline retains its drop target and ruler, with a muted dashed track sketch instead of a duplicate import prompt or button. Empty timelines disable zoom controls. A confirmed empty composition blocks new exports at both the settings button and the shared editor render-start handler, while existing export history remains available. Properties distinguish no content from no selection; small panel empty states share muted text and icon sizing. Preview zoom percentage and Fit sit in the MVP preview header, outside the picture. Clicking the percentage opens 50%, 75%, 100%, 150% and 200% presets in a compact opaque menu. The MVP hides the corner position navigator; existing zoom gestures and Fit remain available. Browser fullscreen is unavailable in the MVP, including its playback button and keyboard entry; workspace preview expansion remains available. Playback controls respond to their own container width: secondary-button gaps narrow below 420px, and speed/loop controls hide below 420px so timecode, play/pause and volume remain on one row. Preview and track volume use upward floating vertical sliders, opened by hover or keyboard focus; clicking the speaker still toggles mute.
- The composition list places the full video first, preserves the remaining clip order, and marks the live preview target. Queued, loading, missing and failed covers share a muted gray OD placeholder without failure text; decoded covers replace it automatically. A confirmed empty root is omitted from this list using the same loaded-preview content check; when no clips remain, the panel shows a brief empty state. The MVP omits the duplicate preview breadcrumb; composition switching and existing return shortcuts remain available.
-- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Clearing the title and committing with blur or Enter saves the localized Untitled default; Escape cancels. A logo-only community link sits immediately before Export and opens the public Discord community in every interface language, with a localized accessible tooltip; external links open separately from the editor. Transient save/error status remains available. Workspace and export failures show concise causes and available next steps, with raw diagnostics behind expandable, copyable details. Workspace connection failures use a persistent single-line feedback toast at the top center with a Reconnecting status and no buttons or diagnostic details. Automatic polling continues and removes the toast on recovery; it does not start a stopped service. Other notice dismissal does not bypass write guards. Toasts stack at the top center of the editor; identical notices replace their previous instance. Error toasts use the compact neutral feedback surface and concise recognized causes, with a dismiss button and no details icon or expandable diagnostics. Detailed error panels retain their diagnostic controls. Informational toasts disappear after three seconds without a close control; actionable error notices remain dismissible and do not auto-expire. Save-queue pauses use a brief, localized feedback toast without paths, diagnostics or a retry action; it expires after three seconds without clearing the write guard or claiming that failed edits were saved. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
+- The editor header keeps the OpenDesign logo, drawer toggle and template library on the left, centers the editable project name, and places undo/redo and export on the right. Clearing the title and committing with blur or Enter saves the localized Untitled default; Escape cancels. A logo-only community link sits immediately before Export and opens the public Discord community in every interface language, with a localized accessible tooltip; external links open separately from the editor. Transient save/error status remains available. Workspace and export failures show concise causes and available next steps, with raw diagnostics behind expandable, copyable details. Workspace connection failures use a persistent single-line feedback toast at the top center with a Reconnecting status and no buttons or diagnostic details. The Reconnecting ellipsis animates without changing the toast width; reduced-motion preferences keep it static. Automatic polling waits 1.8 seconds after each completed attempt and removes the toast on recovery; it has no overall retry limit or explicit per-request timeout and does not start a stopped service. Other notice dismissal does not bypass write guards. Toasts stack at the top center of the editor; identical notices replace their previous instance. Error toasts use the compact neutral feedback surface and concise recognized causes, with a dismiss button and no details icon or expandable diagnostics. Detailed error panels retain their diagnostic controls. Informational toasts disappear after three seconds without a close control; actionable error notices remain dismissible and do not auto-expire. Save-queue pauses use a brief, localized feedback toast without paths, diagnostics or a retry action; it expires after three seconds without clearing the write guard or claiming that failed edits were saved. The template library reuses the website catalog layout: brand/use-case/video-type facets, configured featured templates, search and sorting, without site navigation, promotional hero or footer. Prism metadata and local cache updates drive the list. The catalog selects the editor locale from a shared multilingual publication, falling back to English and then the Resource default; template-copy prompts support the same eleven UI languages. Previews, author/source links and editable-project opening remain available. The detail view keeps the motion.md download action (`motionDocumentUrl`) above its guide content (`styleDescription`, `reviewFocus`, `motionGuideUrl`). Recreate opens a separate prompt dialog; copied instructions never occupy the guide area.
- The asset panel shows only the current project, with compact search/import controls, type filters, and a dedicated scrollable list. Usage filtering is omitted; used assets still sort first within each type. In both My assets and the official animation library, hover plays only the card thumbnail, while clicking opens a centered modal preview over a gray full-editor backdrop. The modal reuses Studio-styled playback, volume and speed controls; its play button stays centered, and speed/loop controls hide below 420px to avoid overlap. Volume and loop icons are 16px inside 28px buttons, and playback speed text is 12px; closing it restores access to the paused composition; previewing media does not add it to the project. The global cache view remains in source but has no editor entry in the MVP.
- Panel positions are fixed. Export settings and render history live in a compact popover below the header Export button, outside the right panel. Both side groups can temporarily collapse into 48px vertical icon rails, giving their width to preview; the rail toggle restores the previous width and tab, while a module icon opens that module. Collapse does not remove panels or remount the player. Opening the MVP starts both sides collapsed and the timeline at 30% of the available dock height (subject to minimum sizes); users can then drag the divider to enlarge or reduce it. The fixed layout reserves at least 360px for preview, 260px for each expanded side panel. Side availability retains the existing conservative breakpoints, independently of the resizable minimums: below 740px both side groups and rails hide; from 740px to 1011px only one side can expand; wider hosts allow both only when their requested widths leave the preview floor intact. Opening a side through a toggle, module shortcut or programmatic activation uses the same fit check and closes the opposite side when necessary. Shrinking the host collapses expanded sides when they no longer fit; widening restores collapsed rails without automatically reopening panels. At widths smaller than the preview floor, preview uses the available workspace. Remembered expanded side widths remain available when reopening a side. Divider hover and drag change only the thin line to green. Divider resizing and per-project expanded-size persistence remain; panel movement, closing and layout presets are absent. Preview alone can temporarily expand within the editor workspace, keeping the host chat visible and the player mounted. Its header button or Escape restores the previous layout and playback position; expansion is not persisted across reloads.
- MVP controls share a locally bundled Remix Icon 4.9.1 set with the reference design system. Menu selections consistently use check icons, and the language menu is 180px wide. Expanded side-panel tabs remain text-only; collapsed rails use the corresponding panel icons. Brand artwork and timeline geometry are separate from control icons.
diff --git a/docs/reviews/motion-mvp-ui-followup/interaction-update.md b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
index d5b72a2b..b8657fe2 100644
--- a/docs/reviews/motion-mvp-ui-followup/interaction-update.md
+++ b/docs/reviews/motion-mvp-ui-followup/interaction-update.md
@@ -44,3 +44,11 @@ The images below were captured during the local walkthrough against the working
The original screenshot does not establish the cause of the failed operation. The toast change improves the explanation when a cause is recognized; it does not prove that the original operation now succeeds. Color testing proves the asynchronous-save regression and rollback behavior, not the absence of every possible HSV/RGB quantization artifact.
The assembled PR build was also opened in the real browser through a temporary local frontend proxy, reusing the existing backend without restarting port 4173. The proxy served this checkout's production assets and permitted only reads plus the existing preview-open action; project-edit requests were blocked. [Final assembled Fit menu](pr276-assembled-fit.png) confirms all five localized options, the selected checkmark, hidden source/Position rows and the retained public Discord link. The existing project title, media values and disabled Undo were unchanged. The temporary page/server were closed and the original editor was left open.
+
+## Reconnecting activity indicator
+
+The Reconnecting ellipsis now cycles the three dots without changing toast width. The accessible status remains a single static localized phrase; reduced-motion CSS disables the animation. The existing polling policy is unchanged: wait 1.8 seconds after each completed attempt, with no overall retry limit or explicit per-request timeout. Recovery removes the notice; polling does not start a stopped local service.
+
+Browser verification used the production toast and built styles in an isolated harness, without disconnecting the real project: 45 computed-style samples captured three distinct dot-opacity states and a constant 220.4766px toast width. Simulated recovery unmounted the indicator. See [animation samples](reconnecting-animation-samples.json) and [one visual frame](reconnecting-animated.png). The real 4173 editor was rebuilt. During refresh, its service was found stopped; after restoring it with the existing interaction-workspace data directory, the original project reopened with no connection notice and Undo still disabled. No project content was changed.
+
+`check`, Studio typecheck and both working/publish builds passed. Five targeted suites cover 89 tests: 88 initially passed, and the existing connection-feedback text assertion was updated for the static screen-reader text plus aria-hidden animated dots; all 20 host tests passed on rerun. The other four suites were unchanged.
diff --git a/docs/reviews/motion-mvp-ui-followup/reconnecting-animated.png b/docs/reviews/motion-mvp-ui-followup/reconnecting-animated.png
new file mode 100644
index 00000000..b14b2875
Binary files /dev/null and b/docs/reviews/motion-mvp-ui-followup/reconnecting-animated.png differ
diff --git a/docs/reviews/motion-mvp-ui-followup/reconnecting-animation-samples.json b/docs/reviews/motion-mvp-ui-followup/reconnecting-animation-samples.json
new file mode 100644
index 00000000..55dd42ef
--- /dev/null
+++ b/docs/reviews/motion-mvp-ui-followup/reconnecting-animation-samples.json
@@ -0,0 +1,362 @@
+[
+ {
+ "dots": [
+ "1",
+ "0.2",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "0.2",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "0.2",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "0.2"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ },
+ {
+ "dots": [
+ "1",
+ "1",
+ "1"
+ ],
+ "width": 220.4765625
+ }
+]
\ No newline at end of file
diff --git a/studio/src/components/StudioToast.tsx b/studio/src/components/StudioToast.tsx
index ade370e1..9c2c1a44 100644
--- a/studio/src/components/StudioToast.tsx
+++ b/studio/src/components/StudioToast.tsx
@@ -27,7 +27,12 @@ export function StudioToast({ message, tone, presentation, leaving, onDismiss, s
</div> : <div className={`max-w-[min(420px,calc(100vw-48px))] overflow-hidden rounded-2xl px-4 py-2 text-[12px] shadow-popover bg-toast-feedback text-toast-feedback-ink`}>
<div className={status ? "flex min-w-0 items-center gap-3" : undefined}>
<span className={singleLine ? "block min-w-0 truncate leading-5" : "line-clamp-3 leading-5 [overflow-wrap:anywhere]"} title={systemMessage(message, t)}>{systemMessage(message, t)}</span>
- {status && <span className="shrink-0 leading-5 opacity-70">{t(status)}</span>}
+ {status && <span className="shrink-0 leading-5 opacity-70">
+ {status === 'Reconnecting…' ? <>
+ <span className="sr-only">{t(status)}</span>
+ <span aria-hidden="true">{t(status).replace(/(?:…|\.{3})$/, '')}<span className="hf-toast-progress-dots"><span>.</span><span>.</span><span>.</span></span></span>
+ </> : t(status)}
+ </span>}
</div>
</div>}
</div>
diff --git a/studio/src/motion/MotionStudioHost.test.tsx b/studio/src/motion/MotionStudioHost.test.tsx
index 8a5f988e..8c8590f1 100644
--- a/studio/src/motion/MotionStudioHost.test.tsx
+++ b/studio/src/motion/MotionStudioHost.test.tsx
@@ -252,7 +252,10 @@ it('shows connection failure as a one-line reconnecting toast and removes it on
state.connectionError = 'Failed to fetch /private/project';
render();
const toast = container.querySelector('[data-testid="motion-connection-toast"]')!;
- expect(toast.textContent).toBe('连接已断开重连中…');
+ expect(toast.textContent).toContain('连接已断开');
+ expect(toast.querySelector('.sr-only')?.textContent).toBe('重连中…');
+ expect(toast.querySelector('[aria-hidden="true"]')?.textContent).toBe('重连中...');
+ expect(toast.querySelectorAll('.hf-toast-progress-dots > span')).toHaveLength(3);
expect(toast.querySelector('.truncate')).not.toBeNull();
expect(container.querySelector('.motion-error-notice')).toBeNull();
expect(toast.textContent).not.toMatch(/private|details|详情/);
diff --git a/studio/src/styles/components.css b/studio/src/styles/components.css
index ede231ab..2ce85c28 100644
--- a/studio/src/styles/components.css
+++ b/studio/src/styles/components.css
@@ -704,6 +704,19 @@
}
/* Toast enter/exit (StudioToast) */
+/* Fixed-width dots make reconnect activity visible without moving the toast. */
+.hf-toast-progress-dots { display: inline-flex; }
+.hf-toast-progress-dots > span { animation: hf-toast-progress-dot 1.2s steps(1, end) infinite; }
+.hf-toast-progress-dots > span:nth-child(2) { animation-delay: 0.2s; }
+.hf-toast-progress-dots > span:nth-child(3) { animation-delay: 0.4s; }
+@keyframes hf-toast-progress-dot {
+ 0%, 100% { opacity: 0.2; }
+ 50% { opacity: 1; }
+}
+@media (prefers-reduced-motion: reduce) {
+ .hf-toast-progress-dots > span { animation: none; opacity: 1; }
+}
+
@keyframes hf-toast-in {
from {
opacity: 0;