From 30c9f0eb7979cb6506be991da8c4fd46458695cc Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Thu, 1 Oct 2026 15:20:16 +0200 Subject: [PATCH] feat: a DuckLake asset opens on a Data tab with the database manager Co-Authored-By: Claude Opus 5.5 (1M context) --- .../AssetGraph/DucklakeAssetPanel.svelte | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/assets/AssetGraph/DucklakeAssetPanel.svelte b/frontend/src/lib/components/assets/AssetGraph/DucklakeAssetPanel.svelte index 5f7ad050e4..65bd86258d 100644 --- a/frontend/src/lib/components/assets/AssetGraph/DucklakeAssetPanel.svelte +++ b/frontend/src/lib/components/assets/AssetGraph/DucklakeAssetPanel.svelte @@ -11,7 +11,8 @@ // can't be read), so a selectable version always exists in the table. import ToggleButtonGroup from '$lib/components/common/toggleButton-v2/ToggleButtonGroup.svelte' import ToggleButton from '$lib/components/common/toggleButton-v2/ToggleButton.svelte' - import { Table2, History, Columns3 } from 'lucide-svelte' + import { Table2, History, Columns3, Database } from 'lucide-svelte' + import DBManagerContent from '$lib/components/DBManagerContent.svelte' import { Pane, Splitpanes } from 'svelte-splitpanes' import { resource } from 'runed' import { fetchDucklakeSnapshots } from '$lib/components/dbOps' @@ -31,7 +32,7 @@ } let { path, workspace, schemaCanEvolve = true }: Props = $props() - let tab = $state<'partitions' | 'history' | 'schema'>('partitions') + let tab = $state<'data' | 'partitions' | 'history' | 'schema'>('data') // The user's explicit snapshot pick (undefined until they click a row). let selectedVersion = $state(undefined) @@ -72,24 +73,28 @@
- {#if !qualifiedTable} - - - {:else} -
- (tab = e.detail)}> - {#snippet children({ item })} - +
+ (tab = e.detail)}> + {#snippet children({ item })} + + + + {#if qualifiedTable} - {/snippet} - -
+ {/if} + {/snippet} +
+
-
- {#if tab === 'partitions'} +
+ {#if tab === 'data' && parsed} + + {#key path} + + {/key} + {:else if tab === 'partitions' || !qualifiedTable} {:else if tab === 'schema'} @@ -117,7 +122,6 @@
- {/if} -
- {/if} + {/if} +