Skip to content

Commit a7639fd

Browse files
committed
fix(web): update api_version default value to empty string and adjust max height for pod expansion
feat(helm-template): enforce minimum length for host in ingress schema and update environment field styling feat(env): add example environment configuration file
1 parent dcb5d71 commit a7639fd

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_API_CLIENT_BASE_URL=""

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const HelmTemplate: FC = () => {
3636
});
3737

3838
const defaultValues = {
39-
api_version: "1",
39+
api_version: '',
4040
pods: [
4141
{
4242
name: '',
@@ -174,7 +174,7 @@ const HelmTemplate: FC = () => {
174174
className={cn(
175175
'h-full max-h-0 overflow-hidden px-1 transition-all duration-500',
176176
{
177-
'max-h-[1000px]': openPod === index,
177+
'max-h-[1500px]': openPod === index,
178178
},
179179
)}
180180
>
@@ -320,7 +320,7 @@ export const PodEnvironmentFields: React.FC<PodEnvironmentFieldsProps> = ({
320320
<div className="grid grid-cols-2 gap-4">
321321
{fields.map((field, envIdx) => (
322322
<div
323-
className="flex items-center divide-x divide-gray-200 rounded-md border border-gray-200 dark:divide-gray-500 dark:border-gray-500 [&>div]:mb-0 mb-4"
323+
className="mb-4 flex items-center divide-x divide-gray-200 rounded-md border border-gray-200 dark:divide-gray-500 dark:border-gray-500 [&>div]:mb-0"
324324
key={field.id}
325325
>
326326
<FormInput

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const persistanceSchema = zod.object({
5959

6060
const ingressSchema = zod.object({
6161
enabled: zod.boolean(),
62-
host: zod.string(),
62+
host: zod.string().min(1, 'Host is required'),
6363
});
6464

6565
const podSchema = zod.object({

0 commit comments

Comments
 (0)