Files
twenty/packages/twenty-front
Avinash Bhardwaj 1ff31a90f4 sort task groups reverse alphabetically by their status (#6886)
This PR Solves #6830 

## Issue Summary
The tasks are grouped by their respective statuses and displayed on the
ui. The grouping is performed by `lodash.groupBy` which doesn't maintain
explicit ordering of the keys.

## Fix
Sort the tasks groups array by their status on the basis of
reverse-alphabetical order before generating task component for each
task data.

#### Why reverse alphabetical?
It implicitly sorts the statuses as per the order `TODO` ->
`IN_PROGRESS` -> `DONE`
Caveats:
1. Changing the name of one or more status might result in a different
unwanted order.
2. `null` is unhandled, although the original code doesn't allow for
nulls as status while displaying

### Alternative Fix
Maintain an explicit ordering of the statuses and sort the tasks
accordingly.

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-09-09 15:56:52 +02:00
..
2024-03-31 10:53:37 +02:00
2024-07-29 13:03:09 +02:00
2023-12-10 18:10:54 +01:00
2024-07-29 13:03:09 +02:00
2024-08-09 08:38:01 +02:00
2024-08-29 18:22:48 +02:00
2024-08-21 15:33:38 +02:00
2024-08-09 08:38:01 +02:00
2024-09-06 14:39:33 +02:00

Run yarn dev while server running on port 3000