Skip to content

Conversation

@shreefAhmedM
Copy link

@shreefAhmedM shreefAhmedM commented Dec 17, 2025

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

PR: Fix bugs and improve adding books

What was done:

Fixed errors that stopped books from showing on page load

Fixed issues when adding a new book

Corrected author and read status values

@shreefAhmedM shreefAhmedM changed the title Glasgow | 25-ITP-SEP | Shreef Ibrahim | Book laibrary Glasgow | 25-ITP-SEP | Shreef Ibrahim | Module data flow | Book laibrary Dec 18, 2025
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 18, 2025
@shreefAhmedM shreefAhmedM changed the title Glasgow | 25-ITP-SEP | Shreef Ibrahim | Module data flow | Book laibrary Glasgow | 25-ITP-SEP | Shreef Ibrahim | Sprint 3| Book laibrary Dec 18, 2025
@shreefAhmedM shreefAhmedM changed the title Glasgow | 25-ITP-SEP | Shreef Ibrahim | Sprint 3| Book laibrary Glasgow | 25-ITP-Sept | Shreef Ibrahim | Sprint 2 | Book Library Dec 18, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Dec 18, 2025
@shreefAhmedM shreefAhmedM requested a review from cjyuan December 19, 2025 18:19
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 19, 2025
@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 Dec 19, 2025
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 19, 2025
@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 Dec 19, 2025
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@shreefAhmedM
Copy link
Author

Doing so can help me speed up the review process. Thanks.

i have updated the code

@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 19, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The input validation can still use some improvement. Everything else looks good.

Comment on lines 42 to 45
if (isNaN(Number(pages)) || Number(pages) <= 0) {
showError("Pages must be a positive number.");
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Why not stored the converted number to a variable first to avoid unnecessary conversions?

  • Some invalid "number of pages" can still pass this check. Can you strengthen the check?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you i have updated

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 19, 2025
@shreefAhmedM shreefAhmedM added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Complete Volunteer to add when work is complete and all review comments have been addressed. labels Dec 19, 2025
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 19, 2025
@shreefAhmedM shreefAhmedM requested a review from cjyuan December 19, 2025 22:17
@cjyuan
Copy link
Contributor

cjyuan commented Dec 19, 2025

Looks good!

@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 Dec 19, 2025
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