Skip to content

Commit 0ad7d7a

Browse files
tofikwestclaude
andcommitted
feat(integrations): add tooltip to "+N more" badge showing remaining task names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b61b0db commit 0ad7d7a

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

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

Lines changed: 19 additions & 6 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,
@@ -679,12 +680,24 @@ export function PlatformIntegrations({ className, taskTemplates }: PlatformInteg
679680
);
680681
})}
681682
{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>
683+
<Tooltip>
684+
<TooltipTrigger asChild>
685+
<Badge
686+
variant="outline"
687+
className="text-[10px] px-1.5 py-0.5 font-normal cursor-default"
688+
>
689+
+{provider.mappedTasks.length - 3} more
690+
</Badge>
691+
</TooltipTrigger>
692+
<TooltipContent side="bottom" className="max-w-xs">
693+
<p className="text-xs">
694+
{provider.mappedTasks
695+
.slice(3)
696+
.map((t) => t.name)
697+
.join(', ')}
698+
</p>
699+
</TooltipContent>
700+
</Tooltip>
688701
)}
689702
</div>
690703
)}

0 commit comments

Comments
 (0)