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:
18 files changed
+240
-121
No files matched your search
Vendored
+8
-2
@@ -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">;
|
||||
Reference in new issue
Block a user