Skip to content

Commit 4006143

Browse files
authored
refactor: remove cal ai tip (calcom#24904)
1 parent c6ad767 commit 4006143

2 files changed

Lines changed: 4 additions & 19 deletions

File tree

apps/web/public/static/locales/en/common.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,6 @@
18001800
"team_url": "Team URL",
18011801
"team_members": "Team members",
18021802
"more": "More",
1803-
"cal_ai_workflows": "Cal.ai Workflows",
18041803
"and_count_more": "and {{count}} more",
18051804
"more_page_footer": "We view the mobile application as an extension of the web application. If you are performing any complicated actions, please refer back to the web application.",
18061805
"workflow_example_1": "Send SMS reminder 24 hours before event starts to attendee",

packages/features/tips/Tips.tsx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// eslint-disable-next-line no-restricted-imports
1+
22
import shuffle from "lodash/shuffle";
33
import { useState, memo } from "react";
44

@@ -156,17 +156,7 @@ export const tips: Tip[] = [
156156
},
157157
];
158158

159-
const CalAIWorkflowsTip: Tip = {
160-
id: 18,
161-
thumbnailUrl: "https://img.youtube.com/vi/fMHW6jYPIb8/0.jpg",
162-
title: "cal_ai_workflows",
163-
description: "supercharge_your_workflows_with_cal_ai_description",
164-
href: "/workflows",
165-
coverPhoto: "/cal-ai-workflow-sidebar.jpg",
166-
variant: "NewLaunchSidebarCard",
167-
};
168-
169-
const reversedTips = [...shuffle(tips).slice(0).reverse(), CalAIWorkflowsTip];
159+
const reversedTips = [...shuffle(tips).slice(0).reverse()];
170160

171161
function Tips() {
172162
const { t } = useLocale();
@@ -216,7 +206,6 @@ function Tips() {
216206
}}>
217207
{list.map((tip) => {
218208
const isTopTip = baseOriginalList.indexOf(tip) === 0;
219-
const isCalAIWorkflowsTip = tip.title === "cal_ai_workflows";
220209
return (
221210
<div
222211
className="relative"
@@ -242,10 +231,8 @@ function Tips() {
242231
learnMore={
243232
isTopTip
244233
? {
245-
href: isCalAIWorkflowsTip
246-
? "/workflow/new?action=calAi&templateWorkflowId=wf-11"
247-
: tip.href,
248-
text: isCalAIWorkflowsTip ? t("try_now") : t("learn_more"),
234+
href: tip.href,
235+
text: t("learn_more"),
249236
}
250237
: undefined
251238
}
@@ -256,7 +243,6 @@ function Tips() {
256243
tabIndex: isTopTip ? undefined : -1,
257244
"aria-hidden": isTopTip ? undefined : "true",
258245
}}
259-
buttonClassName={isCalAIWorkflowsTip ? "text-white" : undefined}
260246
/>
261247
</div>
262248
</div>

0 commit comments

Comments
 (0)