Skip to content
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

Remove Vue.js, replaced by Qt in the library #946

Merged
merged 29 commits into from
Aug 1, 2023
Merged

Remove Vue.js, replaced by Qt in the library #946

merged 29 commits into from
Aug 1, 2023

Conversation

juuz0
Copy link
Collaborator

@juuz0 juuz0 commented Jun 22, 2023

Fixes #683
Fixes #410
Fixes #554

@juuz0
Copy link
Collaborator Author

juuz0 commented Jun 22, 2023

Current look:
Screenshot from 2023-06-22 13-20-32

@kelson42
Copy link
Collaborator

kelson42 commented Jul 1, 2023

@juuz0 What is left to do?

@juuz0 juuz0 marked this pull request as ready for review July 1, 2023 17:37
@juuz0 juuz0 changed the title [WIP] QT library QT library Jul 1, 2023
@juuz0
Copy link
Collaborator Author

juuz0 commented Jul 1, 2023

@kelson42 fully ready for review! :)

@kelson42
Copy link
Collaborator

kelson42 commented Jul 2, 2023

@mgautierfr Can you please have a look to the feature, to the code? I will make my own user testing.

@kelson42 kelson42 changed the title QT library Remove Vue.js, replaced by Qt in the library Jul 3, 2023
@kelson42
Copy link
Collaborator

kelson42 commented Jul 3, 2023

@juuz0 Rebased to benefit of the latest CI/CD improvements (and the CI passing here)

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have made an intense review so far, but overall feedback is that is LGTM. There is one thing which has not been implemented and this is the spinner. There is no indication of the remote loading of the catalogue anymore, and this is a regression. Can you please re-implement this?

A smal detail, the sorting of the results works fine, but the top/down arrow is really too far from the header, see for example:
image

Is that possible to make it just on the right, or maybe even on the left?

@juuz0
Copy link
Collaborator Author

juuz0 commented Jul 3, 2023

There is no indication of the remote loading of the catalogue anymore, and this is a regression. Can you please re-implement this?

Added now, thanks for informing, There was a problem with the UI blocking while reading the catalog (came from before this PR), fixed along with this.

Is that possible to make it just on the right, or maybe even on the left?

working on it

@juuz0 juuz0 force-pushed the qtlibrary branch 4 times, most recently from c68f2fa to 32fd05c Compare July 5, 2023 12:51
@juuz0
Copy link
Collaborator Author

juuz0 commented Jul 5, 2023

Is that possible to make it just on the right, or maybe even on the left?

Put it on left

Added checks for storage error (app was crashing earlier)

@kelson42 kelson42 self-requested a review July 9, 2023 14:06
Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you don't have added flavours ("Videos", "Pictures", ....) and maybe other strings to en.json... so these strings will never be translated!

The designs use kiwix logo as library icon
Added a new custom dialog box for confirmations.
Currently, it popups when a book is deleted or a download has to be cancelled
When an item is hovered, colour changes to grey.
Change cursor to HandPointer in treeview
Open book description when item is clicked
Increase description box width
Added a new widget (KiwixLoader) which is displayed when the catalog is being downloaded.
@juuz0 juuz0 force-pushed the qtlibrary branch 4 times, most recently from 2c2046a to 566902c Compare July 30, 2023 17:08
@juuz0 juuz0 requested a review from mgautierfr July 30, 2023 17:13
Copy link
Member

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are good. If there is things to change, we can do it later. I think it is time to merge this.

There is only one change, but you can directly fix it in the same time of the rebase-fixup.

For the last comment of @kelson42 about the missing icons, I suggest we move that in another issue and we fix it in another PR.

⚠️ To be rebased-fixup before merging ⚠️

src/contentmanagermodel.cpp Outdated Show resolved Hide resolved
Put updateRemoteLibrary in a new thread so it doesn't block the main UI, particularly the loader widget
created ContentManagerHeader, inherited from QHeaderView, to implement not showing the sort indicator for first column.
Changed sort indicator position to left of text
When the confirm box is initialised with isDialog=true, Ok button is showed instead of yes/no
Shows a dialog box informing the user that the file size is too large to be downloaded on current system.
The search function is now moved to filters area for more consistency
Fix #554
Splitted the views into RowNode and DescriptionNode for consistency
RowNode represents one row with thumbnail, name, data, size, etc.
DescriptionNode shows the description
Removed the raw pointers and replaced them with std::shared_ptr
@juuz0
Copy link
Collaborator Author

juuz0 commented Jul 31, 2023

@kelson42 fixed the last detail. CI is complaining about a libkiwix function which was recently made public. Does it not use the latest libkiwix (current main)?

@mgautierfr
Copy link
Member

@kelson42 fixed the last detail. CI is complaining about a libkiwix function which was recently made public. Does it not use the latest libkiwix (current main)?

A bug in kiwix-build make it not publishing the dependencies of kiwix-desktop. Should be fixed with kiwix/kiwix-build#633

CI here should be ok once it is merged and nightly runs.

@kelson42
Copy link
Collaborator

@juuz0 Does this bran really works with libkiwix 12.0.0 or does in require 12.1.0… and then the .pro file should be updated.

@juuz0
Copy link
Collaborator Author

juuz0 commented Jul 31, 2023

Well it requires the current main branch of libkiwix, which is not associated to any tag yet. The correct label should be 13.0.0 whenever that is released

@juuz0
Copy link
Collaborator Author

juuz0 commented Aug 1, 2023

focal passed, but kinetic is still failing for the same reason

@kelson42
Copy link
Collaborator

kelson42 commented Aug 1, 2023

@juuz0 Kinetic can be removed. Not maintained anymore, I guess thi is the reason why it fails.

@kelson42 kelson42 merged commit be76012 into main Aug 1, 2023
4 checks passed
@kelson42 kelson42 deleted the qtlibrary branch August 1, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants