Skip to content
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

(fix) O3-3391: Appointments form should show errors if all fields were left empty #1182

Merged
merged 55 commits into from
Aug 8, 2024

Conversation

senthil-athiban
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR addresses the issue of not displaying an error message when the user has not filled out the form.

Screenshots

https://www.loom.com/share/932df3a24576492c90a8871a37b156c7

Related Issue

https://openmrs.atlassian.net/browse/O3-3391

donaldkibet and others added 30 commits April 15, 2024 09:28
…penmrs#1046)

* (fix): Tablet-UI. Making Tablet Service-queues metrics header responsive on tablet mode

Signed-off-by: Joshua Murithi <[email protected]>

* Fixup

---------

Signed-off-by: Joshua Murithi <[email protected]>
Co-authored-by: Dennis Kigen <[email protected]>
* Enhanced Monthly Calendar UI for Appointment Scheduler

* clicking on a day from within the month to change the appointment date

* Localized days in weeks

* Removed weekly calendar view on appointment scheduler

---------

Co-authored-by: Donald Kibet <[email protected]>
…nd void queue entries (openmrs#1052)

* (BREAKGING) O3-2748 service queues - add ability to undo transitions and void queue entries

* add tests

* minor wording fixup

* remove unused imports

* change undo transition route per update in backend PR

* address PR comments
…ues (openmrs#1076)

* (feat) O3-3025: Add validation in change status modal for service queues

* (test) updated test to reflect changes
openmrs#1079)

* (feat) O3-3030 - make new queue table support creating new queue entry

* fix metrics

* address PR comment
* Handle null start date on list details

* Removed unnecessary optional chaining

---------

Co-authored-by: Dennis Kigen <[email protected]>
@brandones brandones changed the base branch from main to feat/change-patient-list-route July 9, 2024 20:09
@brandones brandones changed the base branch from feat/change-patient-list-route to main July 9, 2024 20:10
@brandones brandones changed the title fix(O3-3391): enhance client-side form validation fix (O3-3391): Appointments form should show errors if all fields were left empty Jul 9, 2024
@brandones brandones changed the base branch from main to feat/O3-3343 August 7, 2024 18:15
@brandones brandones changed the base branch from feat/O3-3343 to main August 7, 2024 18:15
@brandones brandones changed the title fix (O3-3391): Appointments form should show errors if all fields were left empty (fix) O3-3391: Appointments form should show errors if all fields were left empty Aug 7, 2024
@brandones
Copy link
Contributor

Ok, we've got design sign-off for this. @denniskigen or @vasharma05 could you please review when you have a minute? It's a very small change, but I think you guys know the zod & react-hook-form stuff better than I do.

@denniskigen
Copy link
Member

denniskigen commented Aug 7, 2024

Why are there 51 commits? Can we whittle them down to just 1.

@brandones
Copy link
Contributor

Yeah idk. I even tried the trick where you change the base branch to something else and then back to main. Anyway when we hit "squash and merge" it will just make one commit, so it doesn't actually matter.

@senthil-athiban
Copy link
Contributor Author

Screen.Recording.2024-08-08.at.12.34.31.PM.mov

Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

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

Generally LGTM, thanks!

@denniskigen denniskigen merged commit 3d055b0 into openmrs:main Aug 8, 2024
6 checks passed
@denniskigen
Copy link
Member

denniskigen commented Aug 8, 2024

Thanks, @senthil-athiban!

@denniskigen denniskigen mentioned this pull request Aug 29, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.