Skip to content

Scheduling infrastructure for absolutely everyone.

Remove reviews/rating/trending/verified props (#8482)

Hariom Balhara25df264823f6
diff --git a/packages/app-store/_appRegistry.ts b/packages/app-store/_appRegistry.ts
index a50eefdb874..7b761507702 100644
--- a/packages/app-store/_appRegistry.ts
+++ b/packages/app-store/_appRegistry.ts
@@ -32,13 +32,8 @@ export async function getAppRegistry() {
/* This is now handled from the DB */
// if (!app.installed) return apps;
- const { rating, reviews, trending, verified, ...remainingAppProps } = app;
apps.push({
- rating: rating || 0,
- reviews: reviews || 0,
- trending: trending || true,
- verified: verified || true,
- ...remainingAppProps,
+ ...app,
category: app.category || "other",
installed:
true /* All apps from DB are considered installed by default. @TODO: Add and filter our by `enabled` property */,
@@ -98,13 +93,8 @@ export async function getAppRegistryWithCredentials(userId: number) {
});
}
- const { rating, reviews, trending, verified, ...remainingAppProps } = app;
apps.push({
- rating: rating || 0,
- reviews: reviews || 0,
- trending: trending || true,
- verified: verified || true,
- ...remainingAppProps,
+ ...app,
categories: dbapp.categories,
credentials: dbapp.credentials,
installed: true,
diff --git a/packages/app-store/applecalendar/_metadata.ts b/packages/app-store/applecalendar/_metadata.ts
index c186b7c72ed..040610b5476 100644
--- a/packages/app-store/applecalendar/_metadata.ts
+++ b/packages/app-store/applecalendar/_metadata.ts
@@ -14,12 +14,8 @@ export const metadata = {
category: "calendar",
logo: "/api/app-store/applecalendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "apple-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "applecalendar",
} as AppMeta;
diff --git a/packages/app-store/caldavcalendar/_metadata.ts b/packages/app-store/caldavcalendar/_metadata.ts
index ba13cf77e76..0f922c88c8e 100644
--- a/packages/app-store/caldavcalendar/_metadata.ts
+++ b/packages/app-store/caldavcalendar/_metadata.ts
@@ -14,12 +14,8 @@ export const metadata = {
categories: ["calendar"],
logo: "/api/app-store/caldavcalendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "caldav-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
} as AppMeta;
diff --git a/packages/app-store/caldavcalendar/index.ts b/packages/app-store/caldavcalendar/index.ts
index 4ef9330ee84..3ddb10e2a66 100644
--- a/packages/app-store/caldavcalendar/index.ts
+++ b/packages/app-store/caldavcalendar/index.ts
@@ -14,12 +14,8 @@ export const metadata = {
categories: ["calendar"],
logo: "/api/app-store/caldavcalendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "caldav-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "caldavcalendar",
} as App;
diff --git a/packages/app-store/dailyvideo/_metadata.ts b/packages/app-store/dailyvideo/_metadata.ts
index c38f39921af..19a90acf29d 100644
--- a/packages/app-store/dailyvideo/_metadata.ts
+++ b/packages/app-store/dailyvideo/_metadata.ts
@@ -11,12 +11,8 @@ export const metadata = {
variant: "conferencing",
url: "https://daily.co",
categories: ["video"],
- trending: true,
logo: "/api/app-store/dailyvideo/icon.svg",
publisher: "Cal.com",
- verified: true,
- rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2
category: "video",
slug: "daily-video",
title: "Cal Video",
diff --git a/packages/app-store/exchange2013calendar/_metadata.ts b/packages/app-store/exchange2013calendar/_metadata.ts
index 10a8a98daa2..9ed4a3e1082 100644
--- a/packages/app-store/exchange2013calendar/_metadata.ts
+++ b/packages/app-store/exchange2013calendar/_metadata.ts
@@ -15,12 +15,8 @@ export const metadata = {
label: "Exchange Calendar",
logo: "/api/app-store/exchange2013calendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "exchange2013-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "exchange2013calendar",
} as AppMeta;
diff --git a/packages/app-store/exchange2016calendar/_metadata.ts b/packages/app-store/exchange2016calendar/_metadata.ts
index 59126acde6e..a0e50eeba55 100644
--- a/packages/app-store/exchange2016calendar/_metadata.ts
+++ b/packages/app-store/exchange2016calendar/_metadata.ts
@@ -15,12 +15,8 @@ export const metadata = {
label: "Exchange Calendar",
logo: "/api/app-store/exchange2016calendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "exchange2016-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "exchange2016calendar",
} as AppMeta;
diff --git a/packages/app-store/giphy/_metadata.ts b/packages/app-store/giphy/_metadata.ts
index fa6dc9d01b7..ff99e7e1ad6 100644
--- a/packages/app-store/giphy/_metadata.ts
+++ b/packages/app-store/giphy/_metadata.ts
@@ -11,15 +11,11 @@ export const metadata = {
imageSrc: "/api/app-store/giphy/icon.svg",
logo: "/api/app-store/giphy/icon.svg",
publisher: "Cal.com",
- rating: 0,
- reviews: 0,
slug: "giphy",
title: "Giphy",
- trending: true,
type: "giphy_other",
url: "https://cal.com/apps/giphy",
variant: "other",
- verified: true,
extendsFeature: "EventType",
dirName: "giphy",
diff --git a/packages/app-store/googlecalendar/_metadata.ts b/packages/app-store/googlecalendar/_metadata.ts
index 3a361074237..d17a4fc05f9 100644
--- a/packages/app-store/googlecalendar/_metadata.ts
+++ b/packages/app-store/googlecalendar/_metadata.ts
@@ -14,12 +14,8 @@ export const metadata = {
categories: ["calendar"],
logo: "/api/app-store/googlecalendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "google-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "googlecalendar",
} as AppMeta;
diff --git a/packages/app-store/googlevideo/_metadata.ts b/packages/app-store/googlevideo/_metadata.ts
index affd302965e..4e5d68232cd 100644
--- a/packages/app-store/googlevideo/_metadata.ts
+++ b/packages/app-store/googlevideo/_metadata.ts
@@ -16,11 +16,7 @@ export const metadata = {
variant: "conferencing",
logo: "/api/app-store/googlevideo/logo.webp",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
- trending: false,
url: "https://cal.com/",
- verified: true,
isGlobal: false,
appData: {
diff --git a/packages/app-store/hubspot/_metadata.ts b/packages/app-store/hubspot/_metadata.ts
index 013bade0aab..5989134667f 100644
--- a/packages/app-store/hubspot/_metadata.ts
+++ b/packages/app-store/hubspot/_metadata.ts
@@ -12,14 +12,10 @@ export const metadata = {
logo: "/api/app-store/hubspot/icon.svg",
publisher: "Cal.com",
url: "https://hubspot.com/",
- verified: true,
- rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2
categories: ["other"],
label: "HubSpot CRM",
slug: "hubspot",
title: "HubSpot CRM",
- trending: true,
dirName: "hubspot",
} as AppMeta;
diff --git a/packages/app-store/huddle01video/_metadata.ts b/packages/app-store/huddle01video/_metadata.ts
index c5b4b4002d5..59a1530fc55 100644
--- a/packages/app-store/huddle01video/_metadata.ts
+++ b/packages/app-store/huddle01video/_metadata.ts
@@ -14,13 +14,9 @@ export const metadata = {
logo: "/api/app-store/huddle01video/icon.svg",
publisher: "huddle01.com",
url: "https://huddle01.com",
- verified: true,
- rating: 0, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 0, // TODO: placeholder for now, pull this from TrustPilot or G2
category: "web3",
slug: "huddle01",
title: "Huddle01",
- trending: true,
isGlobal: false,
appData: {
diff --git a/packages/app-store/jitsivideo/_metadata.ts b/packages/app-store/jitsivideo/_metadata.ts
index dd26e2eb82f..a47c0add140 100644
--- a/packages/app-store/jitsivideo/_metadata.ts
+++ b/packages/app-store/jitsivideo/_metadata.ts
@@ -13,12 +13,8 @@ export const metadata = {
logo: "/api/app-store/jitsivideo/icon.svg",
publisher: "Cal.com",
url: "https://jitsi.org/",
- verified: true,
- rating: 0, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 0, // TODO: placeholder for now, pull this from TrustPilot or G2
slug: "jitsi",
title: "Jitsi Meet",
- trending: true,
isGlobal: false,
appData: {
diff --git a/packages/app-store/larkcalendar/_metadata.ts b/packages/app-store/larkcalendar/_metadata.ts
index 7e9781a2e05..3f4ee077ed4 100644
--- a/packages/app-store/larkcalendar/_metadata.ts
+++ b/packages/app-store/larkcalendar/_metadata.ts
@@ -13,12 +13,8 @@ export const metadata = {
categories: ["calendar"],
logo: "/api/app-store/larkcalendar/icon.svg",
publisher: "Lark",
- rating: 5,
- reviews: 69,
slug: "lark-calendar",
- trending: false,
url: "https://larksuite.com/",
- verified: true,
dirName: "larkcalendar",
} as AppMeta;
diff --git a/packages/app-store/office365calendar/_metadata.ts b/packages/app-store/office365calendar/_metadata.ts
index 4c6dcb92ca6..9ef8774e3da 100644
--- a/packages/app-store/office365calendar/_metadata.ts
+++ b/packages/app-store/office365calendar/_metadata.ts
@@ -13,12 +13,8 @@ export const metadata = {
categories: ["calendar"],
logo: "/api/app-store/office365calendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "office365-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
} as AppMeta;
diff --git a/packages/app-store/stripepayment/_metadata.ts b/packages/app-store/stripepayment/_metadata.ts
index f3992d34069..56b63a5ecf6 100644
--- a/packages/app-store/stripepayment/_metadata.ts
+++ b/packages/app-store/stripepayment/_metadata.ts
@@ -14,9 +14,6 @@ export const metadata = {
category: "payment",
categories: ["payment"],
logo: "/api/app-store/stripepayment/icon.svg",
- rating: 4.6,
- trending: true,
- reviews: 69,
imageSrc: "/api/app-store/stripepayment/icon.svg",
publisher: "Cal.com",
title: "Stripe",
@@ -25,7 +22,6 @@ export const metadata = {
docsUrl: "https://stripe.com/docs",
variant: "payment",
extendsFeature: "EventType",
- verified: true,
dirName: "stripepayment",
} as AppMeta;
diff --git a/packages/app-store/tandemvideo/_metadata.ts b/packages/app-store/tandemvideo/_metadata.ts
index c99041dc16b..42d484b3a9f 100644
--- a/packages/app-store/tandemvideo/_metadata.ts
+++ b/packages/app-store/tandemvideo/_metadata.ts
@@ -15,10 +15,6 @@ export const metadata = {
logo: "/api/app-store/tandemvideo/icon.svg",
publisher: "",
url: "",
- verified: true,
- trending: true,
- rating: 0,
- reviews: 0,
isGlobal: false,
appData: {
diff --git a/packages/app-store/vital/_metadata.ts b/packages/app-store/vital/_metadata.ts
index 0860dedd78d..dbbec335d32 100644
--- a/packages/app-store/vital/_metadata.ts
+++ b/packages/app-store/vital/_metadata.ts
@@ -13,15 +13,11 @@ export const metadata = {
logo: "/api/app-store/vital/icon.svg",
label: "Vital",
publisher: "Vital",
- rating: 5,
- reviews: 69,
slug: "vital-automation",
title: "Vital",
- trending: true,
type: "vital_other",
url: "https://tryvital.io",
variant: "other",
- verified: true,
dirName: "vital",
} as AppMeta;
diff --git a/packages/app-store/wipemycalother/_metadata.ts b/packages/app-store/wipemycalother/_metadata.ts
index dbc038883db..7b90892398e 100644
--- a/packages/app-store/wipemycalother/_metadata.ts
+++ b/packages/app-store/wipemycalother/_metadata.ts
@@ -12,15 +12,11 @@ export const metadata = {
imageSrc: "/api/app-store/wipemycalother/icon-dark.svg",
logo: "/api/app-store/wipemycalother/icon-dark.svg",
publisher: "Cal.com",
- rating: 0,
- reviews: 0,
slug: "wipe-my-cal",
title: "Wipe my cal",
- trending: true,
type: "wipemycal_other",
url: "https://cal.com/apps/wipe-my-cal",
variant: "other",
- verified: true,
dirName: "wipemycalother",
} as AppMeta;
diff --git a/packages/app-store/zapier/_metadata.ts b/packages/app-store/zapier/_metadata.ts
index cddef338dae..df2d6685ce6 100644
--- a/packages/app-store/zapier/_metadata.ts
+++ b/packages/app-store/zapier/_metadata.ts
@@ -11,15 +11,11 @@ export const metadata = {
imageSrc: "/api/app-store/zapier/icon.svg",
logo: "/api/app-store/zapier/icon.svg",
publisher: "Cal.com",
- rating: 0,
- reviews: 0,
slug: "zapier",
title: "Zapier",
- trending: true,
type: "zapier_automation",
url: "https://cal.com/apps/zapier",
variant: "automation",
- verified: true,
dirName: "zapier",
} as AppMeta;
diff --git a/packages/app-store/zoomvideo/_metadata.ts b/packages/app-store/zoomvideo/_metadata.ts
index cf2232aad45..8819c88e671 100644
--- a/packages/app-store/zoomvideo/_metadata.ts
+++ b/packages/app-store/zoomvideo/_metadata.ts
@@ -13,13 +13,9 @@ export const metadata = {
logo: "/api/app-store/zoomvideo/icon.svg",
publisher: "Cal.com",
url: "https://zoom.us/",
- verified: true,
- rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2
category: "video",
slug: "zoom",
title: "Zoom Video",
- trending: true,
appData: {
location: {
diff --git a/packages/types/App.d.ts b/packages/types/App.d.ts
index de0862634cf..c5f36726e49 100644
--- a/packages/types/App.d.ts
+++ b/packages/types/App.d.ts
@@ -2,8 +2,6 @@ import type { Prisma } from "@prisma/client";
import type { Tag } from "@calcom/app-store/types";
-import type { Optional } from "./utils";
-
type CommonProperties = {
default?: false;
type: string;
@@ -156,4 +154,4 @@ export type AppFrontendPayload = Omit<App, "key"> & {
}[];
};
-export type AppMeta = Optional<App, "rating" | "trending" | "reviews" | "verified">;
+export type AppMeta = App;
diff --git a/packages/ui/components/apps/_storybookData.ts b/packages/ui/components/apps/_storybookData.ts
index 8994519230f..d0af1640db4 100644
--- a/packages/ui/components/apps/_storybookData.ts
+++ b/packages/ui/components/apps/_storybookData.ts
@@ -13,12 +13,8 @@ export const _SBApps: App[] = [
categories: ["calendar"],
logo: "/api/app-store/googlecalendar/icon.svg",
publisher: "Cal.com",
- rating: 5,
- reviews: 69,
slug: "google-calendar",
- trending: false,
url: "https://cal.com/",
- verified: true,
dirName: "googlecalendar",
},
@@ -32,13 +28,9 @@ export const _SBApps: App[] = [
logo: "/api/app-store/zoomvideo/icon.svg",
publisher: "Cal.com",
url: "https://zoom.us/",
- verified: true,
- rating: 4.3, // TODO: placeholder for now, pull this from TrustPilot or G2
- reviews: 69, // TODO: placeholder for now, pull this from TrustPilot or G2
category: "video",
slug: "zoom",
title: "Zoom Video",
- trending: true,
appData: {
location: {