Remove reviews/rating/trending/verified props (#8482)
This commit is contained in:
parent
e870312ebe
commit
25df264823
|
@ -32,13 +32,8 @@ export async function getAppRegistry() {
|
||||||
/* This is now handled from the DB */
|
/* This is now handled from the DB */
|
||||||
// if (!app.installed) return apps;
|
// if (!app.installed) return apps;
|
||||||
|
|
||||||
const { rating, reviews, trending, verified, ...remainingAppProps } = app;
|
|
||||||
apps.push({
|
apps.push({
|
||||||
rating: rating || 0,
|
...app,
|
||||||
reviews: reviews || 0,
|
|
||||||
trending: trending || true,
|
|
||||||
verified: verified || true,
|
|
||||||
...remainingAppProps,
|
|
||||||
category: app.category || "other",
|
category: app.category || "other",
|
||||||
installed:
|
installed:
|
||||||
true /* All apps from DB are considered installed by default. @TODO: Add and filter our by `enabled` property */,
|
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({
|
apps.push({
|
||||||
rating: rating || 0,
|
...app,
|
||||||
reviews: reviews || 0,
|
|
||||||
trending: trending || true,
|
|
||||||
verified: verified || true,
|
|
||||||
...remainingAppProps,
|
|
||||||
categories: dbapp.categories,
|
categories: dbapp.categories,
|
||||||
credentials: dbapp.credentials,
|
credentials: dbapp.credentials,
|
||||||
installed: true,
|
installed: true,
|
||||||
|
|
|
@ -14,12 +14,8 @@ export const metadata = {
|
||||||
category: "calendar",
|
category: "calendar",
|
||||||
logo: "/api/app-store/applecalendar/icon.svg",
|
logo: "/api/app-store/applecalendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "apple-calendar",
|
slug: "apple-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "applecalendar",
|
dirName: "applecalendar",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -14,12 +14,8 @@ export const metadata = {
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/caldavcalendar/icon.svg",
|
logo: "/api/app-store/caldavcalendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "caldav-calendar",
|
slug: "caldav-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "ali@cal.com",
|
email: "ali@cal.com",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,8 @@ export const metadata = {
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/caldavcalendar/icon.svg",
|
logo: "/api/app-store/caldavcalendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "caldav-calendar",
|
slug: "caldav-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "caldavcalendar",
|
dirName: "caldavcalendar",
|
||||||
} as App;
|
} as App;
|
||||||
|
|
|
@ -11,12 +11,8 @@ export const metadata = {
|
||||||
variant: "conferencing",
|
variant: "conferencing",
|
||||||
url: "https://daily.co",
|
url: "https://daily.co",
|
||||||
categories: ["video"],
|
categories: ["video"],
|
||||||
trending: true,
|
|
||||||
logo: "/api/app-store/dailyvideo/icon.svg",
|
logo: "/api/app-store/dailyvideo/icon.svg",
|
||||||
publisher: "Cal.com",
|
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",
|
category: "video",
|
||||||
slug: "daily-video",
|
slug: "daily-video",
|
||||||
title: "Cal Video",
|
title: "Cal Video",
|
||||||
|
|
|
@ -15,12 +15,8 @@ export const metadata = {
|
||||||
label: "Exchange Calendar",
|
label: "Exchange Calendar",
|
||||||
logo: "/api/app-store/exchange2013calendar/icon.svg",
|
logo: "/api/app-store/exchange2013calendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "exchange2013-calendar",
|
slug: "exchange2013-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "exchange2013calendar",
|
dirName: "exchange2013calendar",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -15,12 +15,8 @@ export const metadata = {
|
||||||
label: "Exchange Calendar",
|
label: "Exchange Calendar",
|
||||||
logo: "/api/app-store/exchange2016calendar/icon.svg",
|
logo: "/api/app-store/exchange2016calendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "exchange2016-calendar",
|
slug: "exchange2016-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "exchange2016calendar",
|
dirName: "exchange2016calendar",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -11,15 +11,11 @@ export const metadata = {
|
||||||
imageSrc: "/api/app-store/giphy/icon.svg",
|
imageSrc: "/api/app-store/giphy/icon.svg",
|
||||||
logo: "/api/app-store/giphy/icon.svg",
|
logo: "/api/app-store/giphy/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 0,
|
|
||||||
reviews: 0,
|
|
||||||
slug: "giphy",
|
slug: "giphy",
|
||||||
title: "Giphy",
|
title: "Giphy",
|
||||||
trending: true,
|
|
||||||
type: "giphy_other",
|
type: "giphy_other",
|
||||||
url: "https://cal.com/apps/giphy",
|
url: "https://cal.com/apps/giphy",
|
||||||
variant: "other",
|
variant: "other",
|
||||||
verified: true,
|
|
||||||
extendsFeature: "EventType",
|
extendsFeature: "EventType",
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "giphy",
|
dirName: "giphy",
|
||||||
|
|
|
@ -14,12 +14,8 @@ export const metadata = {
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/googlecalendar/icon.svg",
|
logo: "/api/app-store/googlecalendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "google-calendar",
|
slug: "google-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "googlecalendar",
|
dirName: "googlecalendar",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -16,11 +16,7 @@ export const metadata = {
|
||||||
variant: "conferencing",
|
variant: "conferencing",
|
||||||
logo: "/api/app-store/googlevideo/logo.webp",
|
logo: "/api/app-store/googlevideo/logo.webp",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
appData: {
|
appData: {
|
||||||
|
|
|
@ -12,14 +12,10 @@ export const metadata = {
|
||||||
logo: "/api/app-store/hubspot/icon.svg",
|
logo: "/api/app-store/hubspot/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
url: "https://hubspot.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"],
|
categories: ["other"],
|
||||||
label: "HubSpot CRM",
|
label: "HubSpot CRM",
|
||||||
slug: "hubspot",
|
slug: "hubspot",
|
||||||
title: "HubSpot CRM",
|
title: "HubSpot CRM",
|
||||||
trending: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "hubspot",
|
dirName: "hubspot",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -14,13 +14,9 @@ export const metadata = {
|
||||||
logo: "/api/app-store/huddle01video/icon.svg",
|
logo: "/api/app-store/huddle01video/icon.svg",
|
||||||
publisher: "huddle01.com",
|
publisher: "huddle01.com",
|
||||||
url: "https://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",
|
category: "web3",
|
||||||
slug: "huddle01",
|
slug: "huddle01",
|
||||||
title: "Huddle01",
|
title: "Huddle01",
|
||||||
trending: true,
|
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
email: "support@huddle01.com",
|
email: "support@huddle01.com",
|
||||||
appData: {
|
appData: {
|
||||||
|
|
|
@ -13,12 +13,8 @@ export const metadata = {
|
||||||
logo: "/api/app-store/jitsivideo/icon.svg",
|
logo: "/api/app-store/jitsivideo/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
url: "https://jitsi.org/",
|
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",
|
slug: "jitsi",
|
||||||
title: "Jitsi Meet",
|
title: "Jitsi Meet",
|
||||||
trending: true,
|
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
appData: {
|
appData: {
|
||||||
|
|
|
@ -13,12 +13,8 @@ export const metadata = {
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/larkcalendar/icon.svg",
|
logo: "/api/app-store/larkcalendar/icon.svg",
|
||||||
publisher: "Lark",
|
publisher: "Lark",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "lark-calendar",
|
slug: "lark-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://larksuite.com/",
|
url: "https://larksuite.com/",
|
||||||
verified: true,
|
|
||||||
email: "alan@larksuite.com",
|
email: "alan@larksuite.com",
|
||||||
dirName: "larkcalendar",
|
dirName: "larkcalendar",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -13,12 +13,8 @@ export const metadata = {
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/office365calendar/icon.svg",
|
logo: "/api/app-store/office365calendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "office365-calendar",
|
slug: "office365-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@ export const metadata = {
|
||||||
category: "payment",
|
category: "payment",
|
||||||
categories: ["payment"],
|
categories: ["payment"],
|
||||||
logo: "/api/app-store/stripepayment/icon.svg",
|
logo: "/api/app-store/stripepayment/icon.svg",
|
||||||
rating: 4.6,
|
|
||||||
trending: true,
|
|
||||||
reviews: 69,
|
|
||||||
imageSrc: "/api/app-store/stripepayment/icon.svg",
|
imageSrc: "/api/app-store/stripepayment/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
title: "Stripe",
|
title: "Stripe",
|
||||||
|
@ -25,7 +22,6 @@ export const metadata = {
|
||||||
docsUrl: "https://stripe.com/docs",
|
docsUrl: "https://stripe.com/docs",
|
||||||
variant: "payment",
|
variant: "payment",
|
||||||
extendsFeature: "EventType",
|
extendsFeature: "EventType",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "stripepayment",
|
dirName: "stripepayment",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -15,10 +15,6 @@ export const metadata = {
|
||||||
logo: "/api/app-store/tandemvideo/icon.svg",
|
logo: "/api/app-store/tandemvideo/icon.svg",
|
||||||
publisher: "",
|
publisher: "",
|
||||||
url: "",
|
url: "",
|
||||||
verified: true,
|
|
||||||
trending: true,
|
|
||||||
rating: 0,
|
|
||||||
reviews: 0,
|
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
appData: {
|
appData: {
|
||||||
|
|
|
@ -13,15 +13,11 @@ export const metadata = {
|
||||||
logo: "/api/app-store/vital/icon.svg",
|
logo: "/api/app-store/vital/icon.svg",
|
||||||
label: "Vital",
|
label: "Vital",
|
||||||
publisher: "Vital",
|
publisher: "Vital",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "vital-automation",
|
slug: "vital-automation",
|
||||||
title: "Vital",
|
title: "Vital",
|
||||||
trending: true,
|
|
||||||
type: "vital_other",
|
type: "vital_other",
|
||||||
url: "https://tryvital.io",
|
url: "https://tryvital.io",
|
||||||
variant: "other",
|
variant: "other",
|
||||||
verified: true,
|
|
||||||
email: "support@tryvital.io",
|
email: "support@tryvital.io",
|
||||||
dirName: "vital",
|
dirName: "vital",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -12,15 +12,11 @@ export const metadata = {
|
||||||
imageSrc: "/api/app-store/wipemycalother/icon-dark.svg",
|
imageSrc: "/api/app-store/wipemycalother/icon-dark.svg",
|
||||||
logo: "/api/app-store/wipemycalother/icon-dark.svg",
|
logo: "/api/app-store/wipemycalother/icon-dark.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 0,
|
|
||||||
reviews: 0,
|
|
||||||
slug: "wipe-my-cal",
|
slug: "wipe-my-cal",
|
||||||
title: "Wipe my cal",
|
title: "Wipe my cal",
|
||||||
trending: true,
|
|
||||||
type: "wipemycal_other",
|
type: "wipemycal_other",
|
||||||
url: "https://cal.com/apps/wipe-my-cal",
|
url: "https://cal.com/apps/wipe-my-cal",
|
||||||
variant: "other",
|
variant: "other",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "wipemycalother",
|
dirName: "wipemycalother",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -11,15 +11,11 @@ export const metadata = {
|
||||||
imageSrc: "/api/app-store/zapier/icon.svg",
|
imageSrc: "/api/app-store/zapier/icon.svg",
|
||||||
logo: "/api/app-store/zapier/icon.svg",
|
logo: "/api/app-store/zapier/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 0,
|
|
||||||
reviews: 0,
|
|
||||||
slug: "zapier",
|
slug: "zapier",
|
||||||
title: "Zapier",
|
title: "Zapier",
|
||||||
trending: true,
|
|
||||||
type: "zapier_automation",
|
type: "zapier_automation",
|
||||||
url: "https://cal.com/apps/zapier",
|
url: "https://cal.com/apps/zapier",
|
||||||
variant: "automation",
|
variant: "automation",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "zapier",
|
dirName: "zapier",
|
||||||
} as AppMeta;
|
} as AppMeta;
|
||||||
|
|
|
@ -13,13 +13,9 @@ export const metadata = {
|
||||||
logo: "/api/app-store/zoomvideo/icon.svg",
|
logo: "/api/app-store/zoomvideo/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
url: "https://zoom.us/",
|
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",
|
category: "video",
|
||||||
slug: "zoom",
|
slug: "zoom",
|
||||||
title: "Zoom Video",
|
title: "Zoom Video",
|
||||||
trending: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
appData: {
|
appData: {
|
||||||
location: {
|
location: {
|
||||||
|
|
|
@ -2,8 +2,6 @@ import type { Prisma } from "@prisma/client";
|
||||||
|
|
||||||
import type { Tag } from "@calcom/app-store/types";
|
import type { Tag } from "@calcom/app-store/types";
|
||||||
|
|
||||||
import type { Optional } from "./utils";
|
|
||||||
|
|
||||||
type CommonProperties = {
|
type CommonProperties = {
|
||||||
default?: false;
|
default?: false;
|
||||||
type: string;
|
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;
|
||||||
|
|
|
@ -13,12 +13,8 @@ export const _SBApps: App[] = [
|
||||||
categories: ["calendar"],
|
categories: ["calendar"],
|
||||||
logo: "/api/app-store/googlecalendar/icon.svg",
|
logo: "/api/app-store/googlecalendar/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
rating: 5,
|
|
||||||
reviews: 69,
|
|
||||||
slug: "google-calendar",
|
slug: "google-calendar",
|
||||||
trending: false,
|
|
||||||
url: "https://cal.com/",
|
url: "https://cal.com/",
|
||||||
verified: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
dirName: "googlecalendar",
|
dirName: "googlecalendar",
|
||||||
},
|
},
|
||||||
|
@ -32,13 +28,9 @@ export const _SBApps: App[] = [
|
||||||
logo: "/api/app-store/zoomvideo/icon.svg",
|
logo: "/api/app-store/zoomvideo/icon.svg",
|
||||||
publisher: "Cal.com",
|
publisher: "Cal.com",
|
||||||
url: "https://zoom.us/",
|
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",
|
category: "video",
|
||||||
slug: "zoom",
|
slug: "zoom",
|
||||||
title: "Zoom Video",
|
title: "Zoom Video",
|
||||||
trending: true,
|
|
||||||
email: "help@cal.com",
|
email: "help@cal.com",
|
||||||
appData: {
|
appData: {
|
||||||
location: {
|
location: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user