Revamp Google Cal warning for Meet, Amie, and Vimcal (#7308)

* Create requires Google Cal component

* Create installed GCal message

* Move requires GCal component to App

* Clean up

* Abstract prerequisite component

* Add requires message on app card

* Refactor to dependency

* Clean up

* Change typeform dep & remove app card dep component

* Clean up

* Change dependency to dependencies

* Pass disableInstall to default install button for AppCard

* Refactor app page to dependencies

* Type fix

* More type fixes

* Update apps/web/components/apps/App.tsx

* Apply suggestions from code review

---------

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-03-09 10:07:23 +01:00
1 parent c32aadf297
commit 58b439ca65
18 files changed
+240 -121

No files matched your search

+8 -2
View File
@@ -1,8 +1,8 @@
import type { Prisma } from "@prisma/client";
import { Tag } from "@calcom/app-store/types";
import type { Tag } from "@calcom/app-store/types";
import { Optional } from "./utils";
import type { Optional } from "./utils";
type CommonProperties = {
default?: false;
@@ -138,12 +138,18 @@ export interface App {
dirName?: string;
isTemplate?: boolean;
__template?: string;
/** Slug of an app needed to be installed before the current app can be added */
dependencies?: string[];
}
export type AppFrontendPayload = Omit<App, "key"> & {
/** We should type error if keys are leaked to the frontend */
isDefault?: boolean;
key?: never;
dependencyData?: {
name?: string;
installed?: boolean;
}[];
};
export type AppMeta = Optional<App, "rating" | "trending" | "reviews" | "verified">;