-
-
-
-
-
- {organization.name}
- {selectionLabel && (
-
- ({selectionLabel})
-
- )}
-
- {organization.externalId && (
-
- UID: {organization.externalId}
-
- )}
-
+
+
);
};
@@ -191,9 +162,12 @@ export function getColumnProviders(
hideChildIcon
checkboxSlot={checkboxSlot}
>
-
}
+ entityAlias={row.original.name}
+ entityId={row.original.externalId ?? undefined}
+ badge={getSelectionLabel(row)}
+ showCopyAction
/>
);
@@ -207,10 +181,10 @@ export function getColumnProviders(
isExpanded={isExpanded}
checkboxSlot={checkboxSlot}
>
-
);
@@ -364,9 +338,7 @@ export function GroupNameChips({ groupNames }: GroupNameChipsProps) {
return (
{groupNames.map((name, index) => (
-
- {name}
-
+
))}
);
diff --git a/ui/components/ui/breadcrumbs/breadcrumb-navigation.tsx b/ui/components/ui/breadcrumbs/breadcrumb-navigation.tsx
index 02740bae7a..2b8436e505 100644
--- a/ui/components/ui/breadcrumbs/breadcrumb-navigation.tsx
+++ b/ui/components/ui/breadcrumbs/breadcrumb-navigation.tsx
@@ -107,7 +107,7 @@ export function BreadcrumbNavigation({
};
const renderTitleWithIcon = (titleText: string, isLink: boolean = false) => (
- <>
+
{typeof icon === "string" ? (
{titleText}
- >
+
);
// Determine which breadcrumbs to use
diff --git a/ui/components/ui/code-snippet/code-snippet.tsx b/ui/components/ui/code-snippet/code-snippet.tsx
index deea7481e4..7fefa8b552 100644
--- a/ui/components/ui/code-snippet/code-snippet.tsx
+++ b/ui/components/ui/code-snippet/code-snippet.tsx
@@ -80,7 +80,7 @@ export const CodeSnippet = ({
return (
diff --git a/ui/components/ui/entities/entity-info.tsx b/ui/components/ui/entities/entity-info.tsx
index b816416801..410cf9d086 100644
--- a/ui/components/ui/entities/entity-info.tsx
+++ b/ui/components/ui/entities/entity-info.tsx
@@ -1,5 +1,7 @@
"use client";
+import { ReactNode } from "react";
+
import {
Tooltip,
TooltipContent,
@@ -11,73 +13,67 @@ import type { ProviderType } from "@/types";
import { getProviderLogo } from "./get-provider-logo";
interface EntityInfoProps {
- cloudProvider: ProviderType;
+ cloudProvider?: ProviderType;
+ icon?: ReactNode;
entityAlias?: string;
entityId?: string;
- snippetWidth?: string;
- showConnectionStatus?: boolean;
- maxWidth?: string;
+ badge?: string;
showCopyAction?: boolean;
+ /** @deprecated No longer used — layout handles overflow naturally */
+ maxWidth?: string;
+ /** @deprecated No longer used */
+ showConnectionStatus?: boolean;
+ /** @deprecated No longer used */
+ snippetWidth?: string;
}
export const EntityInfo = ({
cloudProvider,
+ icon,
entityAlias,
entityId,
- showConnectionStatus = false,
- maxWidth = "w-[120px]",
+ badge,
showCopyAction = true,
}: EntityInfoProps) => {
const canCopy = Boolean(entityId && showCopyAction);
+ const renderedIcon =
+ icon ?? (cloudProvider ? getProviderLogo(cloudProvider) : null);
return (
-
-
- {getProviderLogo(cloudProvider)}
- {showConnectionStatus && (
-
-
-
-
- Connected
-
- )}
-
-
- {entityAlias ? (
-
-
-
- {entityAlias}
-
-
- {entityAlias}
-
- ) : (
-
-
-
- -
-
-
- No alias
-
- )}
- {entityId && (
-
+
+
+ {renderedIcon &&
{renderedIcon}
}
+
+
-
- {entityId}
-
+
+ {entityAlias || entityId || "-"}
+
- {entityId}
+
+ {entityAlias || entityId || "No alias"}
+
- {canCopy && (
-
+ {badge && (
+
+ ({badge})
+
)}
- )}
+ {entityId && (
+
+
+ UID:
+
+
+
+ )}
+
);