Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sort by "Date modified" #1395

Open
troughc opened this issue Oct 9, 2024 · 5 comments · Fixed by #1404
Open

Add sort by "Date modified" #1395

troughc opened this issue Oct 9, 2024 · 5 comments · Fixed by #1404
Assignees
Labels
enhancement New feature or request To be deployed

Comments

@troughc
Copy link
Contributor

troughc commented Oct 9, 2024

reference user story: #1371

Allow users to sort lists by the date an entity was last modified. This may require changes in both the FE and BE.

In the FE, the user should be able to use a date something was modified to order the list according to what was most recently updated (or least recently updated).
To do this they need an option in the Sort dropdown:
ENGLISH: Add 'Date modified' after 'Date created' in dropdowns
FRENCH: Add 'Date de modification' after 'Date de création' in dropdowns
This means it appears above "Event date" in Events list

English example of current dropdowns
Events sort dropdown
Image

Places sort dropdown
Image

FYI: @saumier

@troughc troughc added enhancement New feature or request estimate needed Add estimate for planning labels Oct 9, 2024
@sahalali
Copy link
Contributor

This will not require backend changes. Use the sort value as "asc(metadata.modifiedAt)" or "desc(metadata.modifiedAt)" to sort by modified date.

@AbhishekPAnil Could you please give an estimate for the frontend work?

@AbhishekPAnil
Copy link
Contributor

AbhishekPAnil commented Oct 11, 2024

Frontend tasks - 2h
1.Add date modified option to the array with respective integration keyword.
2.Test the listing pages

@AbhishekPAnil AbhishekPAnil added to be scheduled Work has been estimated, now it needs a priority and milstone and removed estimate needed Add estimate for planning labels Oct 11, 2024
@troughc troughc removed the to be scheduled Work has been estimated, now it needs a priority and milstone label Oct 11, 2024
@troughc troughc assigned AbhishekPAnil and unassigned sahalali Oct 11, 2024
@AbhishekPAnil AbhishekPAnil linked a pull request Oct 15, 2024 that will close this issue
@troughc
Copy link
Contributor Author

troughc commented Oct 15, 2024

fixed a 2 Clear button issue that happens when you change the sort filter choice to anything other than the default, and changing the descending / ascending order.

@AbhishekPAnil
Copy link
Contributor

fixed a 2 Clear button issue that happens when you change the sort filter choice to anything other than the default, and changing the descending / ascending order.

Refer this :
Image

@troughc
Copy link
Contributor Author

troughc commented Oct 16, 2024

Tested:PASSED

@troughc troughc assigned sahalali and unassigned troughc Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request To be deployed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants