Skip to content

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 2 | Book Library - #539

Open
KhotKeys wants to merge 5 commits into
CodeYourFuture:mainfrom
KhotKeys:book-library
Open

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 2 | Book Library#539
KhotKeys wants to merge 5 commits into
CodeYourFuture:mainfrom
KhotKeys:book-library

Conversation

@KhotKeys

@KhotKeys KhotKeys commented Aug 12, 2026

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

Fixed all bugs in the book library, specifically:

  • fixed a syntax error in the for loop in the render function.
  • fixed the submit function using the wrong variable name (library instead of myLibrary).
  • fixed the author field using title value instead of author value.
  • fixed the delete button variable name mismatch (delBut vs delButton) and wrong event name (clicks instead of click).
  • fixed the inverted read status logic showing wrong Yes/No values.

Questions

None.

@KhotKeys KhotKeys 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. 🏕 Priority Mandatory This work is expected labels Aug 12, 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 12, 2026
@KhotKeys KhotKeys added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. 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.

Changes look good.

I only have a few suggestions.

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
@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 16, 2026
@KhotKeys KhotKeys added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 19, 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.

Changes look good.

Comment thread debugging/book-library/script.js Outdated
const pages = document.getElementById("pages");
const check = document.getElementById("check");
// 2. Attach event listener in JS via .addEventListener() instead of HTML inline
bookForm.addEventListener("submit", function (event) {

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

  • Define the "on submit" callback function as a named function.
  • Place the "callback setup" statement together with all the code that run 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.

Doing so could make it easier to locate and manage all the code that runs once when the app starts.

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.

Perfect, let me fall back and add those, thank you so much

Could consider

  • Define the "on submit" callback function as a named function.
  • Place the "callback setup" statement together with all the code that run 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.

Doing so could make it easier to locate and manage all the code that runs once when the app starts.

Perfect, let me fall back and add those, thank you so much

@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 19, 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. 🏕 Priority Mandatory This work is expected 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants