feat(HEL-729): unify the Nocturne creative desk and isolate history

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-21 21:07:19 +08:00
co-authored by multica-agent
parent 8e84e4c21f
commit 2304ab1538
17 changed files with 1271 additions and 161 deletions
@@ -1,4 +1,5 @@
<script lang="ts">
import { page } from '$app/state';
import { createMutation, useQueryClient } from '@tanstack/svelte-query';
import Button from '$lib/components/ui/Button.svelte';
import ConfirmDialog from '$lib/components/ui/ConfirmDialog.svelte';
@@ -35,6 +36,18 @@
let { rows, endpoints }: Props = $props();
// A pending workflow on the creative desk leads to its actual mapping/test row.
let deepLinkDone = false;
$effect(() => {
if (deepLinkDone || !rows.length) return;
const id = Number(page.url.searchParams.get('wf'));
const row = rows.find((r) => r.id === id);
deepLinkDone = true;
if (!row) return;
search = row.name;
if (rowNeedsOutputMap(row)) void toggleWfMapEdit(row);
});
const client = useQueryClient();
// ------------------------------------------------------------------