diff --git a/src/components/AssetsPanel.vue b/src/components/AssetsPanel.vue index 8bb14780d..b24863c5b 100644 --- a/src/components/AssetsPanel.vue +++ b/src/components/AssetsPanel.vue @@ -6,6 +6,7 @@ import { useI18n } from '@open-pencil/vue' import { nodeIcon } from '@/app/editor/icons' import { useEditorStore } from '@/app/editor/active-store' +import { openExternalLink } from '@/app/shell/ui' import { useButtonUI } from '@/components/ui/button' import { useInputUI } from '@/components/ui/input' import Tip from '@/components/ui/Tip.vue' @@ -18,6 +19,9 @@ type LocalAsset = { variants: Array<{ name: string; values: string[] }> variantCount: number hasConflicts: boolean + sourceLibraryKey: string | null + description: string + docsUrl: string | null } const editor = useEditorStore() @@ -59,7 +63,10 @@ const assets = computed(() => { componentId: defaultVariant?.id ?? null, variants, variantCount: node.type === 'COMPONENT_SET' ? node.childIds.length : 0, - hasConflicts: conflicts.length > 0 + hasConflicts: conflicts.length > 0, + sourceLibraryKey: node.sourceLibraryKey, + description: node.symbolDescription, + docsUrl: node.symbolLinks[0]?.uri ?? null } }) .sort((a, b) => a.name.localeCompare(b.name)) @@ -129,7 +136,16 @@ function insertAsset(asset: LocalAsset) { aria-hidden="true" /> - {{ asset.name }} + + {{ asset.name }} + + Library + + variant.name).join(', ') }} + + {{ asset.description }} + + + + + +