Skip to content

Commit

Permalink
[front] - chore: update members table sorting (#9036)
Browse files Browse the repository at this point in the history
* [front] - refactor: update members table pagination and sorting

 - Change the page size for members table from 10 to 4 for better readability
 - Reverse the default sorting of members by email to descending order
 - Enable sorting by name and email in the members list for improved usability

* [front] - feature: increase page size in MembersTable

 - Page size in MembersTable pagination increased from 4 to 10

* [front] - fix: change default sorting of members table to ascending

 - Adjusted the initial sorting state for member email addresses from descending to ascending order
  • Loading branch information
JulesBelveze authored Dec 1, 2024
1 parent ea921e7 commit 18f466e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/components/spaces/CreateOrEditSpaceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ function MembersTable({
return [
{
id: "name",
accessorKey: "name",
cell: (info: Info) => (
<>
<DataTable.CellContent
Expand All @@ -334,10 +335,11 @@ function MembersTable({
</DataTable.CellContent>
</>
),
enableSorting: false,
enableSorting: true,
},
{
id: "email",
accessorKey: "email",
cell: (info: Info) => (
<DataTable.CellContent>
<span className="text-element-700">{info.row.original.email}</span>
Expand Down

0 comments on commit 18f466e

Please sign in to comment.