diff --git a/src/components/superadmin/NewModuleModal.tsx b/src/components/superadmin/NewModuleModal.tsx
index d62c3e2..78990a9 100644
--- a/src/components/superadmin/NewModuleModal.tsx
+++ b/src/components/superadmin/NewModuleModal.tsx
@@ -30,7 +30,7 @@ const newModuleSchema = z.object({
.min(1, 'runtime_language is required')
.max(50, 'runtime_language must be at most 50 characters'),
framework: z.string().max(50, 'framework must be at most 50 characters').optional().nullable(),
- webhookurl: z.string().max(500, "webhookurl must be at most 500 characters").url("Invalid URL format").nullable(),
+ webhookurl: z.string().max(500, "webhookurl must be at most 500 characters").url("Invalid URL format").nullable(),
base_url: z
.string()
.min(1, 'base_url is required')
@@ -49,7 +49,7 @@ const newModuleSchema = z.object({
min_replicas: z.number().int().min(1, 'min_replicas must be at least 1').max(50, 'min_replicas must be at most 50').optional().nullable(),
max_replicas: z.number().int().min(1, 'max_replicas must be at least 1').max(50, 'max_replicas must be at most 50').optional().nullable(),
last_health_check: z.string().optional().nullable(),
- health_status: z.string().max(20, 'health_status must be at most 20 characters').optional().nullable(),
+ // health_status: z.string().max(20, 'health_status must be at most 20 characters').optional().nullable(),
consecutive_failures: z.number().int().optional().nullable(),
registered_by: z.string().uuid().optional().nullable(),
tenant_id: z.string().uuid().optional().nullable(),
@@ -96,7 +96,7 @@ export const NewModuleModal = ({
min_replicas: null,
max_replicas: null,
last_health_check: null,
- health_status: null,
+ // health_status: null,
consecutive_failures: null,
registered_by: null,
tenant_id: null,
@@ -126,7 +126,7 @@ export const NewModuleModal = ({
min_replicas: null,
max_replicas: null,
last_health_check: null,
- health_status: null,
+ // health_status: null,
consecutive_failures: null,
registered_by: null,
tenant_id: null,
@@ -274,52 +274,52 @@ export const NewModuleModal = ({
{errors.root.message}
)}
+ {!apiKey && (
+
+ {/* Basic Information Section */}
+
+
Basic Information
+
+
+
+
+
+
-
- {/* Basic Information Section */}
-
-
Basic Information
-
-
-
-
+
+
-
-
-
-
+
-
-
- {/*
+ {/*
*/}
-
- {/*
*/}
- {/*
+
+ {/*
*/}
+ {/*
*/}
+
-
- {/* Runtime Information Section */}
-
-
Runtime Information
-
-
+ {/* Runtime Information Section */}
+
+
Runtime Information
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* URL Configuration Section */}
+
+
URL Configuration
+
-
-
+
-
-
-
-
-
-
-
-
- {/* URL Configuration Section */}
-
-
URL Configuration
-
-
+ {/* Resource Configuration Section */}
+
+
Resource Configuration (Optional)
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
- {/* Resource Configuration Section */}
-
-
Resource Configuration (Optional)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- if (value === '' || value === null || value === undefined) return null;
- const num = Number(value);
- return isNaN(num) ? null : num;
- },
- })}
- />
-
-
- {
- if (value === '' || value === null || value === undefined) return null;
- const num = Number(value);
- return isNaN(num) ? null : num;
- },
- })}
- />
+
+
+ {
+ if (value === '' || value === null || value === undefined) return null;
+ const num = Number(value);
+ return isNaN(num) ? null : num;
+ },
+ })}
+ />
+
+
+ {
+ if (value === '' || value === null || value === undefined) return null;
+ const num = Number(value);
+ return isNaN(num) ? null : num;
+ },
+ })}
+ />
+