chore(domains): update domain configuration types and form handling

- Add `customCertResolver` to domain-related test files and form components
- Ensure consistent handling of optional custom certificate resolver
- Minor UI adjustment in code editor disabled state
This commit is contained in:
Mauricio Siu 2025-03-08 20:49:31 -06:00
parent cc8ffca4d4
commit e4197d6565
4 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ describe("createDomainLabels", () => {
port: 8080, port: 8080,
https: false, https: false,
uniqueConfigKey: 1, uniqueConfigKey: 1,
customCertResolver: null,
certificateType: "none", certificateType: "none",
applicationId: "", applicationId: "",
composeId: "", composeId: "",

View File

@ -103,6 +103,7 @@ const baseDomain: Domain = {
port: null, port: null,
serviceName: "", serviceName: "",
composeId: "", composeId: "",
customCertResolver: null,
domainType: "application", domainType: "application",
uniqueConfigKey: 1, uniqueConfigKey: 1,
previewDeploymentId: "", previewDeploymentId: "",

View File

@ -94,6 +94,7 @@ export const AddPreviewDomain = ({
/* Convert null to undefined */ /* Convert null to undefined */
path: data?.path || undefined, path: data?.path || undefined,
port: data?.port || undefined, port: data?.port || undefined,
customCertResolver: data?.customCertResolver || undefined,
}); });
} }

View File

@ -55,7 +55,7 @@ export const CodeEditor = ({
)} )}
/> />
{props.disabled && ( {props.disabled && (
<div className="absolute top-0 rounded-md left-0 w-full h-full flex items-center justify-center z-[10] [background:var(--overlay)]" /> <div className="absolute top-0 rounded-md left-0 w-full h-full flex items-center justify-center z-[10] [background:var(--overlay)] h-full" />
)} )}
</div> </div>
); );