[newsfeed] Suppress unsightly animation edge cases when there are 0 or 1 active news items (#3336)

When the newsfeed module has an items list of size 1, every
`updateInterval` the animation runs to transition from the active story
to itself. This is unsightly. This PR suppresses that.

To reproduce: configure newsfeed with a single news source,
`ignoreOldItems` true, a short `updateInterval` (e.g. 3000), and a
carefully-chosen small `ignoreOlderThan` lining up with the current
contents of your news source.
This commit is contained in:
Ross Younger
2024-01-14 21:12:32 +13:00
committed by GitHub
parent b47600e0d8
commit dadc7ba0a2
3 changed files with 36 additions and 7 deletions

View File

@@ -21,6 +21,8 @@ _This release is scheduled to be released on 2024-04-01._
### Fixed
- Skip changelog requirement when running tests for dependency updates (#3320)
- [newsfeed] Suppress unsightly animation cases when there are 0 or 1 active news items
- [newsfeed] Always compute the feed item URL using the same helper function
### Deleted