Skip to content

Commit

Permalink
fix(web): update api_version default value to empty string and adjust…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
AmirhoseinBrz committed Dec 3, 2024
1 parent dcb5d71 commit a7639fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions web/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_CLIENT_BASE_URL=""
6 changes: 3 additions & 3 deletions web/src/pages/helm-template/helm-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const HelmTemplate: FC = () => {
});

const defaultValues = {
api_version: "1",
api_version: '',
pods: [
{
name: '',
Expand Down Expand Up @@ -174,7 +174,7 @@ const HelmTemplate: FC = () => {
className={cn(
'h-full max-h-0 overflow-hidden px-1 transition-all duration-500',
{
'max-h-[1000px]': openPod === index,
'max-h-[1500px]': openPod === index,
},
)}
>
Expand Down Expand Up @@ -320,7 +320,7 @@ export const PodEnvironmentFields: React.FC<PodEnvironmentFieldsProps> = ({
<div className="grid grid-cols-2 gap-4">
{fields.map((field, envIdx) => (
<div
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"
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"
key={field.id}
>
<FormInput
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/helm-template/helm-template.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const persistanceSchema = zod.object({

const ingressSchema = zod.object({
enabled: zod.boolean(),
host: zod.string(),
host: zod.string().min(1, 'Host is required'),
});

const podSchema = zod.object({
Expand Down

0 comments on commit a7639fd

Please sign in to comment.