Skip to content

London | 26-ITP-SEP | Russom Gebremeskel | Sprint 2 | Book Library - #610

Open
russom-g wants to merge 23 commits into
CodeYourFuture:mainfrom
russom-g:coursework/feature/book-library
Open

russom-g wants to merge 23 commits into
CodeYourFuture:mainfrom
russom-g:coursework/feature/book-library

Conversation

@russom-g

@russom-g russom-g commented Nov 30, 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

Task code

CYF-1122

Changelist

Implement functions for Book Library website that allows users to add books, see books they have read and remove books for the list.

@github-actions

This comment has been minimized.

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

JS script looks good. Well done! The HTML code have room to improve.

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 Nov 30, 2026
@russom-g

russom-g commented Dec 1, 2026 •

Copy link
Copy Markdown
Author

Sorry for the oversight. I have validated the HTML code. Thanks for the review.

@russom-g russom-g added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Dec 1, 2026
Comment thread debugging/book-library/index.html Outdated
Comment on lines 55 to 60

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.

This checkbox is not showing due to an issue related to Bootstrap 4.4.1.
Could you use AI to find a way to fix it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The issue is fixed.

Comment on lines +44 to +47
titleInput.value = "";
authorInput.value = "";
pagesInput.value = "";
readInput.checked = false;

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.

Could you explore a simpler way to reset form input?


myLibrary.splice(i, 1);
render();
message.textContent = `You've deleted title: ${deleteTitle}`;

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.

This message will stay forever until it is replaced by another message. Could you find a way to make the display temporary (without using alert())?

Comment on lines +100 to +102
addDefaultBooks();
render();
addBookButton.addEventListener("click", 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.

Placing all the code that needs to be executed once when the page loads together at the end of the script is a good practice.

You could take this a step further by encapsulating this code in a single function named init() or setup() and assigning that function as the callback for the window's onload event.

This would make it even easier to locate, organize, and manage all the code that runs once when the application starts.

@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 2, 2026
@russom-g russom-g added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Dec 2, 2026
@cjyuan

cjyuan commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Could you also address all comments?

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

Labels

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