Skip to content

London | 26-ITP-May | Zadri Abdule | Sprint 2 | Book - library - #564

Closed
Zadri415 wants to merge 3 commits into
CodeYourFuture:mainfrom
Zadri415:debugging/book-library
Closed

London | 26-ITP-May | Zadri Abdule | Sprint 2 | Book - library#564
Zadri415 wants to merge 3 commits into
CodeYourFuture:mainfrom
Zadri415:debugging/book-library

Conversation

@Zadri415

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

index.html — fix form input types and wiring (changed submit button to call addBook()).
script.js — fixes for seeding, add-book handling, read state (use boolean), rendering, toggle read, and delete logic.

Questions

N/A

@github-actions

This comment has been minimized.

@Zadri415 Zadri415 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected labels Aug 17, 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 17, 2026
@github-actions

This comment has been minimized.

@Zadri415 Zadri415 changed the title London | 26-ITP-May | Zadri Abdule | Sprint | Book - library London | 26-ITP-May | Zadri Abdule | Sprint 2 | Book - library Aug 17, 2026
@Zadri415 Zadri415 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 17, 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.

  • To make it clearer to reviewers that the code has already been reviewed in a separate PR, you could consider including the following in the PR description:

    1. A link to the previous PR.
    2. An explanation of why the previous PR was closed.
  • Could you address the comments I left on the previous PR, in addition to the new comments?

Comment on lines 49 to 55
<input
type="number"
class="form-control"
id="pages"
name="pages"
required
/>

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.

  • The "required" attribute is checked by the browser when a user submits a form, but currently the input elements are not in a form.

  • In the previous PR, you had set the attributes to ensure this element accepts only positive whole integers. Why left the attributes out?

Comment on lines 57 to 62
<input
type="checkbox"
class="form-check-input"
id="check"
value=""
/>Read

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.

If this checkbox is not showing, could you try fixing the issue with the help of AI. The issue is related to Bootstrap 4.4.1. So mentioning "Bootstrap 4.4.1" to AI might help.

value="Submit"
class="btn btn-primary"
onclick="submit();"
onclick="addBook()"

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.

Suggestion: Look up the trade-off between

  • assigning event listener in HTML
  • assigning event listener in JS via .addEventListener()

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

Labels

🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants