Repository navigation
fix: show the catalog title of locked books on the shelf - #21
Merged
Merged
Conversation
The Kindle catalog already gives the title of a book before it is unlocked, but the shelf and the side panel still showed its ASIN. A locked book now shows its title when it is known, with the ASIN in the detail line; one with no title keeps the ASIN and "title once unlocked". The web demo does the same, and the README and PRODUCT.md say so.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Locked books on the shelf and in the side panel show their title from the Kindle catalog instead of their ASIN. The web demo does the same.
Why
Anzu already reads each title from the Kindle catalog, but a locked book still showed a code like B0DEMO0001. People see codes instead of the books they recognise.
How
ui/library.rs: a row knows whether its title is real. A locked book with a title shows it, with the ASIN in the detail line; one without keeps the ASIN and "title once unlocked".demo.rsgives locked books their titles. README, README.es and PRODUCT.md updated.Evidence
books_show_their_titles_before_and_after_the_runandbooks_appear_only_once_downloadedcover it. Demo checked in the browser: the shelf shows Moby-Dick and Pride and Prejudice before unlocking.Screenshot: to be attached.
Checklist
cargo test --workspaceandcargo clippy --workspace --all-targets -- -D warningspasscrates/anzu/src/i18n.rs, or there is none