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

[Feature] Add claim verification UI #10502

Merged
merged 11 commits into from
Jun 4, 2024
Merged

[Feature] Add claim verification UI #10502

merged 11 commits into from
Jun 4, 2024

Conversation

esizer
Copy link
Member

@esizer esizer commented May 24, 2024

πŸ€– Resolves #10418

πŸ‘‹ Introduction

Adds the UI for admins to verify claims made by candidates.

πŸ•΅οΈ Details

There were some changes to validation since they were too strict. While currently we won't be setting an expiry date for rejected claims (and hide the field) it should not be prohibited so those rules and the test for it have been removed.

πŸ§ͺ Testing

  1. Build pnpm run dev
  2. Login as admin [email protected]
  3. Make no veteran or priority claims on your profile
  4. Apply to a pool
  5. Navigate to the application in admin
  6. Confirm no claims appear in "Other information"
  7. Update profile to make both claims
  8. Apply to pool
  9. Navigate tot application in admin
  10. Confirm claims appear as unverified
  11. Confirm you can update claims and UI updates as expected
  • Expiration date should not appear unless you select the "verified" option
  • Expiration date is only required when priority status is verified

πŸ“Έ Screenshot

screenshot_24-May-2024_12-30-1716568256
screenshot_24-May-2024_12-31-1716568269
screenshot_24-May-2024_12-31-1716568282
screenshot_24-May-2024_12-31-1716568300

@codecov-commenter
Copy link

codecov-commenter commented May 24, 2024

Codecov Report

Attention: Patch coverage is 16.54135% with 111 lines in your changes missing coverage. Please review.

Project coverage is 38.45%. Comparing base (985936f) to head (ac608cf).
Report is 46 commits behind head on main.

Files Patch % Lines
...ents/ClaimVerification/ClaimVerificationDialog.tsx 0.00% 60 Missing ⚠️
...datePage/components/ClaimVerification/ClaimRow.tsx 0.00% 28 Missing ⚠️
...components/ClaimVerification/ClaimVerification.tsx 0.00% 22 Missing ⚠️
...es/ViewPoolCandidatePage/ViewPoolCandidatePage.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10502      +/-   ##
============================================
+ Coverage     31.57%   38.45%   +6.87%     
- Complexity        0     1421    +1421     
============================================
  Files           777     1002     +225     
  Lines         25124    30763    +5639     
  Branches       6570     6589      +19     
============================================
+ Hits           7933    11829    +3896     
- Misses        17015    18911    +1896     
+ Partials        176       23     -153     
Flag Coverage Ξ”
integrationtests 71.16% <100.00%> (?)
unittests 31.31% <2.63%> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@vd1992
Copy link
Contributor

vd1992 commented May 24, 2024

There were some changes to validation since they were too strict. While currently we won't be setting an expiry date for rejected claims (and hide the field) it should not be prohibited so those rules and the test for it have been removed.

Are we sure about this, @petertgiles requested it to be like so in the first place #10434 (comment)

@esizer
Copy link
Member Author

esizer commented May 24, 2024

Are we sure about this, @petertgiles requested it to be like so in the first place #10434 (comment)

πŸ’€ @Jerryescandon Said we do not need to restrict it, just prefer they did not.

@vd1992

This comment was marked as resolved.

@esizer
Copy link
Member Author

esizer commented May 24, 2024

Slightly out of scope but would help with testing if the veterans were actually veterans πŸ˜›

Yeah, that makes sense but I also found some other issues with the ROD seeders so I feel like if we start toying with them here it could expand the scope too far πŸ˜›

@vd1992
Copy link
Contributor

vd1992 commented May 24, 2024

Slightly out of scope but would help with testing if the veterans were actually veterans πŸ˜›

Yeah, that makes sense but I also found some other issues with the ROD seeders so I feel like if we start toying with them here it could expand the scope too far πŸ˜›

In that case, please make an issue combining them

@esizer
Copy link
Member Author

esizer commented May 24, 2024

In that case, please make an issue combining them

Issue created:

@vd1992
Copy link
Contributor

vd1992 commented May 24, 2024

In that case, please make an issue combining them

Issue created:

* [πŸ› Veteran/Non-veteran pool candidate seeding not accurate #10507](https://github.com/GCTC-NTGC/gc-digital-talent/issues/10507)

Thanks, I also meant to combine the other problems you found into that issue. If they are small tweaks that is

Copy link
Contributor

@vd1992 vd1992 left a comment

Choose a reason for hiding this comment

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

Seems to work fine, just a few things to bring to your attention

@esizer esizer requested a review from vd1992 May 27, 2024 18:56
Copy link
Contributor

@vd1992 vd1992 left a comment

Choose a reason for hiding this comment

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

Great work as usual. Nothing else seems amiss to me.
πŸ†

@esizer esizer added this pull request to the merge queue Jun 4, 2024
Merged via the queue into main with commit cb95972 Jun 4, 2024
9 of 10 checks passed
@esizer esizer deleted the 10418-claim-verification-ui branch June 4, 2024 20:10
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.

✨ Claim Verification - UI
3 participants