culturecreates / footlight-app

Footlight CMS Front-end
https://cms.footlight.io
3 stars 0 forks source link

Add sort by "Date modified" #1395

Open troughc opened 5 days ago

troughc commented 5 days ago

reference user story: https://github.com/culturecreates/footlight-app/issues/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

sahalali commented 3 days ago

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 commented 3 days ago

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