Skip to content

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 2 | Book libary #403

Open
Dan2Clouted wants to merge 3 commits intoCodeYourFuture:mainfrom
Dan2Clouted:book-libary
Open

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 2 | Book libary #403
Dan2Clouted wants to merge 3 commits intoCodeYourFuture:mainfrom
Dan2Clouted:book-libary

Conversation

@Dan2Clouted
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 libary project completed

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 4, 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/cjyuan/Module-Data-Flows/blob/book-library-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 4, 2026
@Dan2Clouted
Copy link
Copy Markdown
Author

Changes Made

  • Fixed HTML validation issues (invalid input types, added lang, corrected <meta charset> placement, added proper <title>)
  • Updated script to use ES modules and removed inline onclick in favour of addEventListener
  • Removed duplicate/unnecessary code (extra render() call)
  • Improved variable naming for clarity (e.g. titleInput, readCheckbox)
  • Standardised data types (page count stored as a number)
  • Simplified and improved input validation (removed null checks, added trimming, ensured valid values)
  • Replaced .innerHTML with .textContent for safer DOM updates
  • Removed unnecessary id attributes from dynamically created elements
  • Improved naming consistency (toggleReadBtn, deleteBtn)
  • Optimised table rendering by clearing it in one operation
  • Fixed delete logic to ensure action completes before showing confirmation

Thank you for your review in advance!

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

Other changes look good.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 5, 2026
@Dan2Clouted
Copy link
Copy Markdown
Author

  • Improved input validation and data handling (page count as a positive integer, trimmed inputs)
  • Refactored DOM updates and event handling for cleaner and more maintainable code

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 6, 2026
@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Apr 6, 2026

Well done!

@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 6, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants