-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Canonical Books Page (Merging works & Editions UI) #3553
Conversation
d1fcb3f
to
63f7c74
Compare
9067bea
to
00e63df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through all the files and LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the code; mostly some i18n things/invalid css/etc. Also, was there a bad rebase somewhere? A lot of these changes are about adding that author search bar, which I though was merged separately.
$_('in') <a title="$(', '.join(doc.languages))">$(len(doc.languages)) $_('languages')</a> | ||
</span> | ||
$if doc.get('ia'): | ||
— $(len(doc.get('ia'))) $_('previewable') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i18n number in the string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
— $(len(doc.get('ia'))) $_('previewable') | |
— $_('%s previewable' % len(doc.get('ia'))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use %
; use %d
.
Small style fixes:
|
See: #3553 Screenshot: https://user-images.githubusercontent.com/978325/86527110-9eda7700-be50-11ea-84ea-7b0651a77f79.png Change Log: - Adds sticky tab bar to books page - Show more / less collapse button - Books page chooses "best" (previewable) edition by default, shows selected edition in editions table - Search result shows cover consistent w/ available edition, sends to (3) - Adds editions table to the books page - Adds filter/search to editions table + ability to change # of results in table w/o reloading - Adds checkbox to List dropdown to control whether to add work v. edition to list - Adds "preview also available in" for various applicable languages - Fun / useless bookcover hover animation - Consolidates calls to action within sidebar + moves sidebar to the left, below bookcover Technical: - Merges the UI for /works and /books. - URLs are not touched - Lists are loaded multiple times on page (to enable showing edition + work results & separating locations of lists management from carousel/showcase) Co-authored-by: tabshaikh <[email protected]> Co-authored-by: Drini Cami <[email protected]> Co-authored-by: Michael E. Karpeles (mek) <[email protected]>
886abe4
to
53cd27d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batching PR suggestions
$_('in') <a title="$(', '.join(doc.languages))">$(len(doc.languages)) $_('languages')</a> | ||
</span> | ||
$if doc.get('ia'): | ||
— $(len(doc.get('ia'))) $_('previewable') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
— $(len(doc.get('ia'))) $_('previewable') | |
— $_('%s previewable' % len(doc.get('ia'))) |
1ac4112
to
1aafef1
Compare
#3553 (comment) |
ca09d3b
to
e8296fa
Compare
e8296fa
to
cb13ba7
Compare
See: #3553 Screenshot: https://user-images.githubusercontent.com/978325/86527110-9eda7700-be50-11ea-84ea-7b0651a77f79.png Change Log: - Adds sticky tab bar to books page - Show more / less collapse button - Books page chooses "best" (previewable) edition by default, shows selected edition in editions table - Search result shows cover consistent w/ available edition, sends to (3) - Adds editions table to the books page - Adds filter/search to editions table + ability to change # of results in table w/o reloading - Adds checkbox to List dropdown to control whether to add work v. edition to list - Adds "preview also available in" for various applicable languages - Fun / useless bookcover hover animation - Consolidates calls to action within sidebar + moves sidebar to the left, below bookcover Technical: - Merges the UI for /works and /books. - URLs are not touched - Lists are loaded multiple times on page (to enable showing edition + work results & separating locations of lists management from carousel/showcase) Co-authored-by: tabshaikh <[email protected]> Co-authored-by: Drini Cami <[email protected]> Co-authored-by: Michael E. Karpeles (mek) <[email protected]>
cb13ba7
to
0fe6135
Compare
Thank you both! I think I've addressed all of the blocking feedback and even most of the suggestions on this issue. At this point, I think we're pretty close. Not thrilled about the PR being having been squashed but I think the description of the commit and the scope is pretty thorough. A lot of the intermediary work was also scratch (and given what we had I think I prefer it being squashed, especially since the major refactors -- the Lists -- were done in a separate branch). @tabshaikh, so we're ready for tomorrow's deploy, if you're comfortable, can you please do a final pass, making sure we didn't miss any of @cdrini's feedback and that there are no blockers? When you feel confident please merge and we can discuss during ABC to see if any followups are necessary to the PR before a deploy goes out. There are 2 known issues remaining; the first is a formatting issue which I agree doesn't look amazing, but I'd prefer tackling this as a followup once the main branch is landed. The other is an edge case re: books w/ missing authors which has an issue open for it. |
As @mekarpeles pointed out there are 2 known issues remaining; the first is a formatting issue which I agree doesn't look amazing, but I'd prefer tackling this as a followup once the main branch is landed. The other is an edge case re: books w/ missing authors which has an issue open for it. |
(Note: The history is funny because everything was squashed initially, and then reverted to be added back unsquashed) Change Log: - Adds sticky tab bar to the books page - Show more / less collapse button - Books page chooses "best" (previewable) edition by default, shows selected edition in editions table - Search result shows cover consistent w/ available edition, sends to (3) - Adds editions table to the books page - Adds filter/search to editions table + ability to change # of results in table w/o reloading - Adds a checkbox to List dropdown to control whether to add work v. edition to list - Adds "preview also available in" for various applicable languages - Fun / useless book cover hover animation - Consolidates calls to action within sidebar + moves sidebar to the left, below the book cover Technical: - Merges the UI for /works and /books. - URLs are not touched - Lists are loaded multiple times on page (to enable showing edition + work results & separating locations of lists management from carousel/showcase) Co-authored-by: tabshaikh <[email protected]> Co-authored-by: Michael E. Karpeles (mek) <[email protected]>
Closes #684 🎉
Closes #3556 🎉
Change Log
Technical
Code Review Checklist
Known issues
subjects
and pagination css affecting other pages (e.g. authors page)https://dev.openlibrary.org/works/OL17335914W/The_Three-Body_Problem?edition=
openlibrary_edition
olid returned by the archive.org ES availability API. If the API has noolid
, we fallback to archive.org (for now)Punting:
Testing
Screenshot
Stakeholders
@bfalling @JeffKaplan @tabshaikh @cdrini @seabelis et al