diff --git a/apps/console/src/components/PageHeader.tsx b/apps/console/src/components/PageHeader.tsx index 0ae47ce3a..1557b218d 100644 --- a/apps/console/src/components/PageHeader.tsx +++ b/apps/console/src/components/PageHeader.tsx @@ -70,7 +70,12 @@ export function PageDescription({ children: ReactNode; }) { return ( -
+
{children}
); diff --git a/apps/console/src/pages/organizations/frameworks/FrameworkListView.tsx b/apps/console/src/pages/organizations/frameworks/FrameworkListView.tsx index 457ff36cf..4b3ad2942 100644 --- a/apps/console/src/pages/organizations/frameworks/FrameworkListView.tsx +++ b/apps/console/src/pages/organizations/frameworks/FrameworkListView.tsx @@ -36,9 +36,6 @@ const FrameworkListViewQuery = graphql` node { id name - description - createdAt - updatedAt } } } @@ -57,45 +54,12 @@ const FrameworkListViewImportFrameworkMutation = graphql` node { id name - description - createdAt - updatedAt } } } } `; -function FrameworkCard({ - title, - description, - icon, -}: { - title: string; - description: string; - icon: React.ReactNode; -}) { - return ( - -
-
{icon}
- -
-
-

{title}

- {status && ( - - {status} - - )} -
-

{description}

-
-
-
- ); -} - function FrameworkListViewContent({ queryRef, }: { @@ -211,28 +175,47 @@ function FrameworkListViewContent({ } >
-
- {frameworks.map((framework) => { - return ( - - - - {framework.name.split(" ")[0]} - -
- } - /> - - ); - })} -
+ +
+ + + + + + + + {frameworks.length === 0 ? ( + + + + ) : ( + frameworks.map((framework) => ( + + + + )) + )} + +
+ Name +
+ No frameworks found. Create or import one to get started. +
+ + {framework.name} + +
+
+
); diff --git a/apps/console/src/pages/organizations/frameworks/FrameworkView.tsx b/apps/console/src/pages/organizations/frameworks/FrameworkView.tsx index e0aaf9698..7786d8e89 100644 --- a/apps/console/src/pages/organizations/frameworks/FrameworkView.tsx +++ b/apps/console/src/pages/organizations/frameworks/FrameworkView.tsx @@ -169,7 +169,7 @@ function FrameworkViewContent({ {control.name} -
+
{control.description}
diff --git a/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewImportFrameworkMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewImportFrameworkMutation.graphql.ts index 274f8bb2f..759a02494 100644 --- a/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewImportFrameworkMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewImportFrameworkMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -21,11 +21,8 @@ export type FrameworkListViewImportFrameworkMutation$data = { readonly importFramework: { readonly frameworkEdge: { readonly node: { - readonly createdAt: string; - readonly description: string; readonly id: string; readonly name: string; - readonly updatedAt: string; }; }; }; @@ -82,27 +79,6 @@ v3 = { "kind": "ScalarField", "name": "name", "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null } ], "storageKey": null @@ -176,16 +152,16 @@ return { ] }, "params": { - "cacheID": "0d952e4f9f3e106ea7a30d69f7268385", + "cacheID": "04a42349410d12247fcbf3bd99b0b625", "id": null, "metadata": {}, "name": "FrameworkListViewImportFrameworkMutation", "operationKind": "mutation", - "text": "mutation FrameworkListViewImportFrameworkMutation(\n $input: ImportFrameworkInput!\n) {\n importFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n description\n createdAt\n updatedAt\n }\n }\n }\n}\n" + "text": "mutation FrameworkListViewImportFrameworkMutation(\n $input: ImportFrameworkInput!\n) {\n importFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "8be3328101831be07eeea8670d47debd"; +(node as any).hash = "9fb0921f16ca755b8130fcd8603e8933"; export default node; diff --git a/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewQuery.graphql.ts b/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewQuery.graphql.ts index 7dd306360..769299499 100644 --- a/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewQuery.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/__generated__/FrameworkListViewQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<1d45b549aa04b80f7e0a2951d7910a3f>> + * @generated SignedSource<<6aa35f3abf36b1b8660942a354a882fb>> * @lightSyntaxTransform * @nogrep */ @@ -17,11 +17,8 @@ export type FrameworkListViewQuery$data = { readonly frameworks?: { readonly edges: ReadonlyArray<{ readonly node: { - readonly createdAt: string; - readonly description: string; readonly id: string; readonly name: string; - readonly updatedAt: string; }; }>; }; @@ -86,27 +83,6 @@ v4 = [ "name": "name", "storageKey": null }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, (v3/*: any*/) ], "storageKey": null @@ -241,7 +217,7 @@ return { ] }, "params": { - "cacheID": "ad629b287bbe0482ef250bae68c4018c", + "cacheID": "f06159f3fa9c1667819b8663219ad4e9", "id": null, "metadata": { "connection": [ @@ -258,11 +234,11 @@ return { }, "name": "FrameworkListViewQuery", "operationKind": "query", - "text": "query FrameworkListViewQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n frameworks(first: 100) {\n edges {\n node {\n id\n name\n description\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n" + "text": "query FrameworkListViewQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n frameworks(first: 100) {\n edges {\n node {\n id\n name\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n" } }; })(); -(node as any).hash = "27aa68a4b7303c125c427acdf6aa9dc4"; +(node as any).hash = "c2bf8dc4215c53e7d63f2027893a20cf"; export default node;