v-ngu / backstage-plugin-bulletin-board

Bulletin Board is a Backstage plugin that allows you to share interesting ideas, news and links with your teammates.
MIT License
17 stars 8 forks source link

feat: add ability to sort by created_at date as an additional option to the default orderBy('updated_at','desc'). #29

Open rmnicholson0612 opened 9 months ago

rmnicholson0612 commented 9 months ago

If you want to go back to update a card with tags, text, or even the link, the default sort is by updated_at time.

This is quickly growing confusing as we have more important updates to show but older cards are coming up and appearing as newer because they only highlight the last update time.

I will create a PR for this, but I want to allow the users the option to select which filter they want with 2 current options, updated_at and created_at.

Additionally, the subtitles of the cards when displayed should show information based on this filter. Currently, it should last update time from the current time, but if you selected created_at it will show the time since it was created.

Where it is currently set to sort by

Where card subtitle is set

rmnicholson0612 commented 9 months ago

I can go ahead and create a PR for this over the next week or so!