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

[Rated Disabilities] - Migrate v1 components to v3 components #28163

Merged

Conversation

pmclaren19
Copy link
Contributor

@pmclaren19 pmclaren19 commented Feb 23, 2024

Summary

Updated the following files to no longer have uswds='false'

  • src/applications/rated-disabilities/components/FeatureFlagsLoaded.jsx
  • src/applications/rated-disabilities/components/Learn.jsx
  • src/applications/rated-disabilities/components/MVIError.jsx
  • src/applications/rated-disabilities/components/NeedHelp.jsx
  • src/applications/rated-disabilities/components/RatedDisabilityList.jsx
  • src/applications/rated-disabilities/components/SortSelect.jsx
  • src/applications/rated-disabilities/components/TotalRatedDisabilities.jsx
  • src/applications/rated-disabilities/components/TotalRatingStates.jsx

Tested the following files that have V3 components with uswds='true' defaulted

  • src/applications/rated-disabilities/components/MVIError.jsx
  • src/applications/rated-disabilities/components/RatedDisabilityList.jsx
  • src/applications/rated-disabilities/components/SortSelect.jsx
  • src/applications/rated-disabilities/components/TotalRatingStates.jsx

Updated the following files that already have uswds='true' to no longer have that and use the default true

  • src/applications/rated-disabilities/components/NoCombinedRating.jsx
  • src/applications/rated-disabilities/components/RatingLists/NoRatings.jsx
  • src/applications/rated-disabilities/components/ServerError.jsx

Related issue(s)

Screenshots

Note: This field is mandatory for UI changes (non-component work should NOT have screenshots).

Before After
MVIError.jsx - warning Screenshot 2024-02-23 at 12 49 52 PM Screenshot 2024-02-23 at 12 52 07 PM
RatedDisabilityList.jsx - info Screenshot 2024-02-26 at 10 14 44 AM Screenshot 2024-02-26 at 10 15 27 AM
RatedDisabilityList.jsx - error Screenshot 2024-02-26 at 10 19 42 AM Screenshot 2024-02-26 at 10 19 19 AM
SortSelect.jsx https://github.com/department-of-veterans-affairs/vets-website/assets/141954992/181f9a5a-f23b-435e-8107-2420c08b6415 https://github.com/department-of-veterans-affairs/vets-website/assets/141954992/0f796f64-aa9f-46ff-902a-9a10cf1e46a9
TotalRatingStates.jsx - info Screenshot 2024-02-26 at 11 55 53 AM Screenshot 2024-02-26 at 11 56 20 AM
TotalRatingStates.jsx - va-summary-box Screenshot 2024-02-26 at 11 57 50 AM Screenshot 2024-02-26 at 12 26 02 PM
TotalRatingStates.jsx - error Screenshot 2024-02-26 at 12 37 47 PM Screenshot 2024-02-26 at 12 38 32 PM

What areas of the site does it impact?

Rated Disabilities

Acceptance criteria

  • All V1 components with a V3 version are migrated to that version of the component.
  • All V1 components that do not have a V3 version do not have a prop set to false
  • Post migration, the UI meets the BMT team's design and Ux standards.

Quality Assurance & Testing

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Linting warnings have been addressed
  • Documentation has been updated (link to documentation *if necessary)
  • Screenshot of the developed feature is added
  • Accessibility testing has been performed

Error Handling

  • Browser console contains no warnings or errors.
  • Events are being sent to the appropriate logging solution
  • Feature/bug has a monitor built into Datadog or Grafana (if applicable)

Authentication

  • Did you login to a local build and verify all authenticated routes work as expected with a test user

⚠️ Team Sites (only applies to modifications made to the VA.gov header) ⚠️

  • The vets-website header does not contain any web-components
  • I used the proxy-rewrite steps to test the injected header scenario
  • I reached out in the #sitewide-public-websites Slack channel for questions

Requested Feedback

Steps to repo MVIError.jsx - default => I had to override the code to get this one to display
Steps to repo RatedDisabilityList.jsx - default => go to user vets.gov.user+0@gmail.com
Steps to repo RatedDisabilityList.jsx - error => I had to override the code to get this one to display
Steps to repo SortSelect.jsx => ratedDisabilitiesSortAbTest feature flag is enabled
Steps to repo TotalRatingStates.jsx - info => go to user vets.gov.user+0@gmail.com
Steps to repo TotalRatingStates.jsx - va-summary-box => go to user vets.gov.user+1@gmail.com
Steps to repo TotalRatingStates.jsx - error => I had to override the code to get this one to display

@va-vfs-bot va-vfs-bot temporarily deployed to master/76124-Rated-Disabilities-migrate-v1-components-to-v3-components/main February 23, 2024 20:50 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/76124-Rated-Disabilities-migrate-v1-components-to-v3-components/main February 26, 2024 17:46 Inactive
@pmclaren19
Copy link
Contributor Author

Added code changes. Blocked on merging until platform team merges their pr on 3/4 @HeatherWidmont @jacobworrell

@pmclaren19 pmclaren19 marked this pull request as ready for review February 26, 2024 19:53
@pmclaren19 pmclaren19 requested review from a team as code owners February 26, 2024 19:53
@pmclaren19
Copy link
Contributor Author

@skylerschain please review these changes before we merge on 3/4 and let me know if you have any questions.

@skylerschain
Copy link

Images LGTM 👍

samcoforma
samcoforma previously approved these changes Feb 26, 2024
micahchiang
micahchiang previously approved these changes Feb 27, 2024
micahchiang
micahchiang previously approved these changes Mar 18, 2024
@pmclaren19 pmclaren19 merged commit 66fc0b9 into main Mar 18, 2024
77 of 78 checks passed
@pmclaren19 pmclaren19 deleted the 76124-Rated-Disabilities-migrate-v1-components-to-v3-components branch March 18, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants