Remove verifiedAt field from CustomDomain

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-13 22:17:36 +02:00
parent f808a90bba
commit b2392f51c4
10 changed files with 11 additions and 102 deletions

View File

@@ -31,7 +31,6 @@ const createCustomDomainMutation = graphql`
}
createdAt
updatedAt
verifiedAt
sslExpiresAt
}
}

View File

@@ -33,7 +33,6 @@ interface CustomDomainManagerProps {
| null;
readonly createdAt?: string | null;
readonly updatedAt?: string | null;
readonly verifiedAt?: string | null;
readonly sslExpiresAt?: string | null;
}
| null
@@ -124,8 +123,8 @@ export function CustomDomainManager({
<div>
<div className="font-medium mb-1">{domain.domain}</div>
<div className="text-sm text-txt-secondary">
{domain.verifiedAt
? `${__("Verified")} ${new Date(domain.verifiedAt).toLocaleDateString()}`
{domain.sslStatus === "ACTIVE"
? __("Verified")
: __("Pending verification")}
</div>
</div>

View File

@@ -24,7 +24,6 @@ interface DomainDetailsDialogProps {
readonly purpose: string;
}[]
| null;
readonly verifiedAt?: string | null;
readonly sslExpiresAt?: string | null;
};
}
@@ -80,12 +79,6 @@ export function DomainDetailsDialog({
}
>
<DialogContent padded className="space-y-6">
{domain.verifiedAt && (
<p className="text-sm text-txt-secondary">
{__("Verified")} {new Date(domain.verifiedAt).toLocaleDateString()}
</p>
)}
{domain.sslStatus === "ACTIVE" ? (
<div className="bg-subtle rounded-lg p-4">
<div className="flex items-start">

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<b8a660825f6c3e3413e6505179ae3e1e>>
* @generated SignedSource<<c1db974cc1fa82299f39a71ece9bf7e3>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -33,7 +33,6 @@ export type CreateCustomDomainDialogMutation$data = {
readonly sslExpiresAt: any | null | undefined;
readonly sslStatus: SSLStatus;
readonly updatedAt: any;
readonly verifiedAt: any | null | undefined;
};
};
};
@@ -154,13 +153,6 @@ v1 = [
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "verifiedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -193,16 +185,16 @@ return {
"selections": (v1/*: any*/)
},
"params": {
"cacheID": "9a6fad6d53811f74048b3ff0b64e0afe",
"cacheID": "5e5bf90d17b1dc5129d6a0fc5d68d46c",
"id": null,
"metadata": {},
"name": "CreateCustomDomainDialogMutation",
"operationKind": "mutation",
"text": "mutation CreateCustomDomainDialogMutation(\n $input: CreateCustomDomainInput!\n) {\n createCustomDomain(input: $input) {\n customDomain {\n id\n domain\n sslStatus\n dnsRecords {\n type\n name\n value\n ttl\n purpose\n }\n createdAt\n updatedAt\n verifiedAt\n sslExpiresAt\n }\n }\n}\n"
"text": "mutation CreateCustomDomainDialogMutation(\n $input: CreateCustomDomainInput!\n) {\n createCustomDomain(input: $input) {\n customDomain {\n id\n domain\n sslStatus\n dnsRecords {\n type\n name\n value\n ttl\n purpose\n }\n createdAt\n updatedAt\n sslExpiresAt\n }\n }\n}\n"
}
};
})();
(node as any).hash = "312e66e894a78da19c28c7f03d03fe96";
(node as any).hash = "fb3bede811b12db54f54af3dd375e335";
export default node;