feat(HEL-729): unify the Nocturne creative desk and isolate history
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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();
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user