Repository navigation
Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint 2 | Book Library - #606
salahalsabhi wants to merge 2 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
|
Thanks for the general feedback link. I’ve applied the relevant improvements (form validation, cleaner render, consistent page numbers, delete flow, naming, etc.) and tested add/delete/read status and page load. Ready for another review when you have time. |
| render(); | ||
| alert("You've deleted title: " + deletedTitle); |
There was a problem hiding this comment.
Note: 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).
| titleInput.value = ""; | ||
| authorInput.value = ""; | ||
| pagesInput.value = ""; | ||
| readCheckbox.checked = false; |
There was a problem hiding this comment.
Note: Now that all the input elements are inside a form, we could also just call a method of the form element to reset the form.
Learners, PR Template
Self checklist
Task code
CYF-1122
Changelist
Book Library – Bug Fixes and Improvements
Fixed the known bugs and improved the Book Library application.
Bug Fixes
Improvements
textContentinstead ofinnerHTMLfor displaying user-provided book data.render()call.Testing
Questions
No questions.