-
Notifications
You must be signed in to change notification settings - Fork 3
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
Participant Edit Miles #88
Conversation
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.
The action/reducer looks OK to me.
I don't have strong feelings on the rest. This does mean we lose what form validation we had for the miles field? Don't know that it's worth worrying about keeping, but I was hoping we'd be able to have clean validation/error messages that kept the database in a good state. You may have been playing the cards I dealt you.
The only validation that the status updater is doing is that the miles have to be non-negative. [EDIT] On further testing, while the |
Fixed a minor bug I found while looking into the validation question. The |
I have resolved the issue that Matt pointed out, regarding the parent not being able to handle validation (e.g. I also did some (probably unnecessary) refactoring to |
This commit enables editing of participant mileage, separate from a "Sign Out" status update.
Refactored Miles Input on the Sign Out Form
Rearranged Participant Dialog
I changed it to 2 columns, instead of three on desktop. It was always 1 column on mobile (no change.) I also made the Total Hours and Total Miles a larger to match the timeline font. The Total Miles row can be clicked/tapped to edit, just like the existing timeline edit functionality.
Editing on the Dialog