filter books by scraper and issues#390
Conversation
|
@benoit74 , there are other places where the BookTable is used. For example in books view and in title detail view. Should we make those cards too? And should we extend the filters to teh normal books view? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #390 +/- ##
==========================================
+ Coverage 80.83% 80.84% +0.01%
==========================================
Files 62 62
Lines 3454 3503 +49
Branches 377 385 +8
==========================================
+ Hits 2792 2832 +40
- Misses 547 554 +7
- Partials 115 117 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
benoit74
left a comment
There was a problem hiding this comment.
Thank you
- Seeing it in action, I don't feel like displaying the whole scraper metadata and allowing to search inside it in free text is the good approach. I suggest we rather replace (in the UI) the "Scraper" filter with an "Offliner" filter which is a list of offliners as currently defined in Zimfarm (I suggest UI call Zimfarm API to retrieve list of offliners).
- The UI should then not show the "Scraper" metadata in the card, but the "Offliner" (just matching the scraper metadata, and saying "Unknown" if there is no match)
- The card width can then be made much smaller, with at least 3 or maybe even 4 cards side-by-side
- The card UI should be polished: all "lines" should have the same height (except the list of issues where we want one issue per "line" + one line for the "view issues" button), data should not overflow on two lines but be wrapped with ellipsis, elements of "status" should be vertically aligned.
This will require zimfarm to whitelist cms UI due to CORS |
OK, we will need to do this anyway for #333 |
Should we also show "unknown" when user doesn't pass any offliner? Also, the book full details inherits this attribute, should it also show "Unknown" instead of the underlying "scraper"? |


Changes
This closes #388