kiwix-desktop
kiwix-desktop copied to clipboard
Support for previewing online books
Currently in kiwix-desktop
one cannot preview a book from the online library directly in kiwix-desktop
. They have to visit https://library.kiwix.org using their web-browser and find the book of interest. Having the ability to preview books with a single click will improve the user experience.
I support the feature request
@ShaopengLin Sounds straight forward to me. Would you be able to provide a mockup of a „preview“ button?
@ShaopengLin Sounds straight forward to me. Would you be able to provide a mockup of a „preview“ button?
What type of behaviour do we want?
- Open the link to another browser.
- Open the link in Kiwix-Desktop. Qt Webview should be able to load the website through HTTP request to https://library.kiwix.org/.
@ShaopengLin Open the link in external browser, behaviour should be the same like opening an external link in ZIM content.
I have some potential mockups
-
This is pretty straightforward and keeps the same feel of the UI. One problem is, that once the download starts, users cannot preview the website anymore.
-
Having the preview button in the description solves the issue from 1.. The downside is that it isn't as readily apparent to the user.
-
Having another column for preview solves both.
@kelson42 All 3 are doable and personally, I am leaning toward 2. or 3.. The code for the download column is pretty cohesive currently, and handling an extra preview button makes its responsibility way too complicated.
@ShaopengLin The 2 is the best to me IMHO, but please put the preview link after the description (instead of before).
@kelson42 Do we want the preview button to persist after the download?
If so: To confirm, what are the book URL rules on https://library.kiwix.org/? The download URL is no longer provided by the library after it has been downloaded so I cannot extract the book URL then.
From what I have seen, our book URLs are formatted as:
- name + '_' + (flavor + '_' ) (if exist) + date (yyyy-mm)
@kelson42 Do we want the preview button to persist after the download?
No, should be only available for online library.
@ShaopengLin The 2 is the best to me IMHO, but please put the preview link after the description (instead of before).
Let's first implement this feature as an additional entry in the context menu. Once it works a button or a link can be added in a follow-up PR.
@kelson42 Note that the functionality was implemented via a context menu entry (which kind of makes this feature somewhat hidden). Maybe it makes sense to open a ticket for conspicuous UI for the preview action.
@veloman-yunkan Good enough for me at this stage