Skip to content

Commit be19b85

Browse files
committed
feat: update sorting configurations and add user_id column in design tables
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent 6765d63 commit be19b85

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

src/custom/CatalogDesignTable/CatalogDesignTable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const CatalogDesignsTable: React.FC<CatalogDesignsTableProps> = ({
143143
page,
144144
elevation: 0,
145145
sortOrder: {
146-
name: 'updated_at At',
146+
name: 'updated_at',
147147
direction: 'desc'
148148
},
149149

src/custom/CatalogDesignTable/DesignTableColumnConfig.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const colViews: ColView[] = [
4242
['created_at', 'na'],
4343
['updated_at', 'l'],
4444
['visibility', 'l'],
45+
['user_id', 'na'],
4546
['actions', 'xs']
4647
];
4748

@@ -141,6 +142,15 @@ export const createDesignsColumnsConfig = ({
141142
searchable: true
142143
}
143144
},
145+
{
146+
name: 'user_id',
147+
label: 'User ID',
148+
options: {
149+
filter: false,
150+
sort: false,
151+
searchable: false
152+
}
153+
},
144154
{
145155
name: 'actions',
146156
label: 'Actions',

src/custom/TeamTable/TeamTableConfiguration.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ export default function TeamTableConfiguration({
288288
backgroundColor: '#f3f1f1'
289289
}
290290
},
291+
sortOrder: {
292+
name: 'created_at',
293+
direction: 'desc'
294+
},
291295
viewColumns: false,
292296
search: false,
293297
rowsExpanded: [ExpandedRowIdx],

src/custom/UsersTable/UsersTable.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ const UsersTable: React.FC<UsersTableProps> = ({
174174
download: false,
175175
elevation: 0,
176176
serverSide: true,
177+
sortOrder: {
178+
name: 'last_login_time',
179+
direction: 'desc'
180+
},
177181
onTableChange: (action: string, tableState: any) => {
178182
const sortInfo = tableState.announceText ? tableState.announceText.split(' : ') : [];
179183
let order = '';

src/custom/Workspaces/EnvironmentTable.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ const EnvironmentTable: React.FC<EnvironmentTableProps> = ({
196196
rowsPerPage: pageSize,
197197
page,
198198
elevation: 0,
199+
sortOrder: {
200+
name: 'updated_at',
201+
direction: 'desc'
202+
},
199203
serverSide: true,
200204
onTableChange: (action: string, tableState: any) => {
201205
const sortInfo = tableState.announceText ? tableState.announceText.split(' : ') : [];

0 commit comments

Comments
 (0)