Skip to content

London | 26-ITP-May | Yonatan Teklemariam | Sprint 2 | Book Library - #532

Open
Yonatanteklemariam wants to merge 4 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-2-Book-Library
Open

London | 26-ITP-May | Yonatan Teklemariam | Sprint 2 | Book Library#532
Yonatanteklemariam wants to merge 4 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-2-Book-Library

Conversation

@Yonatanteklemariam

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 the wrong variable name of the library
corrected the author field and changed it to author.value
repaired the read/unread logic
fixed the delete button by fixing the correct variable name
repaired the syntax error in the render function

Questions

@Yonatanteklemariam Yonatanteklemariam added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 8, 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 10, 2026
@Yonatanteklemariam Yonatanteklemariam 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 11, 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 is solid. Just a few more 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
Comment on lines +46 to +49
!pagesValue ||
isNaN(pagesNumber) ||
pagesNumber <= 0 ||
!Number.isInteger(pagesNumber)

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.

Some of the checks are probably redundant.

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.

I meant to point out: !Number.isInteger(pagesNumber) also covers isNaN(pagesNumber)

Even though the HTML form has been prepared to ensure the input is a whole number, it is still a safer practice to check the input again in JS.

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 11, 2026
…ved redundant validation for the browser handles validation on its own..
@Yonatanteklemariam Yonatanteklemariam 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 11, 2026
@cjyuan

cjyuan commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Changes look good.

@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 11, 2026
@Yonatanteklemariam

Copy link
Copy Markdown
Author

Thank you for your persistence and mentoring me through the right direction. I've removed the validation in the js as a form with its inbuilt validation is added in the html. But it's essential to have some validation in the js as you suggested as well.

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