hospitalrun-frontend icon indicating copy to clipboard operation
hospitalrun-frontend copied to clipboard

fix(lab): enforce the visit field when create lab

Open SamuelQZQ opened this issue 4 years ago • 12 comments

Fixes #2557

Changes proposed in this pull request:

  • validate the visit field when saving the Lab.

SamuelQZQ avatar Jan 28 '21 14:01 SamuelQZQ

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/Asi5tKLsXTrxsh3FjGBuY1XTqH6s
✅ Preview: https://hospitalrun-frontend-git-fork-samuelqzq-test-hospitalrun.vercel.app

vercel[bot] avatar Jan 28 '21 14:01 vercel[bot]

Just had a quick peek @SamuelQZQ you might still be busy with this, it looks like the required message does not display yet? image

See report incident example showing all required fields messages if all of them are not filled in image

blestab avatar Jan 28 '21 16:01 blestab

@blestab The visit field is implemented with the Select component from @hospitalrun/components. Which does not have the functionality to display the error message. The other input fields are implemented with the TextInput component which can display the error message.

Any suggestion? Should I create a PR for the component Repo?

SamuelQZQ avatar Jan 30 '21 06:01 SamuelQZQ

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 30 '21 20:01 CLAassistant

@blestab @jackcmeyer Any response? The Select component cannot show the error message. Should I make the change in the Component repo first?

SamuelQZQ avatar Feb 02 '21 12:02 SamuelQZQ

@blestab @jackcmeyer Any response? The Select component cannot show the error message. Should I make the change in the Component repo first?

@SamuelQZQ, sorry been offline. I'll create a new issue in the components repo for you to fix the component to also display an error message when needed. Once that is done you can then resume work on this one to use the components changes? Will that work for you?

blestab avatar Feb 02 '21 12:02 blestab

@blestab Sounds good.

SamuelQZQ avatar Feb 02 '21 12:02 SamuelQZQ

@blestab Sounds good.

https://github.com/HospitalRun/components/issues/689 has been created for you @SamuelQZQ

blestab avatar Feb 02 '21 13:02 blestab

@SamuelQZQ select component has been merged https://github.com/HospitalRun/components/pull/690

matteovivona avatar Feb 05 '21 10:02 matteovivona

@blestab @tehKapa Updated. Please have a look.

SamuelQZQ avatar Feb 05 '21 13:02 SamuelQZQ

@jackcmeyer Do you have time to have a look

SamuelQZQ avatar Feb 19 '21 12:02 SamuelQZQ

@SamuelQZQ sorry about delay, but the project is unfortunately back in a "frozen state". can you fix conflicts? thanks!

matteovivona avatar Nov 25 '21 14:11 matteovivona