Skip to content

Commit 22e4f83

Browse files
Add tooltip to integration status
Add a tooltip to the integration status indicator, providing users with a brief explanation on hover.
1 parent 4c0e81d commit 22e4f83

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/IntegrationStatusIndicator.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useState, useEffect } from 'react';
33
import { Badge } from '@/components/ui/badge';
44
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
5-
import { CheckCircle, AlertCircle, XCircle, RefreshCw } from 'lucide-react';
5+
import { CheckCircle, AlertCircle, XCircle, RefreshCw, HelpCircle } from 'lucide-react';
66
import { Campaign } from '@/types';
77

88
interface IntegrationStatusIndicatorProps {
@@ -66,7 +66,7 @@ export const IntegrationStatusIndicator = ({ campaign }: IntegrationStatusIndica
6666
case 'fully-integrated':
6767
return {
6868
icon: <CheckCircle className="h-3 w-3" />,
69-
label: 'Parfaitement intégré',
69+
label: 'Code',
7070
variant: 'default' as const,
7171
className: 'bg-green-100 text-green-800 border-green-200',
7272
description: 'Script installé et conversions trackées avec succès'
@@ -118,6 +118,16 @@ export const IntegrationStatusIndicator = ({ campaign }: IntegrationStatusIndica
118118
</div>
119119
</TooltipContent>
120120
</Tooltip>
121+
<Tooltip>
122+
<TooltipTrigger asChild>
123+
<HelpCircle className="h-3 w-3 text-blue-500/70 cursor-help" />
124+
</TooltipTrigger>
125+
<TooltipContent>
126+
<div className="text-xs max-w-48">
127+
<p>L'indicateur "Code" vous montre si votre script de tracking RefSpring est correctement installé sur votre site e-commerce et s'il fonctionne.</p>
128+
</div>
129+
</TooltipContent>
130+
</Tooltip>
121131
</div>
122132
);
123133
};

0 commit comments

Comments
 (0)