-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sort featured stories based on publication date in descending order #907
Conversation
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thank you for the clarification @hanbyul-here. I will keep this is mind while making future changes. After passing the new sortedFeaturedItems array, bunch of type mismatch errors got introduced on ts-check. I believe this is because not all properties of StoryData is present on DatasetData. But, I am unsure why these errors are only there when using sortedFeaturedItems. Shouldn't sortedFeaturedItems has similar properties as featuredItems?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS error was mainly because TS is confused if sorted array is a mix of StoryData and DatasetData or not. Thanks for picking up the issue.
## 🎉 Features - Zoom in AOI, TOI when analysis is run in #906 - Add custom javascript injection #846 - ADR for V2 Refactor: #875 - Open all external links in a new tab in #870 - Include dataset id to filter layers in #910 - Some datasets can only be analyzed with layers from the same source in #913 - Create minimal partial data layer scaffold starting off with Data Catalog for VEDA2 Refactor in #893 - Add analysis preset in #921 ## 🚀 Improvements - Chart style improvement in #903 - Data Catalog enhancement with floating filter sidebar in #918 - Sum as statistics option in #925 - ## 🐛 Fixes - Sort featured stories based on publication date in descending order in #907 - Replace latency with temporalResolution in layer info in #898 - Add a workaround for Safari scroll problem in #909 - Handle empty result in #922
Description of Changes
Sorted the featuredItems on function FeaturedSliderSection based on their publication date so that featured stories are ordered from most recent to oldest
Issue
Closes #894