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 legacy reading log dropper code + "My Books Dropper" feature flag #8539

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Nov 17, 2023

Removes legacy "Want to Read" dropper code, and the related feature flag.

Notable changes:

File What changed Supplanted by (if applicable)
ReadingLogDropper.html Deleted /templates/my_books/dropper.html
/js/lists/index.js Deleted /js/my-books/index.js
/templates/list/widget.html Modified render_head function, removing seed_type parameter N/A
/css/components/dropper.less
/css/components/dropper--tablet.less
Deleted /css/components/generic-dropper.less
/css/components/mybooks-dropper.less
SearchResultsWork.html Removed reading_log parameter, which held the legacy dropper's rendered HTML string. Droppers now included if include_dropper is truthy N/A
/template/lists/dropper_lists.html Removed legacy_rendering parameter N/A

Technical

Testing

Screenshot

Stakeholders

@jimchamp jimchamp force-pushed the rm-legacy-dropper-code branch from 1663901 to 2b9ed8f Compare November 17, 2023 23:40
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a90932d) 16.00% compared to head (2304634) 16.65%.
Report is 32 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8539      +/-   ##
==========================================
+ Coverage   16.00%   16.65%   +0.65%     
==========================================
  Files          86       85       -1     
  Lines        4692     4406     -286     
  Branches      822      765      -57     
==========================================
- Hits          751      734      -17     
+ Misses       3416     3191     -225     
+ Partials      525      481      -44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jimchamp jimchamp added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Nov 20, 2023
@jimchamp jimchamp force-pushed the rm-legacy-dropper-code branch from 2b9ed8f to 44588a5 Compare November 20, 2023 20:49
Lists widget is no longer available on subject pages, so there is now no
need to render the subject page header.
@jimchamp jimchamp force-pushed the rm-legacy-dropper-code branch from 44588a5 to 2304634 Compare November 21, 2023 19:07
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Code lgtm! Searched for a few and found no dangling references. Tested:

Logged out:

  • ✅ Appears in search results
  • ✅ Clicking in search results sends to login
    • Bug: It doesn't forward the url parameters, it just sends you back to /search
  • ✅ Appears on book page
  • ✅ Clicking on book page sends to login
    • Bug: It doesn't forward the url parameters, so returned to wrong edition
  • ✅ Does not appear on subject page
  • ✅ Add to list appears on Author page
  • ✅ Clicking on "Add to list" on authors pages sends you to log in

Logged in:

  • ✅ Appears in search results
  • ✅ Tap to want to read works
  • ✅ Adding to other reading log shelf works
  • ✅ Removing from reading log works
  • ✅ Appears on book page
  • ✅ On books page, my lists containing the edition appear under dropper
  • ✅ On books page, click to want to read works
  • ✅ Appears on author page
  • ✅ Clicking on author page lets you add to list
    • Bug: Doesn't close after clicking
  • ✅ Your lists are displayed under add to list

@cdrini cdrini merged commit 7569b11 into internetarchive:master Nov 21, 2023
4 checks passed
@jimchamp jimchamp deleted the rm-legacy-dropper-code branch January 31, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Testing Priority: 1 Do this week, receiving emails, time sensitive, . [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants