Skip to content

Scheduling infrastructure for absolutely everyone.

feat/add-tooltip-to-assigned-badge (#27262)

Dhairyashil Shinde17cc9358d722
diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsx
index 67b32999acf..680260a10f2 100644
--- a/apps/web/modules/event-types/views/event-types-listing-view.tsx
+++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx
@@ -214,9 +214,11 @@ const Item = ({
</Badge>
)}
{showAssignedBadge && (
- <Badge variant="blue" className="ml-2" data-testid="assigned-badge">
- {t("assigned")}
- </Badge>
+ <Tooltip content={t("you_are_assigned_to_this_event")}>
+ <Badge variant="blue" className="ml-2" data-testid="assigned-badge">
+ {t("assigned")}
+ </Badge>
+ </Tooltip>
)}
</div>
);
@@ -256,9 +258,11 @@ const Item = ({
</Badge>
)}
{showAssignedBadge && (
- <Badge variant="blue" className="ml-2" data-testid="assigned-badge">
- {t("assigned")}
- </Badge>
+ <Tooltip content={t("you_are_assigned_to_this_event")}>
+ <Badge variant="blue" className="ml-2" data-testid="assigned-badge">
+ {t("assigned")}
+ </Badge>
+ </Tooltip>
)}
</div>
<EventTypeDescription
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index f5d2a0cef98..8a4bc44105b 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -1001,6 +1001,7 @@
"hidden": "Hidden",
"readonly": "Read only",
"assigned": "Assigned",
+ "you_are_assigned_to_this_event": "You are assigned to this event",
"one_time_link": "One-time link",
"plan_description": "You're currently on the {{plan}} plan.",
"plan_upgrade_invitation": "Upgrade your account to the PRO plan to unlock all of the features we have to offer.",