Skip to content

London | 26-ITP-Jan | Karla Grajales | Sprint 2 | Book Library #416

Open
Grajales-K wants to merge 30 commits intoCodeYourFuture:mainfrom
Grajales-K:Book-Library
Open

London | 26-ITP-Jan | Karla Grajales | Sprint 2 | Book Library #416
Grajales-K wants to merge 30 commits intoCodeYourFuture:mainfrom
Grajales-K:Book-Library

Conversation

@Grajales-K
Copy link
Copy Markdown

@Grajales-K Grajales-K commented Apr 9, 2026

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

This project provided a valuable opportunity for debugging; I checked the project and used the devtools to identify and fix the errors.

@github-actions

This comment has been minimized.

@Grajales-K Grajales-K added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected 📅 Sprint 2 Assigned during Sprint 2 of this module javascript Pull requests that update javascript code labels Apr 9, 2026
Copy link
Copy Markdown
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.

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 Apr 10, 2026
Grajales-K and others added 3 commits April 10, 2026 18:04
- remove static <tr> tags, generated by Dom and.

- fix: id in the opening tag <tbody>
…for loop delete to clear the table before to render
@Grajales-K Grajales-K requested a review from cjyuan April 14, 2026 15:59
@Grajales-K Grajales-K added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 14, 2026
@Grajales-K
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.

I have made a lot of changes, and I hope they are better now. Thank you!

Copy link
Copy Markdown
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.

Changes look good.

Comment on lines +40 to +46
const titleVal = titleInput.value.trim();
const authorVal = authorInput.value.trim();
const pagesVal = pagesInput.value;

if (!titleVal || !authorVal || pagesVal <= 0) {
alert("Please fill the field with valid info!");
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.

Note: pagesInput.value is a string.

Your code can still work correctly, but best practice is to sanitise/normalise the input to proper data type first before using them.

Comment on lines +53 to +55
background-color: #117a8b !important;
border-color: #10707f !important;
color: #fff !important;
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.

CSS is designed around specificity and order.
Using !important in CSS is generally considered a last resort, not a standard practice.

Is there any reason you choose to use !important?

@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 Apr 14, 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. javascript Pull requests that update javascript code 🏕 Priority Mandatory This work is expected 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants