From 69f59d56750a29d69152a8af9a5e62bcf09dac0d Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:10:54 -0400 Subject: [PATCH] Apply MUI theming to Register Model form Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> fix tests Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> add fieldset to custom components fix spacing issue with helper text Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> remove comment Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> fixes for text area Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> format Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com> add model description fix --- .../PrefilledModelRegistryField.tsx | 11 +- .../screens/RegisterModel/RegisterModel.tsx | 79 ++++- .../screens/RegisterModel/RegisterVersion.tsx | 1 - .../RegisterModel/RegisteredModelSelector.tsx | 27 +- .../RegistrationCommonFormSections.tsx | 310 +++++++++++------ .../RegisteredModelListView.tsx | 2 +- clients/ui/frontend/src/style/MUI-theme.scss | 322 +++++++++++++++--- 7 files changed, 577 insertions(+), 175 deletions(-) diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx index 980da8d37..e63ac7dad 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/PrefilledModelRegistryField.tsx @@ -6,8 +6,15 @@ type PrefilledModelRegistryFieldProps = { }; const PrefilledModelRegistryField: React.FC = ({ mrName }) => ( - - + +
+ + +
); diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx index c6cffb9de..a4db43ddd 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx @@ -21,7 +21,6 @@ import { useRegisterModelData, RegistrationCommonFormData } from './useRegisterM import { isRegisterModelSubmitDisabled, registerModel } from './utils'; import { useRegistrationCommonState } from './useRegistrationCommonState'; import RegistrationCommonFormSections from './RegistrationCommonFormSections'; -import PrefilledModelRegistryField from './PrefilledModelRegistryField'; import RegistrationFormFooter from './RegistrationFormFooter'; const RegisterModel: React.FC = () => { @@ -42,6 +41,31 @@ const RegisterModel: React.FC = () => { }); const onCancel = () => navigate(modelRegistryUrl(mrName)); + const modelRegistryInput = ( + + ); + + const modelNameInput = ( + setData('modelName', value)} + /> + ); + + const modelDescriptionInput = ( +