From c031f2ff53fb74cf665b50501eec19281c20f898 Mon Sep 17 00:00:00 2001 From: tristantr Date: Tue, 9 Jun 2026 18:51:16 +0200 Subject: [PATCH] fix(deploy-to-hub): keep item summary on rehydrated draft, drop placeholder diff button Rehydrated draft items now carry their summary (from the Hub) so step 2 shows the summary like step 1 instead of falling back to the path. Remove the "Diff vs submitted" button: it only toasted add/remove counts with no view, which read as broken. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../workspaceSettings/DeployToHub.svelte | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/frontend/src/lib/components/workspaceSettings/DeployToHub.svelte b/frontend/src/lib/components/workspaceSettings/DeployToHub.svelte index f68776fac8..07462af1d4 100644 --- a/frontend/src/lib/components/workspaceSettings/DeployToHub.svelte +++ b/frontend/src/lib/components/workspaceSettings/DeployToHub.svelte @@ -49,7 +49,6 @@ Code2, Copy, ExternalLink, - GitCompare, Globe, Info, LayoutDashboard, @@ -424,6 +423,7 @@ key, path: wpath, kind: it.kind as Kind, + summary: it.summary ?? undefined, rec: it.has_recording ? 'recorded' : 'none' } satisfies DeployItem }) @@ -1202,16 +1202,6 @@ } } let syncing = $state(false) - async function showDiff() { - const workspace = $workspaceStore - if (!workspace) return - await loadWorkspace(workspace, workspaceLoadSeq) - const draftKeys = new Set(draftItems.map((i) => i.key)) - const workspaceKeys = new Set(workspaceItems.map((i) => i.key)) - const added = workspaceItems.filter((i) => !draftKeys.has(i.key)).length - const removed = draftItems.filter((i) => !workspaceKeys.has(i.key)).length - sendUserToast(`Diff: +${added} added, -${removed} removed (vs submitted bundle).`) - } async function syncWithHub() { const workspace = $workspaceStore if (!workspace) return @@ -1579,18 +1569,6 @@ Open in Hub {/if} - {#if phase === 'live'} -
- -
- {/if} {#if phase === 'predeploy'}