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

SIMSBIOHUB-585+586 Bug Fixes #1294

Merged
merged 17 commits into from
May 31, 2024
Merged

SIMSBIOHUB-585+586 Bug Fixes #1294

merged 17 commits into from
May 31, 2024

Conversation

MacQSL
Copy link
Collaborator

@MacQSL MacQSL commented May 30, 2024

Links to Jira Tickets

Description of Changes

  • Fixed bug with confirmation dialog incorrectly rendering when saving project forms
  • Fixed bug with survey page not being able to be saved when adding animals
  • Created custom hook useUnsavedChangesDialog
  • Note: All the forms/pages (maybe 5/6 different places) that were using the confirmation dialog were duplicating very similar code to handle location changes. This seemed like a good place to have a custom hook to handle the confirmation dialog and location change interceptor.

Testing Notes

  • Should be able to save a survey when adding animals
  • Confirmation dialogs should render for all forms correctly when trying to navigate to a different page.
  • Both actions on the confirmation dialogs should work in all situations correctly

Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 45.45455% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 52.66%. Comparing base (566cc77) to head (1dd93b7).

Files Patch % Lines
.../sampling-sites/create/form/SamplingMethodForm.tsx 0.00% 5 Missing ⚠️
app/src/features/surveys/CreateSurveyPage.tsx 0.00% 3 Missing ⚠️
app/src/features/projects/edit/EditProjectPage.tsx 0.00% 2 Missing ⚠️
app/src/features/surveys/edit/EditSurveyPage.tsx 0.00% 2 Missing ⚠️
...vations/sampling-sites/create/SamplingSitePage.tsx 0.00% 2 Missing ⚠️
...tions/sampling-sites/edit/SamplingSiteEditPage.tsx 0.00% 2 Missing ⚠️
...src/features/projects/create/CreateProjectPage.tsx 50.00% 1 Missing ⚠️
app/src/hooks/useUnsavedChangesDialog.tsx 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1294      +/-   ##
==========================================
+ Coverage   52.49%   52.66%   +0.17%     
==========================================
  Files         580      581       +1     
  Lines       16810    16763      -47     
  Branches     2606     2601       -5     
==========================================
+ Hits         8824     8829       +5     
+ Misses       7396     7344      -52     
  Partials      590      590              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MacQSL MacQSL added the Ready For Review PR is ready for review label May 30, 2024
Copy link
Collaborator

@NickPhura NickPhura left a comment

Choose a reason for hiding this comment

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

🐐

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@MacQSL MacQSL merged commit 80c9c2f into dev May 31, 2024
18 of 19 checks passed
@MacQSL MacQSL deleted the SIMSBIOHUB-585-bug-fixes branch May 31, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants