N
Novu3w ago
rajat

Can we reorder the preferences

Hi Support, I was curious if we can re-order the preferences on Inbox component.
const preferenceGroups = useMemo(() => [
{
name: 'Command Center',
filter: {
tags: ['primary-shipment-state', 'document-upload'],
},
},
{
name: 'Live Risk Status',
filter: {
tags: ['live-risk-status'],
},
}]
const preferenceGroups = useMemo(() => [
{
name: 'Command Center',
filter: {
tags: ['primary-shipment-state', 'document-upload'],
},
},
{
name: 'Live Risk Status',
filter: {
tags: ['live-risk-status'],
},
}]
tried to filter with workflowIds instead of tag but didn't work. Seems the default order is created_at asc.
No description
3 Replies
Pawan Jain
Pawan Jain2w ago
Hi Rajat Could you please share any speecific order you are looking?
rajat
rajatOP2w ago
Shipment creation
Shipment at-origin
Shipment in-transit
Shipment at-destination
Shipment delivered
Shipment completed
Shipment cancelled
Shipment creation
Shipment at-origin
Shipment in-transit
Shipment at-destination
Shipment delivered
Shipment completed
Shipment cancelled
we wanted to sort according to the life-cycle
Pawan Jain
Pawan Jain2w ago
@rajat Yes you are correct, current order is based on createdAt creating a feature request with team on this

Did you find this page helpful?