diff --git a/ui/components/ui/code-snippet/code-snippet.tsx b/ui/components/ui/code-snippet/code-snippet.tsx index 9440b500e6..313787d48c 100644 --- a/ui/components/ui/code-snippet/code-snippet.tsx +++ b/ui/components/ui/code-snippet/code-snippet.tsx @@ -23,6 +23,8 @@ interface CodeSnippetProps { formatter?: (value: string) => string; /** Enable multiline display (disables truncation, enables word wrap) */ multiline?: boolean; + /** Remove background and border */ + transparent?: boolean; /** Custom aria-label for the copy button */ ariaLabel?: string; } @@ -34,6 +36,7 @@ export const CodeSnippet = ({ hideCopyButton = false, icon, formatter, + transparent = false, multiline = false, ariaLabel = "Copy to clipboard", }: CodeSnippetProps) => { @@ -86,8 +89,15 @@ export const CodeSnippet = ({ return (
diff --git a/ui/components/ui/entities/entity-info.tsx b/ui/components/ui/entities/entity-info.tsx index 410cf9d086..fd2e0f96f0 100644 --- a/ui/components/ui/entities/entity-info.tsx +++ b/ui/components/ui/entities/entity-info.tsx @@ -18,6 +18,8 @@ interface EntityInfoProps { entityAlias?: string; entityId?: string; badge?: string; + /** Label before the ID value. Defaults to "UID" */ + idLabel?: string; showCopyAction?: boolean; /** @deprecated No longer used — layout handles overflow naturally */ maxWidth?: string; @@ -33,6 +35,7 @@ export const EntityInfo = ({ entityAlias, entityId, badge, + idLabel = "UID", showCopyAction = true, }: EntityInfoProps) => { const canCopy = Boolean(entityId && showCopyAction); @@ -64,7 +67,7 @@ export const EntityInfo = ({ {entityId && (
- UID: + {idLabel}: