Skip to content

Commit 59bf8fa

Browse files
authored
Merge pull request #2549 from trycompai/fix/integrations-ui-cleanup
fix(integrations): tooltip on +N more badge + hide AI Agent integrations
2 parents b61b0db + f25649d commit 59bf8fa

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

apps/app/src/app/(app)/[orgId]/integrations/components/PlatformIntegrations.tsx

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
DialogTitle,
2323
} from '@trycompai/ui/dialog';
2424
import { Skeleton } from '@trycompai/ui/skeleton';
25+
import { Tooltip, TooltipContent, TooltipTrigger } from '@trycompai/ui/tooltip';
2526
import {
2627
AlertCircle,
2728
AlertTriangle,
@@ -278,12 +279,8 @@ export function PlatformIntegrations({ className, taskTemplates }: PlatformInteg
278279
return a.provider.name.localeCompare(b.provider.name);
279280
});
280281

281-
const customIntegrations: UnifiedIntegration[] = INTEGRATIONS.map((integration) => ({
282-
type: 'custom' as const,
283-
integration,
284-
}));
285-
286-
const allIntegrations = [...platformIntegrations, ...customIntegrations];
282+
// AI Agent integrations are hidden — they are not real integrations
283+
const allIntegrations = [...platformIntegrations];
287284
if (vendorNames.size === 0) {
288285
return allIntegrations;
289286
}
@@ -679,12 +676,24 @@ export function PlatformIntegrations({ className, taskTemplates }: PlatformInteg
679676
);
680677
})}
681678
{provider.mappedTasks.length > 3 && (
682-
<Badge
683-
variant="outline"
684-
className="text-[10px] px-1.5 py-0.5 font-normal"
685-
>
686-
+{provider.mappedTasks.length - 3} more
687-
</Badge>
679+
<Tooltip>
680+
<TooltipTrigger asChild>
681+
<Badge
682+
variant="outline"
683+
className="text-[10px] px-1.5 py-0.5 font-normal cursor-default"
684+
>
685+
+{provider.mappedTasks.length - 3} more
686+
</Badge>
687+
</TooltipTrigger>
688+
<TooltipContent side="bottom" className="max-w-xs">
689+
<p className="text-xs">
690+
{provider.mappedTasks
691+
.slice(3)
692+
.map((t) => t.name)
693+
.join(', ')}
694+
</p>
695+
</TooltipContent>
696+
</Tooltip>
688697
)}
689698
</div>
690699
)}

0 commit comments

Comments
 (0)