-
-
Notifications
You must be signed in to change notification settings - Fork 125
West Midlands | ITP 2025 MAY | Peter Lui | Sprint 2| Book Library #312
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
base: main
Are you sure you want to change the base?
Conversation
Your PR's title isn't in the expected format. Please check the expected title format, and update yours to match. Reason: Sprint part (Module Data Flow) doesn't match expected format (example: 'Sprint 2', without quotes) |
1 similar comment
Your PR's title isn't in the expected format. Please check the expected title format, and update yours to match. Reason: Sprint part (Module Data Flow) doesn't match expected format (example: 'Sprint 2', without quotes) |
Your PR's title isn't in the expected format. Please check the expected title format, and update yours to match. Reason: Sprint part (Module Data Flow - Sprint 2) doesn't match expected format (example: 'Sprint 2', without quotes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start on this task - I've left some comments to point you to how to improve your solution
debugging/book-library/script.js
Outdated
library.push(book); | ||
render(); | ||
} | ||
// console.log("submit() function called"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If all this commented code is not needed, what impact does leaving it here have on the rest of the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment doesn't affect code. its only for my own reading.
delButton.className = "btn btn-warning"; | ||
delButton.innerHTML = "Delete"; | ||
deleteCell.appendChild(delButton); | ||
delButton.addEventListener("click", function () { | ||
alert(`You've deleted title: ${myLibrary[i].title}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think about what normally happens when you delete a file on a computer. Is the behaviour here what you might expect? Can you think of any way to improve it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no requirement to implement an un-delete system. my code meets the requirement.
debugging/book-library/script.js
Outdated
// read: check.checked | ||
// }); | ||
|
||
// if (!title.value.trim() || !author.value.trim() || !pages.value || isNaN(parseInt(pages.value))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have commented out the validation here - the form does some of it for you which is fine. But can you think of any edge cases where the "required" validation might not be enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is good advise. it was commented out during testing. i have put the check back in. thank you!
Thanks for working on this
|
Your PR couldn't be matched to an assignment in this module. Please check its title is in the correct format, and that you only have one PR per assignment. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). |
|
Great - The maximum might not be necessary, but the minimum is, Thanks for cleaning the comments. You are done with this sprint now |
Learners, PR Template
Self checklist
Changelist
Initial submission
Questions
Ask any questions you have for your reviewer.