-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removed inline js from breadcrumb_select.html. #8447
Removed inline js from breadcrumb_select.html. #8447
Conversation
Added and improved functionality of inline javascript in breadcrumb_select.js file. Imported this breadcrumb_select.js file in index.js.
Codecov Report
@@ Coverage Diff @@
## master #8447 +/- ##
==========================================
- Coverage 15.90% 15.83% -0.07%
==========================================
Files 85 86 +1
Lines 4635 4653 +18
Branches 814 818 +4
==========================================
Hits 737 737
- Misses 3381 3395 +14
- Partials 517 521 +4
|
@RayBB any changes? |
@imperial-chief can you please provide instructions for testing and screenshots of it working? |
The testing should be go to a page like "currently reading" and then use dropdown to move to another page. Overall it looks good though! |
Okay i will try doing so.
|
Someone else who isn't me will test the PR. We should write steps for them to test it so they don't need to figure out what page the code runs on. |
@RayBB i tried finding the usage of this, |
@RayBB let me know for any changes further. |
@imperial-chief the code looks good. |
@RayBB i tried running the changes but i failed. |
@imperial-chief did you try rebuilding the JS? Or A bit more info on docker here: https://github.com/internetarchive/openlibrary/blob/master/docker/README.md If you're still having trouble you can watch some of the onboarding videos at https://github.com/internetarchive/openlibrary/blob/master/CONTRIBUTING.md |
@RayBB i uploaded a screenshot and a screencast link of testing. |
Looks good to me. Now we just need @jimchamp to review and merge :) |
Sure! |
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.
Thanks @imperial-chief! Will merge after I commit my suggested changes.
Added and improved functionality of inline javascript in breadcrumb_select.js file. Imported this breadcrumb_select.js file in index.js.
Closes #8380 Remove inline js: books/breadcrumb_select.html
Refactor
Technical
Removed inline js from breadcrumb_select.html.
Updated index.js and created a file openlibrary/plugins/openlibrary/js/breadcrumb_select/index.js for using the inline js functionality.
Testing
Screenshot
Screencast from 2023-10-24 18-37-44.webm
Stakeholders
@RayBB