Fix app categories (#6016)
* Fix app metas * Optimize categories on app store * Remove commented code * Remove console log * Update apps/web/pages/apps/index.tsx Co-authored-by: Omar López <[email protected]> * Add categories to missing app metadata * Fix type error * Type fix * Type fixes * More type fixes * Clean up * Fix build error * No leaky please * Remove comment Co-authored-by: Omar López <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
48 files changed
+99
-63
No files matched your search
Vendored
+7
-5
@@ -89,10 +89,10 @@ export interface App {
|
||||
/*
|
||||
* @deprecated Use categories
|
||||
*/
|
||||
category: string;
|
||||
category?: string;
|
||||
|
||||
/** The category to which this app belongs, currently we have `calendar`, `payment` or `video` */
|
||||
categories?: string[];
|
||||
categories: string[];
|
||||
/**
|
||||
* `User` is the broadest category. `EventType` is when you want to add features to EventTypes.
|
||||
* See https://app.gitbook.com/o/6snd8PyPYMhg0wUw6CeQ/s/VXRprBTuMlihk37NQgUU/~/changes/6xkqZ4qvJ3Xh9k8UaWaZ/engineering/product-specs/app-store#user-apps for more details
|
||||
@@ -121,9 +121,6 @@ export interface App {
|
||||
isGlobal?: boolean;
|
||||
/** A contact email, mainly to ask for support */
|
||||
email: string;
|
||||
|
||||
/** Needed API Keys (usually for global apps) */
|
||||
key?: Prisma.JsonValue;
|
||||
/** Needed API Keys (usually for global apps) */
|
||||
key?: Prisma.JsonValue;
|
||||
/** If not free, what kind of fees does the app have */
|
||||
@@ -138,4 +135,9 @@ export interface App {
|
||||
dirName?: string;
|
||||
}
|
||||
|
||||
export type AppFrontendPayload = Omit<App, "key"> & {
|
||||
/** We should type error if keys are leaked to the frontend */
|
||||
key?: never;
|
||||
};
|
||||
|
||||
export type AppMeta = Optional<App, "rating" | "trending" | "reviews" | "verified">;
|
||||
Vendored
+5
@@ -16,4 +16,9 @@ export type CredentialPayload = Prisma.CredentialGetPayload<{
|
||||
};
|
||||
}>;
|
||||
|
||||
export type CredentialFrontendPayload = Omit<CredentialPayload, "key"> & {
|
||||
/** We should type error if keys are leaked to the frontend */
|
||||
key?: never;
|
||||
};
|
||||
|
||||
export type CredentialWithAppName = CredentialPayload & { appName: string };
|
||||
Reference in new issue
Block a user