Skip to content

Commit 454c5e1

Browse files
committed
feat(helm-template): update input classes for better styling and change api_version type to string in helmTemplate schema
1 parent b2bba3f commit 454c5e1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/pages/helm-template/helm-template.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ export const PodEnvironmentFields: React.FC<PodEnvironmentFieldsProps> = ({
325325
name={`pods.${podIndex}.environment.${envIdx}.name`}
326326
label=""
327327
placeholder="Env"
328-
className="h-12 divide-gray-200 rounded-md rounded-s-md border border-gray-200 dark:divide-gray-500 dark:border-gray-500"
328+
className="h-12 w-full divide-gray-200 rounded-md rounded-e-md rounded-s-md border border-gray-200 px-2 outline-none dark:divide-gray-500 dark:border-gray-500 dark:bg-black-1"
329329
/>
330330
<FormInput
331331
id={`env_value_${envIdx}`}
332332
name={`pods.${podIndex}.environment.${envIdx}.value`}
333333
label=""
334334
placeholder="Hi"
335335
className={cn(
336-
'h-12 w-full divide-gray-200 rounded-md border border-gray-200 px-2 outline-none dark:divide-gray-500 dark:border-gray-500 dark:bg-black-1',
336+
'h-12 w-full divide-gray-200 rounded-md rounded-e-md border border-gray-200 px-2 outline-none dark:divide-gray-500 dark:border-gray-500 dark:bg-black-1',
337337
{
338338
'rounded-e-md': envIdx === 0,
339339
},

web/src/pages/helm-template/helm-template.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const podSchema = zod.object({
7676
});
7777

7878
export const helmTemplateSchema = zod.object({
79-
api_version: zod.number().min(1, 'API version is required'),
79+
api_version: zod.string().min(1, 'API version is required'),
8080
pods: zod.array(podSchema).min(1, 'At least one pod is required'),
8181
});
8282
export type HelmTemplateSchema = zod.infer<typeof helmTemplateSchema>;

0 commit comments

Comments
 (0)