Remove verifiedAt field from CustomDomain
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -31,7 +31,6 @@ const createCustomDomainMutation = graphql`
|
||||
}
|
||||
createdAt
|
||||
updatedAt
|
||||
verifiedAt
|
||||
sslExpiresAt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
||||
@@ -75,7 +75,6 @@ const organizationFragment = graphql`
|
||||
}
|
||||
createdAt
|
||||
updatedAt
|
||||
verifiedAt
|
||||
sslExpiresAt
|
||||
}
|
||||
users(first: 100) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -4440,7 +4440,6 @@ type CustomDomain implements Node {
|
||||
dnsRecords: [DNSRecordInstruction!]!
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
verifiedAt: Datetime
|
||||
}
|
||||
|
||||
type DNSRecordInstruction {
|
||||
|
||||
@@ -407,7 +407,6 @@ type ComplexityRoot struct {
|
||||
SslExpiresAt func(childComplexity int) int
|
||||
SslStatus func(childComplexity int) int
|
||||
UpdatedAt func(childComplexity int) int
|
||||
VerifiedAt func(childComplexity int) int
|
||||
}
|
||||
|
||||
DNSRecordInstruction struct {
|
||||
@@ -2948,13 +2947,6 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin
|
||||
|
||||
return e.complexity.CustomDomain.UpdatedAt(childComplexity), true
|
||||
|
||||
case "CustomDomain.verifiedAt":
|
||||
if e.complexity.CustomDomain.VerifiedAt == nil {
|
||||
break
|
||||
}
|
||||
|
||||
return e.complexity.CustomDomain.VerifiedAt(childComplexity), true
|
||||
|
||||
case "DNSRecordInstruction.name":
|
||||
if e.complexity.DNSRecordInstruction.Name == nil {
|
||||
break
|
||||
@@ -13148,7 +13140,6 @@ type CustomDomain implements Node {
|
||||
dnsRecords: [DNSRecordInstruction!]!
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
verifiedAt: Datetime
|
||||
}
|
||||
|
||||
type DNSRecordInstruction {
|
||||
@@ -26165,8 +26156,6 @@ func (ec *executionContext) fieldContext_CreateCustomDomainPayload_customDomain(
|
||||
return ec.fieldContext_CustomDomain_createdAt(ctx, field)
|
||||
case "updatedAt":
|
||||
return ec.fieldContext_CustomDomain_updatedAt(ctx, field)
|
||||
case "verifiedAt":
|
||||
return ec.fieldContext_CustomDomain_verifiedAt(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type CustomDomain", field.Name)
|
||||
},
|
||||
@@ -27945,47 +27934,6 @@ func (ec *executionContext) fieldContext_CustomDomain_updatedAt(_ context.Contex
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) _CustomDomain_verifiedAt(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext_CustomDomain_verifiedAt(ctx, field)
|
||||
if err != nil {
|
||||
return graphql.Null
|
||||
}
|
||||
ctx = graphql.WithFieldContext(ctx, fc)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
ec.Error(ctx, ec.Recover(ctx, r))
|
||||
ret = graphql.Null
|
||||
}
|
||||
}()
|
||||
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
||||
ctx = rctx // use context from middleware stack in children
|
||||
return obj.VerifiedAt, nil
|
||||
})
|
||||
if err != nil {
|
||||
ec.Error(ctx, err)
|
||||
return graphql.Null
|
||||
}
|
||||
if resTmp == nil {
|
||||
return graphql.Null
|
||||
}
|
||||
res := resTmp.(*time.Time)
|
||||
fc.Result = res
|
||||
return ec.marshalODatetime2ᚖtimeᚐTime(ctx, field.Selections, res)
|
||||
}
|
||||
|
||||
func (ec *executionContext) fieldContext_CustomDomain_verifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
||||
fc = &graphql.FieldContext{
|
||||
Object: "CustomDomain",
|
||||
Field: field,
|
||||
IsMethod: false,
|
||||
IsResolver: false,
|
||||
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
||||
return nil, errors.New("field of type Datetime does not have child fields")
|
||||
},
|
||||
}
|
||||
return fc, nil
|
||||
}
|
||||
|
||||
func (ec *executionContext) _DNSRecordInstruction_type(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) {
|
||||
fc, err := ec.fieldContext_DNSRecordInstruction_type(ctx, field)
|
||||
if err != nil {
|
||||
@@ -46634,8 +46582,6 @@ func (ec *executionContext) fieldContext_Organization_customDomain(_ context.Con
|
||||
return ec.fieldContext_CustomDomain_createdAt(ctx, field)
|
||||
case "updatedAt":
|
||||
return ec.fieldContext_CustomDomain_updatedAt(ctx, field)
|
||||
case "verifiedAt":
|
||||
return ec.fieldContext_CustomDomain_verifiedAt(ctx, field)
|
||||
}
|
||||
return nil, fmt.Errorf("no field named %q was found under type CustomDomain", field.Name)
|
||||
},
|
||||
@@ -75843,8 +75789,6 @@ func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.Selection
|
||||
if out.Values[i] == graphql.Null {
|
||||
out.Invalids++
|
||||
}
|
||||
case "verifiedAt":
|
||||
out.Values[i] = ec._CustomDomain_verifiedAt(ctx, field, obj)
|
||||
default:
|
||||
panic("unknown field " + strconv.Quote(field.Name))
|
||||
}
|
||||
|
||||
@@ -642,7 +642,6 @@ type CustomDomain struct {
|
||||
DNSRecords []*DNSRecordInstruction `json:"dnsRecords"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
VerifiedAt *time.Time `json:"verifiedAt,omitempty"`
|
||||
}
|
||||
|
||||
func (CustomDomain) IsNode() {}
|
||||
|
||||
Reference in New Issue
Block a user