Skip to content

Comments

ITP-2025-WM | Hatef-Eidi|Module-Data-Flows|Book-library | Sprint 2#180

Closed
HatefEidi wants to merge 2 commits intoCodeYourFuture:mainfrom
HatefEidi:Book-Library
Closed

ITP-2025-WM | Hatef-Eidi|Module-Data-Flows|Book-library | Sprint 2#180
HatefEidi wants to merge 2 commits intoCodeYourFuture:mainfrom
HatefEidi:Book-Library

Conversation

@HatefEidi
Copy link

@HatefEidi HatefEidi commented Apr 3, 2025

Learners, PR Template

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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@HatefEidi HatefEidi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 3, 2025
@HatefEidi HatefEidi added the 📅 Sprint 2 Assigned during Sprint 2 of this module label Apr 3, 2025
//check the right input from forms and if its ok -> add the new book (object in array)
//via Book function and start render function

function submit() {

Choose a reason for hiding this comment

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

I'm still able to add books even if fields are empty. Please check your submit logic and validation process
image

Copy link
Author

Choose a reason for hiding this comment

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

Now author validation is added, all the fields must be containing something

} else {
readStatus = "No";
}
let readStatus = myLibrary[i].check ? "Read" : "Unread";

Choose a reason for hiding this comment

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

It would be nice to see button as red if book is marked as unread to increase UI&UX

Copy link
Author

Choose a reason for hiding this comment

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

Now added, if the book is unread it's red by adding btn-danger class to the button, Thanks for suggestion


function submit() {
if (
title.value == null ||

Choose a reason for hiding this comment

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

Another challenge, you can also clear form fields after book is saved. Currently fields are not cleared after form submitted.
image

Copy link
Author

Choose a reason for hiding this comment

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

now when a book is submitted the fields are reset

@halilibrahimcelik halilibrahimcelik added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 3, 2025

//check the right input from forms and if its ok -> add the new book (object in array)
//via Book function and start render function

Choose a reason for hiding this comment

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

I accidentally approve your PR but your form submission validation needs to be fixed. That's why I'm leaving this comment

Copy link
Author

Choose a reason for hiding this comment

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

No Worries, Since I completed every comment of yours I label this PR as completed

@HatefEidi HatefEidi added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 7, 2025
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. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants