West Midlands | 26-ITP-May | Alina Sofragiu | Sprint 2 | Book-library - #508
West Midlands | 26-ITP-May | Alina Sofragiu | Sprint 2 | Book-library#508sofragiualina wants to merge 8 commits into
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
Can you check if any of this general feedback can help you further improve your code?
https://github.com/CodeYourFuture/Module-Data-Flows/blob/general-review-feedback/debugging/book-library/feedback.md
Doing so can help me speed up the review process. Thanks.
|
I've gone through the review and updated my project I fixed the HTML validation issues, improved the input validation, renamed variables to be more descriptive, used textContent instead of innerHTML where appropriate, stored the page count as a number and made other improvements |
cjyuan
left a comment
There was a problem hiding this comment.
Changes look solid. I only have a few comments.
|
|
||
| render(); | ||
|
|
||
| alert(`You've deleted "${deletedTitle}".`); |
There was a problem hiding this comment.
alert() is a blocking function call. As a result, invoking it prevents the browser from updating the UI until the dialog is dismissed.
If time permits, research for approaches that allows the UI to update before displaying the alert dialog. (This is an optional change).
Added step attribute to pages input
…dation for book details
Removed the 'step' attribute from the pages input field.
|
applied the suggested changes, thank you |
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good. Well done.
|
|
||
| const submitButton = document.getElementById("submitButton"); | ||
|
|
||
| submitButton.addEventListener("click", submit); |
There was a problem hiding this comment.
Better practice to keep all the code that needs to be executed once on page load in the one place.
|
Do checkout https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/about-tasklists about how to markup checkboxes in Markdown on GitHub. |
… functionality
Learners, PR Template
Self checklist
Changelist
Fixed the Book Library bugs