Skip to content

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 2 | Book-library - #511

Open
TTiamiyu wants to merge 5 commits into
CodeYourFuture:mainfrom
TTiamiyu:module-data-flow-library
Open

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 2 | Book-library#511
TTiamiyu wants to merge 5 commits into
CodeYourFuture:mainfrom
TTiamiyu:module-data-flow-library

Conversation

@TTiamiyu

@TTiamiyu TTiamiyu commented Aug 4, 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

Book library Completed.

@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

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

This comment has been minimized.

@TTiamiyu TTiamiyu changed the title Birmingham | Toluwalase Tiamiyu | Sprint 2 | Book Library Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 2 | Book-library Aug 4, 2026
@TTiamiyu TTiamiyu added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. labels Aug 4, 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
@TTiamiyu

TTiamiyu commented Aug 5, 2026

Copy link
Copy Markdown
Author

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.

hi, i have gone through the code and i have made the needed adjustment in my last commit, thank you

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

Changes look great. Well done.

Comment on lines +46 to +49
<div class="form-group">
<label for="pages">Pages:</label>
<input type="number" class="form-control" id="pages" min="1" required />
</div>

@cjyuan cjyuan Aug 5, 2026

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.

Why not make this input element to accept only whole number?

Comment on lines +39 to 46
const pagesValue = Number(pagesInput.value);
const isRead = checkInput.checked;

// Validation check
if (!titleValue || !authorValue || isNaN(pagesValue) || pagesValue <= 0) {
showStatus("Please enter valid book details.", "danger");
return;
}

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.

What if pageValue is a number like 3.1416?

@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 5, 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. Module-Data-Flows The name of the module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants