diff --git a/messages/en-US.json b/messages/en-US.json index ffe0702d..410d1414 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2312,5 +2312,6 @@ "organizationLoginPageDescription": "Customize the login page for this organization", "resourceLoginPageTitle": "Resource Login Page", "resourceLoginPageDescription": "Customize the login page for individual resources", - "enterConfirmation": "Enter confirmation" + "enterConfirmation": "Enter confirmation", + "blueprintViewDetails": "Details" } diff --git a/src/components/BlueprintDetailsForm.tsx b/src/components/BlueprintDetailsForm.tsx index ae6d5cb1..92b6a304 100644 --- a/src/components/BlueprintDetailsForm.tsx +++ b/src/components/BlueprintDetailsForm.tsx @@ -52,8 +52,14 @@ export default function BlueprintDetailsForm({
- - + + + + {t("name")} + + {blueprint.name} + + {t("status")} @@ -121,6 +127,8 @@ export default function BlueprintDetailsForm({ + + {blueprint.message && ( @@ -138,60 +146,39 @@ export default function BlueprintDetailsForm({ - - - {t("blueprintInfo")} - - - - ( - - {t("name")} - - - - - - )} - /> - - ( - - - {t("parsedContents")} - - -
- -
-
- -
- )} - /> -
+ ( + + + {t("parsedContents")} + + +
+ +
+
+ +
+ )} + />
diff --git a/src/components/BlueprintsTable.tsx b/src/components/BlueprintsTable.tsx index 0fa05d75..8031e506 100644 --- a/src/components/BlueprintsTable.tsx +++ b/src/components/BlueprintsTable.tsx @@ -32,35 +32,6 @@ export default function BlueprintsTable({ blueprints, orgId }: Props) { const router = useRouter(); const columns: ExtendedColumnDef[] = [ - { - accessorKey: "createdAt", - friendlyName: t("appliedAt"), - header: ({ column }) => { - return ( - - ); - }, - cell: ({ row }) => { - return ( - - ); - } - }, { accessorKey: "name", enableHiding: false, @@ -79,7 +50,32 @@ export default function BlueprintsTable({ blueprints, orgId }: Props) { ); } }, - + { + accessorKey: "createdAt", + friendlyName: t("appliedAt"), + header: ({ column }) => { + return ( + + ); + }, + cell: ({ row }) => { + return ( + + ); + } + }, { accessorKey: "source", friendlyName: t("source"), @@ -104,7 +100,7 @@ export default function BlueprintsTable({ blueprints, orgId }: Props) { API - + ); @@ -114,7 +110,7 @@ export default function BlueprintsTable({ blueprints, orgId }: Props) { Newt CLI - + ); @@ -174,7 +170,7 @@ export default function BlueprintsTable({ blueprints, orgId }: Props) { href={`/${orgId}/settings/blueprints/${row.original.blueprintId}`} > diff --git a/src/components/CreateBlueprintForm.tsx b/src/components/CreateBlueprintForm.tsx index 617f3026..2b58f34f 100644 --- a/src/components/CreateBlueprintForm.tsx +++ b/src/components/CreateBlueprintForm.tsx @@ -127,7 +127,7 @@ export default function CreateBlueprintForm({ - + )} /> - - ( - - - {t("contents")} - - - {t( - "blueprintContentsDescription" - )} - - -
- -
-
- -
- )} - />
+ + ( + + {t("contents")} + + {t("blueprintContentsDescription")} + + +
+ +
+
+ +
+ )} + />