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 facilities dropdown #6030

Merged
merged 4 commits into from
Jun 28, 2023
Merged

Fix facilities dropdown #6030

merged 4 commits into from
Jun 28, 2023

Conversation

emyl3
Copy link
Collaborator

@emyl3 emyl3 commented Jun 23, 2023

FRONTEND PULL REQUEST

Related Issue

After the changes introduced in #5983, facilities in the dropdown were not being properly updated.

Changes Proposed

Fix the facilities dropdown in the header to update the facility names correctly when they are updated or added.

Additional Information

please let me know if there's a good way to add test coverage for this scenario 🤔

Testing

on dev5 for testing

  • after adding or updating a facility -- the facility dropdown should be updated accordingly

Screenshots / Demos

Screenshot 2023-06-23 at 13 57 37 Screenshot 2023-06-23 at 13 57 44

@emyl3 emyl3 temporarily deployed to Dev5 June 23, 2023 18:35 — with GitHub Actions Inactive
@emyl3 emyl3 marked this pull request as ready for review June 23, 2023 18:58
BobanL
BobanL previously approved these changes Jun 23, 2023
Copy link
Contributor

@BobanL BobanL left a comment

Choose a reason for hiding this comment

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

Changes work for me in dev5! I don't have any suggestions on how to add test coverage around this though 🤔

@emyl3 emyl3 marked this pull request as draft June 26, 2023 15:47
@emyl3
Copy link
Collaborator Author

emyl3 commented Jun 26, 2023

fixing some e2e issues that were introduced with this fix 😅

@emyl3 emyl3 force-pushed the elisa/fix-facility-dropdown branch from 8455edd to eb26331 Compare June 26, 2023 22:05
@emyl3 emyl3 temporarily deployed to Dev5 June 27, 2023 16:53 — with GitHub Actions Inactive
@@ -362,7 +363,7 @@ const FacilityForm: React.FC<Props> = (props) => {
className="margin-right-0 margin-top-05"
type="submit"
label="Save changes"
disabled={isSubmitting || !isDirty}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this wasn't actually setting the save button to be disabled when we click the "Save changes" button. isSubmitted would do that but there's an issue if you back out of the address confirmation modal -- it won't reactivate the "Save changes" button so I opted to remove this.

@emyl3 emyl3 marked this pull request as ready for review June 27, 2023 18:28
@emyl3
Copy link
Collaborator Author

emyl3 commented Jun 27, 2023

Ready for re-review! Thank you for your patience 😅 🙏

Copy link
Contributor

@johanna-skylight johanna-skylight left a comment

Choose a reason for hiding this comment

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

LGTM!

@sonarcloud
Copy link

sonarcloud bot commented Jun 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@BobanL BobanL temporarily deployed to Dev5 June 28, 2023 15:33 — with GitHub Actions Inactive
Copy link
Contributor

@BobanL BobanL left a comment

Choose a reason for hiding this comment

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

👍

@emyl3 emyl3 merged commit a78ca71 into main Jun 28, 2023
@emyl3 emyl3 deleted the elisa/fix-facility-dropdown branch June 28, 2023 15:50
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.

3 participants