Skip to content

London | May-2026-itp | Vitalii Kmit | Sprint 2 | Book library - #554

Open
Vitalii-code wants to merge 17 commits into
CodeYourFuture:mainfrom
Vitalii-code:feature/book-library
Open

London | May-2026-itp | Vitalii Kmit | Sprint 2 | Book library#554
Vitalii-code wants to merge 17 commits into
CodeYourFuture:mainfrom
Vitalii-code:feature/book-library

Conversation

@Vitalii-code

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 bugs

@Vitalii-codeVitalii-code added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 14, 2026

@cjyuancjyuan 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.

@cjyuancjyuan 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 14, 2026
@Vitalii-codeVitalii-code 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

Copy link
Copy Markdown
Contributor

Could you go through the guide again and make all possible improvements?

@cjyuancjyuan 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
- Rename DOM reference variables to signal element type (titleInput, authorInput, pagesInput, checkInput)
- Change myLibrary from let to const
- Trim title/author before storing, not just validating
- Reject non-numeric and non-positive page counts
- Replace blocking window.alert() with non-blocking showMessage() banner for delete confirmation
@Vitalii-codeVitalii-code 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 16, 2026
Comment threaddebugging/book-library/index.html Outdated
Comment threaddebugging/book-library/script.js Outdated
Comment threaddebugging/book-library/script.js
Comment threaddebugging/book-library/script.js Outdated
@cjyuancjyuan 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 17, 2026
@Vitalii-code

Copy link
Copy Markdown
Author

Ok, should be good now

@Vitalii-codeVitalii-code 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 17, 2026

@cjyuancjyuan 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 on lines +49 to +52
pagesInput.value.trim() == "" ||
Number.isNaN(pageCount) ||
!Number.isInteger(pageCount) ||
pageCount <= 0

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.

Note: Two of these checks are optional (redundant).

@cjyuancjyuan 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 17, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CompleteVolunteer 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

@Vitalii-code@cjyuan