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

site-wide: swap css variable imports #32478

Closed
wants to merge 1 commit into from
Closed

Conversation

it-harrison
Copy link
Contributor

@it-harrison it-harrison commented Oct 15, 2024

Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.

Are you removing, renaming or moving a folder in this PR?

  • No, I'm not changing any folders (skip to TeamSites and delete the rest of this section)
  • Yes, I'm removing, renaming or moving a folder

⚠️ TeamSites ⚠️

Examples of a TeamSite: https://va.gov/health and https://benefits.va.gov/benefits/. This scenario is also referred to as the "injected" header and footer. You can reach out in the #sitewide-public-websites Slack channel for questions.

Did you change site-wide styles, platform utilities or other infrastructure?

Summary

This PR swaps css variable imports from Formation to CSS-Library in accordance with the deprecation of Formation from vets-website

Related issue(s)

3328

Testing done

  • local testing on profile, mhv, and combined-debt-portal

Screenshots

MHV Landing page and Messages

image
image
image
image
image
image
image
image
image
image

Profile

image
image
image
image
image
image
image

Combined Debt Portal

image
image
image
image

Claims Status

image
image
image
image

Facility Locator

image
image

GI

image
image
image
image
image

Injected Header

image
image
image
image
image
image
image
image

What areas of the site does it impact?

(Describe what parts of the site are impacted if code touched other areas)

Acceptance criteria

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

Requested Feedback

(OPTIONAL) What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

@it-harrison it-harrison marked this pull request as ready for review October 15, 2024 21:54
@it-harrison it-harrison requested review from a team as code owners October 15, 2024 21:54
Copy link

@va-vfs-bot va-vfs-bot left a comment

Choose a reason for hiding this comment

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

Sentry call found

Sentry captures a lot of data, and we want to make sure that we only keep information that will be useful for troubleshooting issues. This means that PII should not be recorded.

What you can do

Review your call to Sentry and see if you can reasonably reduce any information that is included, or wait for a VSP review.

// if we fail to fetch suggestions
} catch (error) {
if (error?.error?.code === 'OVER_RATE_LIMIT') {
Sentry.captureException(

Choose a reason for hiding this comment

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

Sentry found

new Error(`"OVER_RATE_LIMIT" - Search Typeahead`),
);
}
Sentry.captureException(error);

Choose a reason for hiding this comment

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

Sentry found

// if we fail to fetch suggestions
} catch (error) {
if (error?.error?.code === 'OVER_RATE_LIMIT') {
Sentry.captureException(

Choose a reason for hiding this comment

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

Sentry found

new Error(`"OVER_RATE_LIMIT" - Search Typeahead`),
);
}
Sentry.captureException(error);

Choose a reason for hiding this comment

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

Sentry found

@va-vfs-bot va-vfs-bot temporarily deployed to master/3328-site-wide/main October 16, 2024 01:52 Inactive
Copy link
Contributor

@randimays randimays left a comment

Choose a reason for hiding this comment

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

Your branch needs to be updated with the latest from main. Sitewide recently merged a chunk of changes for the search bar in various places and it's breaking your build, causing some elements to go missing (header/footer, Create Account block, search bar on homepage, search bar on /resources).

Screenshot 2024-10-16 at 8 11 16 AM Screenshot 2024-10-16 at 8 11 22 AM Screenshot 2024-10-16 at 8 21 46 AM

Also, please make sure the screenshots / apps tested in the description match the changes here; I think they were copy/paste from another PR.

@@ -1,4 +1,4 @@
@import "~@department-of-veterans-affairs/formation/sass/shared-variables";
@import "~@department-of-veterans-affairs/css-library/dist/tokens/scss/variables";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this minimal.scss used anywhere? I did a Github search and it seems the only usage in vets-website is commented out.

@@ -1,4 +1,4 @@
@import "~@department-of-veterans-affairs/formation/sass/shared-variables";
@import "~@department-of-veterans-affairs/css-library/dist/tokens/scss/variables";
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure this file is needed either. Github search for .usa-button-darker doesn't tie it to any elements.

@it-harrison it-harrison deleted the 3328-site-wide branch October 16, 2024 18:35
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