fix: perform specified fixes + domain status stuff

This commit is contained in:
Atharva Deosthale committed 2025-09-05 15:17:02 +05:30
1 parent 03aa8df776
commit 831743732c
3 files changed
+7 -4

No files matched your search

@@ -140,7 +140,7 @@
undefined, // repositoryId
undefined, // branch
false, // silentMode
rootDir || undefined,
undefined, // rootDir
specification || undefined
);
@@ -38,7 +38,7 @@
// State variables
let name = data.repository?.name || '';
let id = ID.unique();
let domain = data.repository?.name?.toLowerCase().replace(/[^a-z0-9]/g, '-') || '';
let domain = '';
let domainIsValid = false;
let framework: Framework = Framework.Nextjs;
let rootDir = '';
@@ -169,7 +169,7 @@
undefined, // providerRepositoryId
undefined, // branch
false, // silentMode
rootDir || undefined
undefined // rootDir
);
// Add domain
@@ -28,6 +28,7 @@
const checkDomain = debounce(async (value: string) => {
if (!value) {
domainStatus = 'failed';
domainIsValid = false;
return;
}
try {
@@ -66,6 +67,8 @@
disabled={originalDomain === newDomain}
on:click={() => (newDomain = originalDomain)}>Reset</Button>
</Layout.Stack>
<Status status={domainStatus} label={setDomainLabel(domainStatus)}></Status>
{#if newDomain}
<Status status={domainStatus} label={setDomainLabel(domainStatus)}></Status>
{/if}
</Layout.Stack>
</Fieldset>