feat: Properly show updates of news articles#973
Conversation
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi there! 👋 Thank you for your contribution to the FIP Guide! 🚀 Checklist before merging:
|
da86496 to
5ac0a3f
Compare
|
Thanks for the implementation. I think it's a huge improvement for the usability |
lenderom
left a comment
There was a problem hiding this comment.
Thank you for the addition. I think this is a great addition for our users to see which news articles got an update. In the past this wasn't easiely accessible.
I've found some minor improvements:
When having a first glimpse on this PR, I saw badges at the article. However these are not visible anymore:
Also I find the badges a bit distracting / too prominent. For example in the sidebar:
Good catch, this was a bug with the updated logic, the page store is only initialized on first render, which didn't happen on the main page. Fixed.
I changed it to normal text in the sidebar, which is less disturbing. For the main page it probably still make sense to generate attention. In the end we want users to recognize that there has been an update. |
Add a new updated attribute to articles. It should reflect the date of the last major update. This replaces the previous manual handling via updating the original date and the title. The updated date is displayed after the original date as updated tag.
In addition, add an updated partial which can be used to show the updated parts in the news article.