Hide accepted invitations

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-23 11:59:48 +02:00
parent d40fa943ce
commit 00bba05faf
19 changed files with 255 additions and 112 deletions

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8c0884f06c22c11239816cecf638ebbd>>
* @generated SignedSource<<e08c5c7fa8cd8bec9755ef2afe810797>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -89,50 +89,52 @@ v8 = {
"name": "updatedAt",
"storageKey": null
},
v9 = [
{
"kind": "Literal",
"name": "first",
"value": 20
},
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "CREATED_AT"
}
}
],
v9 = {
"kind": "Literal",
"name": "first",
"value": 20
},
v10 = {
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "CREATED_AT"
}
},
v11 = [
(v9/*: any*/),
(v10/*: any*/)
],
v12 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "totalCount",
"storageKey": null
},
v11 = {
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
},
v12 = {
v14 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "role",
"storageKey": null
},
v13 = {
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
},
v14 = {
v16 = {
"alias": null,
"args": null,
"concreteType": "PageInfo",
@@ -171,7 +173,7 @@ v14 = {
],
"storageKey": null
},
v15 = {
v17 = {
"kind": "ClientExtension",
"selections": [
{
@@ -183,8 +185,19 @@ v15 = {
}
]
},
v16 = [
"orderBy"
v18 = [
{
"kind": "Literal",
"name": "filter",
"value": {
"statuses": [
"PENDING",
"EXPIRED"
]
}
},
(v9/*: any*/),
(v10/*: any*/)
];
return {
"fragment": {
@@ -404,13 +417,13 @@ return {
},
{
"alias": null,
"args": (v9/*: any*/),
"args": (v11/*: any*/),
"concreteType": "MembershipConnection",
"kind": "LinkedField",
"name": "memberships",
"plural": false,
"selections": [
(v10/*: any*/),
(v12/*: any*/),
{
"alias": null,
"args": null,
@@ -428,7 +441,7 @@ return {
"plural": false,
"selections": [
(v2/*: any*/),
(v11/*: any*/),
(v13/*: any*/),
{
"alias": null,
"args": null,
@@ -436,25 +449,27 @@ return {
"name": "emailAddress",
"storageKey": null
},
(v12/*: any*/),
(v14/*: any*/),
(v7/*: any*/),
(v4/*: any*/)
],
"storageKey": null
},
(v13/*: any*/)
(v15/*: any*/)
],
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/)
(v16/*: any*/),
(v17/*: any*/)
],
"storageKey": "memberships(first:20,orderBy:{\"direction\":\"ASC\",\"field\":\"CREATED_AT\"})"
},
{
"alias": null,
"args": (v9/*: any*/),
"filters": (v16/*: any*/),
"args": (v11/*: any*/),
"filters": [
"orderBy"
],
"handle": "connection",
"key": "SettingsPageMemberships_memberships",
"kind": "LinkedHandle",
@@ -462,13 +477,13 @@ return {
},
{
"alias": null,
"args": (v9/*: any*/),
"args": (v18/*: any*/),
"concreteType": "InvitationConnection",
"kind": "LinkedField",
"name": "invitations",
"plural": false,
"selections": [
(v10/*: any*/),
(v12/*: any*/),
{
"alias": null,
"args": null,
@@ -487,8 +502,8 @@ return {
"selections": [
(v2/*: any*/),
(v5/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v13/*: any*/),
(v14/*: any*/),
{
"alias": null,
"args": null,
@@ -515,19 +530,22 @@ return {
],
"storageKey": null
},
(v13/*: any*/)
(v15/*: any*/)
],
"storageKey": null
},
(v14/*: any*/),
(v15/*: any*/)
(v16/*: any*/),
(v17/*: any*/)
],
"storageKey": "invitations(first:20,orderBy:{\"direction\":\"ASC\",\"field\":\"CREATED_AT\"})"
"storageKey": "invitations(filter:{\"statuses\":[\"PENDING\",\"EXPIRED\"]},first:20,orderBy:{\"direction\":\"ASC\",\"field\":\"CREATED_AT\"})"
},
{
"alias": null,
"args": (v9/*: any*/),
"filters": (v16/*: any*/),
"args": (v18/*: any*/),
"filters": [
"orderBy",
"filter"
],
"handle": "connection",
"key": "SettingsPageInvitations_invitations",
"kind": "LinkedHandle",
@@ -543,12 +561,12 @@ return {
]
},
"params": {
"cacheID": "1f03968306005615bd5d2f70342db661",
"cacheID": "daa371367edee014ac05cb9712ce360d",
"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 ...SettingsPageMembershipsFragment\n ...SettingsPageInvitationsFragment\n }\n id\n }\n}\n\nfragment SettingsPageFragment on Organization {\n id\n name\n logoUrl\n horizontalLogoUrl\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 createdAt\n updatedAt\n connectors(first: 100) {\n edges {\n node {\n id\n name\n type\n createdAt\n }\n }\n }\n}\n\nfragment SettingsPageInvitationsFragment on Organization {\n invitations(first: 20, orderBy: {direction: ASC, field: CREATED_AT}) {\n totalCount\n edges {\n node {\n id\n email\n fullName\n role\n status\n expiresAt\n acceptedAt\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment SettingsPageMembershipsFragment on Organization {\n memberships(first: 20, orderBy: {direction: ASC, field: CREATED_AT}) {\n totalCount\n edges {\n node {\n id\n fullName\n emailAddress\n role\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\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 ...SettingsPageMembershipsFragment\n ...SettingsPageInvitationsFragment\n }\n id\n }\n}\n\nfragment SettingsPageFragment on Organization {\n id\n name\n logoUrl\n horizontalLogoUrl\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 createdAt\n updatedAt\n connectors(first: 100) {\n edges {\n node {\n id\n name\n type\n createdAt\n }\n }\n }\n}\n\nfragment SettingsPageInvitationsFragment on Organization {\n invitations(first: 20, orderBy: {direction: ASC, field: CREATED_AT}, filter: {statuses: [PENDING, EXPIRED]}) {\n totalCount\n edges {\n node {\n id\n email\n fullName\n role\n status\n expiresAt\n acceptedAt\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment SettingsPageMembershipsFragment on Organization {\n memberships(first: 20, orderBy: {direction: ASC, field: CREATED_AT}) {\n totalCount\n edges {\n node {\n id\n fullName\n emailAddress\n role\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();