From b633db4f8eb016acebee36543b154c1e414a8636 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 6 May 2025 12:26:08 +0200 Subject: [PATCH] machine-details: updates form layout --- .../app/src/routes/machines/details.tsx | 287 ++++++++++-------- 1 file changed, 154 insertions(+), 133 deletions(-) diff --git a/pkgs/webview-ui/app/src/routes/machines/details.tsx b/pkgs/webview-ui/app/src/routes/machines/details.tsx index e09aec051..2e5786c0e 100644 --- a/pkgs/webview-ui/app/src/routes/machines/details.tsx +++ b/pkgs/webview-ui/app/src/routes/machines/details.tsx @@ -26,6 +26,7 @@ import { DiskStep, DiskValues } from "./install/disk-step"; import { SummaryStep } from "./install/summary-step"; import cx from "classnames"; import { VarsStep, VarsValues } from "./install/vars-step"; +import Fieldset from "@/src/Form/fieldset"; type MachineFormInterface = MachineData & { sshKey?: File; @@ -519,83 +520,71 @@ const MachineForm = (props: MachineDetailsProps) => { return ( <> -
- - - -
- - {(field, props) => ( - - )} - - - {(field, props) => ( - <> - Tags} - field={ - - - {(tag) => ( - - {tag} - - )} - - - } - /> - - )} - - - {(field, props) => ( - - )} - - - {(field, props) => ( - Hardware Configuration} - field={{field.value || "None"}} - /> - )} - - - {(field, props) => ( - <> - Disk schema} - field={{field.value || "None"}} - /> - - )} - - -
- -
Connection Settings
-
- +
+
+
+
+ {/* */} +
+ {/* + Installs the system for the first time. Used to bootstrap the + remote device. + */} +
+
+
+ + +
+
+ {/* + Update the system if changes should be synced after the + installation process. + */} +
+
+
+ + + + +
+ {(field, props) => ( { /> )} -
-
+ + {(field, props) => ( + + )} + + + {(field, props) => ( +
+ + Tags{" "} + + + {(tag) => ( + + + {tag} + + + )} + +
+ )} +
+ - { -
+
+ + {(field, props) => ( + Hardware Configuration} + field={{field.value || "None"}} + /> + )} + + + {(field, props) => ( + <> + Disk schema} + field={{field.value || "None"}} + /> + + )} + + +
+ +
Connection Settings
+
+ + {(field, props) => ( + + )} + +
+
+
+ +
-
- } - -
- -
-
- - Actions -
- - Installs the system for the first time. Used to bootstrap the remote - device. - -
- -
- - setInstallModalOpen(false)} - class="min-w-[600px]" - > - - - - - Update the system if changes should be synced after the installation - process. - -
- -
+ +
+ + setInstallModalOpen(false)} + class="min-w-[600px]" + > + + ); };