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;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<7493102ba1f19bb7721e444d0e372629>>
* @generated SignedSource<<267b2fc05603188ad26c38ce1485887b>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -238,13 +238,6 @@ return {
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "verifiedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -345,12 +338,12 @@ return {
]
},
"params": {
"cacheID": "793d8f1eb4118deebe64f3025d3e8c31",
"cacheID": "5118b2778835b232009a9d5ef5647aba",
"id": null,
"metadata": {},
"name": "OrganizationGraph_ViewQuery",
"operationKind": "query",
"text": "query OrganizationGraph_ViewQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n name\n ...SettingsPageFragment\n }\n id\n }\n}\n\nfragment SettingsPageFragment on Organization {\n id\n name\n logoUrl\n description\n websiteUrl\n email\n headquarterAddress\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 users(first: 100) {\n edges {\n node {\n id\n fullName\n email\n createdAt\n }\n }\n }\n connectors(first: 100) {\n edges {\n node {\n id\n name\n type\n createdAt\n }\n }\n }\n}\n"
"text": "query OrganizationGraph_ViewQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n name\n ...SettingsPageFragment\n }\n id\n }\n}\n\nfragment SettingsPageFragment on Organization {\n id\n name\n logoUrl\n description\n websiteUrl\n email\n headquarterAddress\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 users(first: 100) {\n edges {\n node {\n id\n fullName\n email\n createdAt\n }\n }\n }\n connectors(first: 100) {\n edges {\n node {\n id\n name\n type\n createdAt\n }\n }\n }\n}\n"
}
};
})();

View File

@@ -75,7 +75,6 @@ const organizationFragment = graphql`
}
createdAt
updatedAt
verifiedAt
sslExpiresAt
}
users(first: 100) {

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<75e8a41e9d070472ff42d71e17c47fa6>>
* @generated SignedSource<<daff4e27d1bdd110777f99826abd4e17>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -36,7 +36,6 @@ export type SettingsPageFragment$data = {
readonly sslExpiresAt: any | null | undefined;
readonly sslStatus: SSLStatus;
readonly updatedAt: any;
readonly verifiedAt: any | null | undefined;
} | null | undefined;
readonly description: string | null | undefined;
readonly email: string | null | undefined;
@@ -207,13 +206,6 @@ return {
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "verifiedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -310,6 +302,6 @@ return {
};
})();
(node as any).hash = "9786965352e1978c1171509fcce34b56";
(node as any).hash = "1f76d60a35b4b5116821419432ec4aed";
export default node;