From 837077d63a50e43280059b46c8e7bea286c0090f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 12 Feb 2026 13:01:49 +0400 Subject: [PATCH] Fix invitation list default order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- .../iam/InvitationListFragment.graphql.ts | 6 +++--- .../iam/InvitationListFragment_RefetchQuery.graphql.ts | 10 +++++----- .../people/_components/InvitationList.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/console/src/__generated__/iam/InvitationListFragment.graphql.ts b/apps/console/src/__generated__/iam/InvitationListFragment.graphql.ts index 403558ab4..e1fdb11ad 100644 --- a/apps/console/src/__generated__/iam/InvitationListFragment.graphql.ts +++ b/apps/console/src/__generated__/iam/InvitationListFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<26877e6a0dc423e87108c5b2ea1b11a3>> + * @generated SignedSource<<86ac079914ad21b757e635e4e68fc382>> * @lightSyntaxTransform * @nogrep */ @@ -65,7 +65,7 @@ return { }, { "defaultValue": { - "direction": "ASC", + "direction": "DESC", "field": "CREATED_AT" }, "kind": "LocalArgument", @@ -231,6 +231,6 @@ return { }; })(); -(node as any).hash = "224d655216572cb18f193cdfcae64172"; +(node as any).hash = "5ff19da7145701e33a81275e009c56f7"; export default node; diff --git a/apps/console/src/__generated__/iam/InvitationListFragment_RefetchQuery.graphql.ts b/apps/console/src/__generated__/iam/InvitationListFragment_RefetchQuery.graphql.ts index 819f3c264..1f53343bf 100644 --- a/apps/console/src/__generated__/iam/InvitationListFragment_RefetchQuery.graphql.ts +++ b/apps/console/src/__generated__/iam/InvitationListFragment_RefetchQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<4122c968a27fbbea7a81d2a87bbc4bc3>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -62,7 +62,7 @@ v4 = { }, v5 = { "defaultValue": { - "direction": "ASC", + "direction": "DESC", "field": "CREATED_AT" }, "kind": "LocalArgument", @@ -359,16 +359,16 @@ return { ] }, "params": { - "cacheID": "af2ddd3fd12ff396d6e19fa1e630b614", + "cacheID": "fa35a507d94c15f0839f276dc42dfd89", "id": null, "metadata": {}, "name": "InvitationListFragment_RefetchQuery", "operationKind": "query", - "text": "query InvitationListFragment_RefetchQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: InvitationOrder = {direction: ASC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...InvitationListFragment_16fISc\n id\n }\n}\n\nfragment InvitationListFragment_16fISc on Organization {\n invitations(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...InvitationListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment InvitationListItemFragment on Invitation {\n id\n fullName\n email\n role\n status\n createdAt\n acceptedAt\n canDelete: permission(action: \"iam:invitation:delete\")\n}\n" + "text": "query InvitationListFragment_RefetchQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: InvitationOrder = {direction: DESC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...InvitationListFragment_16fISc\n id\n }\n}\n\nfragment InvitationListFragment_16fISc on Organization {\n invitations(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...InvitationListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment InvitationListItemFragment on Invitation {\n id\n fullName\n email\n role\n status\n createdAt\n acceptedAt\n canDelete: permission(action: \"iam:invitation:delete\")\n}\n" } }; })(); -(node as any).hash = "224d655216572cb18f193cdfcae64172"; +(node as any).hash = "5ff19da7145701e33a81275e009c56f7"; export default node; diff --git a/apps/console/src/pages/iam/organizations/people/_components/InvitationList.tsx b/apps/console/src/pages/iam/organizations/people/_components/InvitationList.tsx index 123d344fc..c5952e7db 100644 --- a/apps/console/src/pages/iam/organizations/people/_components/InvitationList.tsx +++ b/apps/console/src/pages/iam/organizations/people/_components/InvitationList.tsx @@ -22,7 +22,7 @@ const fragment = graphql` first: { type: "Int", defaultValue: 20 } order: { type: "InvitationOrder" - defaultValue: { direction: ASC, field: CREATED_AT } + defaultValue: { direction: DESC, field: CREATED_AT } } after: { type: "CursorKey", defaultValue: null } before: { type: "CursorKey", defaultValue: null }