dev-jot icon indicating copy to clipboard operation
dev-jot copied to clipboard

Notify user when trying to create a lesson with no notes

Open jrobind opened this issue 4 years ago • 13 comments

Currently, a user is prevented from creating a lesson that contains no text. Even though the validation logic is correct there isn't a message or visual cue to inform the user the lesson creation has failed.

ezgif com-gif-maker (5)

jrobind avatar Dec 14 '20 16:12 jrobind

I think, there's different approaches for this:

  • Notify the user via pop-up
  • Modify the text within the fields: "Can't add empty lessons."
  • Add some different style to the empty field, so the user notices. Maybe change the border.

Maybe, the better option is the less invasive for the user.

What do you think?

edXmO avatar Dec 17 '20 10:12 edXmO

I think at a minimum we should at least change the border colour. The native HTML input validation renders a tooltip when trying to submit without a lesson title like so:

Screen Shot 2020-12-17 at 12 01 46

I think changing the border colour is something we should definitely do – maybe adding a tooltip/pop-up is a nice-to-have. You could take that on if you wanted to? Or maybe add the border colour for validation for this issue and tackle a tooltip/pop-up in another, follow-up issue ?

jrobind avatar Dec 17 '20 12:12 jrobind

Yes, I'll give it a go. I'll first focus on adding the border colour in the respective use cases and then maybe address the tooltip/pop-up.

edXmO avatar Dec 17 '20 19:12 edXmO

Awesome! Sounds good 👍

jrobind avatar Dec 17 '20 23:12 jrobind

Hi, can I look into this issue?

SakaRicky avatar Jun 11 '21 09:06 SakaRicky

Hi, can I look into this issue?

Hey! Unfortunately this issue is already being worked on.

jrobind avatar Jun 11 '21 09:06 jrobind

Looking for a first issue to contribute here. Can you point me to a good one please?

SakaRicky avatar Jun 11 '21 09:06 SakaRicky

Looking for a first issue to contribute here. Can you point me to a good one please?

Take a look at #113. That's a good one to start with. If you want I can assign you to it?

jrobind avatar Jun 12 '21 11:06 jrobind

Looks good for me. I finally have the opportunity to tackle SASS/SCSS

SakaRicky avatar Jun 12 '21 12:06 SakaRicky

Looks good for me. I finally have the opportunity to tackle SASS/SCSS

😄 just ping on the ticket if you need a hand. Do as little or as much as you want. Whatever you're comfortable with!

jrobind avatar Jun 12 '21 12:06 jrobind

I see there are 2 versions. I want to work with the react version. Can I clone that version only? Which version does git clone https://github.com/jrobind/dev-jot.git clone ?

SakaRicky avatar Jun 12 '21 12:06 SakaRicky

This ticket is just for the vanilla app. The react version uses styled components and material ui so this ticket doesn't apply.

jrobind avatar Jun 12 '21 12:06 jrobind

Hi, I have made some changes in the ui can i make a pull request!

Aslam-13 avatar Jan 23 '22 17:01 Aslam-13