Skip to content

Glasgow | 26-ITP-May | Tuan Nguyen | Sprint 2 | Book-Library-Project - #556

Open
Jacknguyen4438 wants to merge 9 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:May-ITP-Libary-Project-Tuan-Nguyen
Open

Glasgow | 26-ITP-May | Tuan Nguyen | Sprint 2 | Book-Library-Project#556
Jacknguyen4438 wants to merge 9 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:May-ITP-Libary-Project-Tuan-Nguyen

Conversation

@Jacknguyen4438

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Hello and thank you for checking this course work PR. In this PR I have fixed all major issues with in the project, the book library is now is fully function and displayed properly. If further fix and change need to be made please let me know thank you.

Questions

No Question.

@Jacknguyen4438 Jacknguyen4438 added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. Core This is a core task and should be completed by all trainees labels Aug 15, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could 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.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 15, 2026
@Jacknguyen4438

Copy link
Copy Markdown
Author

Hello @cjyuan, thank you very much for your time on review my PR. I have make needed change after reading feedback.md and do validation check. I have fix the issue with meta tag with incorrect attribute, input and label. For JS file I updated the JavaScript code by removing an unnecessary render() call during page load, improving variable names to make it clearer that they reference DOM elements, trimming user input before validation, and converting the page count from a string to a number.

If further change need to be make please let me know thank you.

@Jacknguyen4438 Jacknguyen4438 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 16, 2026
Comment thread debugging/book-library/index.html Outdated
Comment thread debugging/book-library/index.html Outdated
Comment thread debugging/book-library/script.js Outdated
Comment thread debugging/book-library/index.html Outdated
Comment thread debugging/book-library/script.js Outdated
Comment thread debugging/book-library/script.js Outdated
Comment thread debugging/book-library/script.js Outdated
Comment thread debugging/book-library/script.js Outdated
Comment thread debugging/book-library/script.js Outdated
@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 16, 2026
Use const for myLibrary and improve page count validation by rejecting negative and decimal values.
By moving shared variables to the top of the file and refactoring table rendering to clear and update the tbody more efficiently.
By adding proper form support for browser validation and applying consistent code formatting and indentation.
 By improving Bootstrap form markup, handling form submission through addEventListener, and updating delete notification behaviour.
@Jacknguyen4438

Jacknguyen4438 commented Aug 17, 2026

Copy link
Copy Markdown
Author

Hello @cjyuan, thank you so much on your feed back on the mistake I make on the code, I have making fix and change base on the feed and it ready for your review again. if further improvement needed please let know.

@Jacknguyen4438 Jacknguyen4438 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 17, 2026
@Jacknguyen4438
Jacknguyen4438 requested a review from cjyuan August 17, 2026 09:27

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes look good. Well done.

Comment on lines +10 to +13
bookForm.addEventListener("submit", function (event) {
event.preventDefault();
submit();
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could consider placing all code that runs once on page load in a single function. For example, you could put it inside the page load callback or create a function named init() or setup() and call it once when the page loads.

This makes it easier to locate and manage all the code that runs once when the app starts.

Comment on lines +45 to +47
Number.isNaN(pagesValue) ||
pagesValue < 1 ||
!Number.isInteger(pagesValue)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One of these checks is optional (redundant).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for the feed back I see that there is better way of doing this validation check I will test this and mesage you back as soon as possible.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Core This is a core task and should be completed by all trainees Module-Data-Flows The name of the module. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants