-
Notifications
You must be signed in to change notification settings - Fork 45
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
[57] Edit participant component (fixes#57) #353
[57] Edit participant component (fixes#57) #353
Conversation
Ok, after manual check only point 5 seems to be still in power. I mean that still if I choose any participant to edit, don't touch any of the fields and then try to move to the "create" tab it still asks if I want to discard changes even though I didn't make any. I think we can live with that but if it's not much effort then it may be worth to pursue it. Unless it's not then let's ignore it for the moment. Just a manual remark before I go to the code. |
One more thing - very low priority. |
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.
I tested PR manually - two comments above.
Besides that I have only one comment. I understand what happens here but at some points this code is beyond my level so I just trust it based on the fact that it works.
@stanislawK please merge when you're satisfied with your work - my comments are minor so you can try to work with them or ignore them to push this PR through.
If you feel that any comment is relevant but you don't feel like tackling them at the moment please merge PR and create tickets so we have some minor tasks for beginners :)
formIsNotEmpty() { | ||
return !Object.values(this.$v.form.$model).every( | ||
x => x === null || x === '' || x === undefined | ||
); |
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.
Can we adjust this method with some kind condition that will execute this function only if any field is actually changed somehow? Right now we prompt "discard changes" even if no changes were made and I think this is the place where it happens
Clicking on ‘Edit participant’ cleans his name and all of his data (not permanently, it's more of a usability issue).
Suggestion: Maybe we should add a „Save changes” button instead of „Edit participant” button. When you insert some changes in a participant data, clicking ‘Edit participant’ is a bit confusing. Also pop-up text after saving changes would need to be something like „Participant data have been successfully changed” instead of „Participant has been successfully edited”. |
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.
Hi, one more thing. Pop-up error message when wanting to add a non-existing participant - changing it to be more clear.
|
That is valid point, but issue itself is broader, and we had ticket for that. Basically error messages from backend could have slightly different format and nestings, Therefore we are not able to extract those information in unified way at frontend. |
Story / Bug id:
57
Description:
Edit participant form added
Migrations:
N/A
New imports / dependencies:
N/A
What tests do I need to run to validate this change:
Check both form's functionalities: create and edit participant.