Skip to content

Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 2 | Book-library - #507

Open
meneogbemi42-bit wants to merge 6 commits into
CodeYourFuture:mainfrom
meneogbemi42-bit:module-data-flows/book-library/Sprint1
Open

Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 2 | Book-library#507
meneogbemi42-bit wants to merge 6 commits into
CodeYourFuture:mainfrom
meneogbemi42-bit:module-data-flows/book-library/Sprint1

Conversation

@meneogbemi42-bit

Copy link
Copy Markdown

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

this PR fixes several bugs and improves the Book Library UI logic in debugging/book-library/script.js — it corrects typos, tightens form validation, ensures new books are created with the correct author and stored in the right array, clears the form after submit, and fixes the table-rendering and read/delete button behavior.

@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit changed the title |Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 1 | debugged/book-library Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 1 | debugged/book-library Aug 3, 2026
@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 3, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 3, 2026
@meneogbemi42-bit meneogbemi42-bit changed the title Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 1 | debugged/book-library |Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 2 | debugged/book-library Aug 3, 2026
@meneogbemi42-bit meneogbemi42-bit added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 3, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 3, 2026
@github-actions

This comment has been minimized.

@meneogbemi42-bit meneogbemi42-bit changed the title |Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 2 | debugged/book-library Birmingham | 26-ITP-May | Ogbemi Mene | Sprint 2 | Book-library Aug 3, 2026
@meneogbemi42-bit meneogbemi42-bit added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 3, 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.

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.

@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 5, 2026
@meneogbemi42-bit meneogbemi42-bit 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 5, 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.

It's a major overhaul of the original code! The code looks solid. I just have a few comments.

Comment thread debugging/book-library/index.html
Comment thread debugging/book-library/script.js
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 on lines 241 to 248
document.addEventListener("DOMContentLoaded", () => {
loadLibraryFromStorage();
render();
});

if (bookForm) {
bookForm.addEventListener("submit", handleFormSubmit);
}

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 also include the if-statement in the callback on lines 241-245.

@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 5, 2026
@meneogbemi42-bit meneogbemi42-bit 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 6, 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 great. Well done!

Comment on lines +165 to +167
const tempDiv = document.createElement("div");
tempDiv.textContent = book.title;
showNotification(`"${tempDiv.innerHTML}" added to your library.`, "success");

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.

Good catch.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 6, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants