From 9d43b19a9554275202ab6a14ec6e4ce969f3d006 Mon Sep 17 00:00:00 2001 From: Eshank Vaish <48060426+eshankvaish@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:44:39 +0530 Subject: [PATCH 01/36] refactor: typing clean up for custom input --- .../APITokens/CreateAPIToken.tsx | 2 +- .../Authorization/APITokens/EditAPIToken.tsx | 1 + .../AddEdit/PermissionGroupForm.tsx | 2 +- .../SSOLoginServices/SSOLogin.component.tsx | 4 +- .../BulkSelection/BulkDeleteModal.tsx | 25 +++++---- .../ClusterEnvironmentDrawer.tsx | 11 ++-- .../List/UploadChartModal.tsx | 21 ++++--- .../ConfigMapSecret/ConfigMapSecretForm.tsx | 20 +++---- .../ApplicationGroup/CreateAppGroup.tsx | 3 +- .../Details/TriggerView/BulkSourceChange.tsx | 2 +- src/components/CIPipelineN/Build.tsx | 4 +- .../CIPipelineN/ConditionContainer.tsx | 18 +++--- .../CreatePluginFormContent.tsx | 3 +- .../CreatePluginFormField.tsx | 17 +----- .../CIPipelineN/CreatePluginModal/types.ts | 2 +- src/components/CIPipelineN/DockerArgs.tsx | 4 -- src/components/CIPipelineN/MountFromHost.tsx | 8 ++- .../CIPipelineN/OutputDirectoryPath.tsx | 1 - .../CIPipelineN/TaskDetailComponent.tsx | 5 +- .../CIPipelineN/TaskTypeDetailComponent.tsx | 11 ++-- .../VariableDataTable/ValueConfigOverlay.tsx | 10 ++-- .../VariableConfigOverlay.tsx | 3 +- src/components/app/create/CreateApp.tsx | 2 +- src/components/cdPipeline/BuildCD.tsx | 4 +- src/components/chartRepo/ChartRepo.tsx | 10 ++-- src/components/charts/AdvancedConfig.tsx | 22 +++++--- .../charts/modal/ChartGroupBasicDeploy.tsx | 27 +++++---- .../charts/modal/CreateChartGroup.tsx | 2 +- src/components/ciConfig/BuildContext.tsx | 5 +- .../ciConfig/CIBuildpackBuildOptions.tsx | 5 +- src/components/ciConfig/CIConfig.scss | 4 -- .../ciConfig/CIContainerRegistryConfig.tsx | 2 - .../ciConfig/CISelfDockerBuildOption.tsx | 4 +- .../ciPipeline/CIPipelineAdvanced.tsx | 6 +- .../ciPipeline/LinkedCIPipelineEdit.tsx | 2 +- .../ciPipeline/LinkedCIPipelineView.tsx | 2 +- src/components/ciPipeline/SourceMaterials.tsx | 2 +- .../Webhook/WebhookDetailsModal.tsx | 5 +- src/components/cluster/ClusterForm.tsx | 8 +-- src/components/dockerRegistry/Docker.tsx | 34 +++-------- .../dockerRegistry/ManageRegistry.tsx | 20 +++---- src/components/gitOps/GitOpsConfiguration.tsx | 50 +++-------------- .../gitProvider/AddGitHostConfigModal.tsx | 3 +- src/components/gitProvider/GitProvider.tsx | 41 ++++++-------- .../GlobalConfiguration.tsx | 4 +- .../globalConfiguration.type.ts | 2 +- src/components/hostURL/HostURL.tsx | 56 +++++++++---------- src/components/hostURL/hosturl.scss | 4 -- src/components/login/Login.tsx | 2 - src/components/material/MaterialView.tsx | 5 +- .../notifications/SESConfigModal.tsx | 12 ++-- .../notifications/SMTPConfigModal.tsx | 17 ++---- .../notifications/SlackConfigModal.tsx | 4 +- .../notifications/WebhookConfigModal.tsx | 6 +- src/components/project/Project.tsx | 2 +- src/components/security/AddCveModal.tsx | 3 +- src/components/util/KeyValueFileInput.tsx | 7 +-- .../nodeDetail/EphemeralContainerDrawer.tsx | 4 +- .../ChartValuesView.component.tsx | 32 +++++------ .../workflowEditor/CreateWorkflow.tsx | 3 +- .../workflowEditor/EmptyWorkflow.tsx | 4 +- src/stories/useForm.stories.tsx | 18 ++++-- 62 files changed, 258 insertions(+), 364 deletions(-) diff --git a/src/Pages/GlobalConfigurations/Authorization/APITokens/CreateAPIToken.tsx b/src/Pages/GlobalConfigurations/Authorization/APITokens/CreateAPIToken.tsx index 1cacb1a8e6..7d16a30169 100644 --- a/src/Pages/GlobalConfigurations/Authorization/APITokens/CreateAPIToken.tsx +++ b/src/Pages/GlobalConfigurations/Authorization/APITokens/CreateAPIToken.tsx @@ -263,7 +263,7 @@ const CreateAPIToken = ({ onChange={onChangeHandler} error={formDataErrorObj.invalidName && formDataErrorObj.invalidNameMessage} label="Name" - isRequiredField + required />