-
Notifications
You must be signed in to change notification settings - Fork 537
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
hide location filter if facility is not selected #6688
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
rithviknishad
requested changes
Nov 22, 2023
rithviknishad
approved these changes
Nov 22, 2023
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.
Nice work!
LGTM |
khavinshankar
approved these changes
Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖[deprecated] Generated by Copilot at c3bb44d
This pull request introduces some improvements and new features for the form and filter components in the frontend. It adds a
LocationSelect
component and aSelectMenuV2
component, which allow users to select locations and other options more easily. It also fixes some issues with error handling and code style inFormField.tsx
andPatientFilter.tsx
.Proposed Changes
LocationSelect
optional instead of required and make the error component inFormField
render only if an error is present. This now makes sure that we don't have an empty span taking up space on the screen even if there is no error. This was causing extra space below the location filter and negative margin was being used to fix that earlier.@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖[deprecated] Generated by Copilot at c3bb44d
errors
prop optional inLocationSelectProps
interface (link)LocationSelect.tsx
andPatientFilter.tsx
(link, link, link, link)FieldErrorText
component inFormField
component (link)className
prop ofAccordionV2
component torounded-md
and usespace-y-4
for accordion content inPatientFilter.tsx
(link)LocationSelect
component inPatientFilter.tsx
and remove unnecessary props (link)className
props fromdiv
elements containingFieldLabel
components inPatientFilter.tsx
(link, link)