Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CYF-Glasgoow | Iakub Dubachev | Book Library | Sprint 2 #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IakubDubachev
Copy link

@IakubDubachev IakubDubachev commented Jan 11, 2025

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

  • Fixed book list not displaying on page load.

  • Corrected author field assignment and added input validation in submit().

  • Fixed delete button functionality (clicks → click).

  • Corrected read status display logic (Yes/No).

  • Improved table rendering to handle dynamic updates.

  • Added clearForm() to reset input fields after adding a book.

Questions

  • Are there any additional edge cases I should test?

  • Any recommendations for improving DOM updates or event handling?

@IakubDubachev IakubDubachev added the Needs Review Participant to add when requesting review label Jan 11, 2025
deleteCell.appendChild(delButton);

delButton.addEventListener("click", function () {
alert(`You've deleted title: ${book.title}`);
Copy link

Choose a reason for hiding this comment

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

A really small thing is that I would show this alert after you have performed the re-render - this would probably be less surprising for a user!

This is good work, though! I like the way that you have introduced ternary expressions, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Participant to add when requesting review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants