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

Calibre plugin - Series/Tag browser updated to show back button. #8869

Merged
merged 5 commits into from
Mar 16, 2022

Conversation

etaletovic
Copy link
Contributor

@etaletovic etaletovic commented Mar 4, 2022

When browsing tags and series there was no way to go "back" from tag/series results. Figured we can enable return button navigation by pushing entry to paths property of Menu widget.

When return button is enabled it is overlapping with rounded border previously present on browse widget so I made it borderless.


This change is Reviewable

@Frenzie Frenzie added this to the 2022.03 milestone Mar 4, 2022
@Frenzie Frenzie added the Plugin label Mar 4, 2022
@etaletovic
Copy link
Contributor Author

Found a bug. Working on fixing it.

- Moved "find books" option from CalibreSearch:find(option)
into CalibreSearch:browse(option) function. This way all search options
are handled in one place only.

- Menu is created only once and it is in CalibreSearch:browse(option)
function. This is where it is also invoked with UIManager:show(w).
Switching between different menu content (tags/series/books) is
done using CalibreSearch:switchResults function which will internally
call Menu:switchItemTable. Previously menu was being instantiated
in 2 places depending on are we searching books or series/tags

- Return arrow navigation: Border around Menu is gone to give space
for back arrow. Navigation seems to be working fine so far but will
give it some time to test in case I find any other bugs
@etaletovic
Copy link
Contributor Author

Seems to be working as I expect it. Tested using emulator and Libra H20.

Copy link
Member

@pazos pazos left a comment

Choose a reason for hiding this comment

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

Looks good. I don't have time to test it in the near future.

LGTM and see how it behaves in "production" :D

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

Could you fix these issues?

    plugins/calibre.koplugin/search.lua:6:7: unused variable 'CenterContainer'
    plugins/calibre.koplugin/search.lua:17:7: unused variable 'Size'
    plugins/calibre.koplugin/search.lua:384:1: line contains only whitespace
    plugins/calibre.koplugin/search.lua:459:1: line contains only whitespace

@etaletovic
Copy link
Contributor Author

@Frenzie Done. QQ: What do you execute to get those warnings? I was just running it with ./kodev run

@Frenzie
Copy link
Member

Frenzie commented Mar 16, 2022

In this case I just saw a red cross on the CircleCI build. If you run kodev check it'll run the same luacheck command (provided you have it set up).

@etaletovic
Copy link
Contributor Author

I had to install luacheck but yeah I see it now. Good to know going forward.

@Frenzie Frenzie merged commit f8eca5f into koreader:master Mar 16, 2022
@Frenzie
Copy link
Member

Frenzie commented Mar 16, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants