audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

Fix series and collapsed series progress to be consistent and show average of book series progress

Open mikiher opened this issue 1 year ago • 1 comments

This fixes #2921.

In a nutshell, the changes are:

  • Correct series and collapsed series progress bars to show the same
    • The series card in the Series page and collapsed series book card display the same progress.
    • The progress displayed is now the average of the series books progress (i.e. the sum of all the series individual book progresses, divided by the number of books in the series)
  • Added libraryItemIds to collapsedSeries objects return from the server
    • This fixes the bug in seriesIsFinished in LazyBookCard, which currently always returns true
  • Simplified progress bar logic in LazyBookCard

mikiher avatar May 09 '24 05:05 mikiher

Also added some component tests for LazyBookCard, especially around collapsedSeries cards.

mikiher avatar May 10 '24 09:05 mikiher

Great, thanks!

advplyr avatar May 12 '24 18:05 advplyr