diff --git a/src/content/panel/components/ComponentDetails.tsx b/src/content/panel/components/ComponentDetails.tsx index 4945665..ee0d5b2 100644 --- a/src/content/panel/components/ComponentDetails.tsx +++ b/src/content/panel/components/ComponentDetails.tsx @@ -11,6 +11,7 @@ import { captureElementToClipboard } from '@/lib/screenshot'; import type { RuntimeMessage } from '@/lib/types'; import { getPanelHost } from '../../shadow-host'; import { useEnvHost, useStore } from '../store'; +import { CopyableUri } from './CopyableUri'; import { Icon } from './Icon'; import { Breadcrumb } from './Breadcrumb'; import { AnnotationEditor } from './AnnotationEditor'; @@ -58,7 +59,15 @@ export function ComponentDetails() {

Component

{selected.displayName}

- {selected.instance &&

{selected.instance}

} + {/* Copy yields the *full* URI even though the displayed text is the + shorter instance id — most consumers (Clay tools, fetch URLs, etc.) + want the URI, not just the suffix. The full URI surfaces in the + tooltip on hover so it's still discoverable. */} +
+
+ ); +} diff --git a/src/content/panel/components/PageInfo.tsx b/src/content/panel/components/PageInfo.tsx index bfd607b..7f54fad 100644 --- a/src/content/panel/components/PageInfo.tsx +++ b/src/content/panel/components/PageInfo.tsx @@ -2,6 +2,7 @@ import { buildEditorUrl, buildUrl, unpublishedUri } from '@/lib/clay-uri'; import { findMappingForHost, rewriteUrlToEnv } from '@/lib/site-host'; import { SITE_ENV_LABELS, SITE_ENV_ORDER, type RuntimeMessage } from '@/lib/types'; import { useEnvHost, useStore } from '../store'; +import { CopyableUri } from './CopyableUri'; import { Icon } from './Icon'; import { ExportMenu } from './ExportMenu'; @@ -31,7 +32,7 @@ export function PageInfo() {

Page

{page.pageInstance ?? 'Unknown page'}

-

{page.pageUri}

+