From 1f6c2d2a6b8da29ef29a874709d90da138123216 Mon Sep 17 00:00:00 2001 From: leefer <2298888111@qq.com> Date: Fri, 23 Oct 2026 12:43:05 +0800 Subject: [PATCH] HEL-733: align approved motion and audit remaining sample gaps Co-authored-by: multica-agent --- .../src/lib/actions/finishAnimations.ts | 18 ++ .../components/agent/AgentWorkspace.svelte | 16 +- .../agent/LegacyAgentWorkspace.svelte | 21 ++- .../src/lib/components/desk/Artboard.svelte | 86 ++++++++- .../lib/components/desk/HistoryRail.svelte | 64 ++++--- .../src/lib/components/desk/StudioDesk.svelte | 65 ++----- .../src/lib/components/shell/AppShell.svelte | 44 +++-- .../lib/components/shell/ThemeChoices.svelte | 36 +++- .../src/lib/components/ui/Modal.svelte | 54 ++++-- calliope-web/src/lib/components/ui/icons.ts | 1 + calliope-web/src/lib/theme.ts | 11 +- calliope-web/src/routes/app.css | 172 +++++++++++++++--- .../src/routes/build-scene/+page.svelte | 17 +- calliope-web/src/routes/canvas/+page.svelte | 3 +- .../src/routes/canvas/[id]/+page.svelte | 12 +- calliope-web/static/themes.css | 83 ++++++++- .../2026-10-23-hel733-motion-audit.md | 47 +++++ e2e/hel732-visual.cjs | 2 +- e2e/hel733-audit.mjs | 114 ++++++++++++ e2e/hel733-live.cjs | 86 +++++++++ e2e/run-hel733.py | 57 ++++++ 21 files changed, 836 insertions(+), 173 deletions(-) create mode 100644 calliope-web/src/lib/actions/finishAnimations.ts create mode 100644 docs/changelogs/2026-10-23-hel733-motion-audit.md create mode 100644 e2e/hel733-audit.mjs create mode 100644 e2e/hel733-live.cjs create mode 100644 e2e/run-hel733.py diff --git a/calliope-web/src/lib/actions/finishAnimations.ts b/calliope-web/src/lib/actions/finishAnimations.ts new file mode 100644 index 00000000..e3baa42d --- /dev/null +++ b/calliope-web/src/lib/actions/finishAnimations.ts @@ -0,0 +1,18 @@ +import type { Action } from "svelte/action"; + +/** HEL-716: interacting with an arriving result skips its development effect. */ +export const finishAnimations: Action = (node) => { + const finish = () => { + for (const animation of node.getAnimations({ subtree: true })) { + if (animation.playState === "running") animation.finish(); + } + }; + node.addEventListener("pointerdown", finish); + node.addEventListener("keydown", finish); + return { + destroy() { + node.removeEventListener("pointerdown", finish); + node.removeEventListener("keydown", finish); + }, + }; +}; diff --git a/calliope-web/src/lib/components/agent/AgentWorkspace.svelte b/calliope-web/src/lib/components/agent/AgentWorkspace.svelte index 1e91e199..34ddc6ea 100644 --- a/calliope-web/src/lib/components/agent/AgentWorkspace.svelte +++ b/calliope-web/src/lib/components/agent/AgentWorkspace.svelte @@ -1,5 +1,6 @@