Skip to content

Conversation

Dave-Vermeulen
Copy link

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 Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Fixed the errors in the code. some were small some were bigger like the submit() function had problems with author being set to title so changed to author value. Then went on to the render() function and fixed the delButton use. A 3rd bug was on the delete buttons event listener there was a typo. Then finally the if statement logic in the render function was reversed so fixed that.

Questions

Please review my PR 🙏🏽

Copy link

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).

@Dave-Vermeulen Dave-Vermeulen added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 16, 2025
Copy link

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).

@cjyuan
Copy link
Contributor

cjyuan commented Aug 16, 2025

Doing so can help me speed up the review process. Thanks.

  • I think the PR title is not quite in the expected format.

@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 Aug 16, 2025
Copy link

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).

1 similar comment
Copy link

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).

@Dave-Vermeulen Dave-Vermeulen changed the title ZA Cape Town | ITP-May-2025 | Dawud Vermeulen | Sprint 2 | Module-Data-Flows ZA Cape Town | ITP-May-2025 | Dawud Vermeulen | Sprint 2 | Module-Data-Flows Book-Library Aug 18, 2025
@Dave-Vermeulen Dave-Vermeulen changed the title ZA Cape Town | ITP-May-2025 | Dawud Vermeulen | Sprint 2 | Module-Data-Flows Book-Library ZA Cape Town | ITP-May-2025 | Dawud Vermeulen | Sprint 2 | Book-Library Aug 18, 2025
@Dave-Vermeulen
Copy link
Author

Dave-Vermeulen commented Aug 18, 2025

@cjyuan no mention in the feedback.md doc about any PR naming. I updated to try make it easier. Thanks for sharing the feedback.md. I have used it to update the code making it more DRY and less redundant. Kindly let me know if you have questions or any further suggestions.

@Dave-Vermeulen Dave-Vermeulen added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 20, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 20, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Hi, I've left some comments that should help improve your solution further. Well done on getting this far, you're close to being finished

Choose a reason for hiding this comment

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

There are some things missing from your HTML file that should be added. Hint: how people are going to interact with your webpage in a web browser?

There is also some invalid HTML. Can you spot these? Hint: have you used an HTML validator before? https://validator.w3.org/

Copy link
Author

Choose a reason for hiding this comment

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

@LonMcGregor this was actually a lot. Really useful site. So have update the file, please review and let me know if more is required.

title.value == "" ||
pages.value == null ||
pages.value == ""
titleInput.value.trim == "" || // cant be null so removed all that

Choose a reason for hiding this comment

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

There may be ways to improve your form validation here. Things to think about:

  • Is your validation checking all the inputs?
  • Is there a way to get the browser to do some of the checking for you, without needing to manually check for empty inputs?

Copy link
Author

@Dave-Vermeulen Dave-Vermeulen Aug 20, 2025

Choose a reason for hiding this comment

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

@LonMcGregor ah very DRY indeed. cool HTML5 tricks. have updated both files to handle the validation and submission a bit differently.

render();
alert(`You've deleted title: ${deletedTitle}`);

Choose a reason for hiding this comment

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

Think about how deleting a file works on your desktop. Is being notified after the deletion normally how this works? Is there a better interaction you could use than an alert here?

Copy link
Author

@Dave-Vermeulen Dave-Vermeulen Aug 20, 2025

Choose a reason for hiding this comment

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

@LonMcGregor okay so this is bit higher grade. i think what you mean is that the users flow is interrupted when the alert pops up (clarify if im wrong kanala). based on this assumption and the fact that the delete works i have built a new function to display the notification and done away with the disruptive alert. The new one disappears after 3 secs.

Choose a reason for hiding this comment

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

The alert is quite interrupting, yes, making it less "in your face" is one solution. The other is, if you really want something interrupting, to use something like confirm instead.

It sounds like you've made good progress here. I can't see the files yet on github though - have you comitted them all?

@LonMcGregor LonMcGregor removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 20, 2025
@LonMcGregor
Copy link

Good work updating the HTML file. Can you also have a look at the form validation comment I made - that would be the minimum needed to fix to complete this sprint task.

At minimum, could you ensure that invalid page values are checked properly?

@LonMcGregor
Copy link

OK. Good to see the final version. I am happy with what you have finished with here. Well done, you are complete with this sprint

@LonMcGregor LonMcGregor 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. labels Aug 20, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants