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

refactor: Remove USWDS assets from the lib bundle #1467

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

dzole0311
Copy link
Collaborator

@dzole0311 dzole0311 commented Feb 24, 2025

Related Ticket: #1389
Related veda-config PR: NASA-IMPACT/veda-config#720

Description of Changes

  • Removed USWDS assets from the lib bundle to reduce size and prevent duplication
  • Created placeholder theme.css file with a warning about its purpose. The file will be populated only by the veda-config build process

Notes & Questions About Changes

This PR is part of a coordinated update with NASA-IMPACT/veda-config#720 to implement USWDS theming for the current generation of VEDA instances

Validation / Testing

Most of the testing is done via the veda-config PR. Here we only need to quickly verify:

  • Run yarn serve in the veda-ui repo and confirm the app loads with the styling set in the uswds-theme.scss

@dzole0311 dzole0311 marked this pull request as draft February 24, 2025 13:27
Copy link

netlify bot commented Feb 24, 2025

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit a469cbe
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/67bfcc8299dcb100086ba3f6
😎 Deploy Preview https://deploy-preview-1467--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dzole0311 dzole0311 changed the title [WIP] Remove USWDS assets from the lib bundle, dont copy them in the dist during deployment refactor: Remove USWDS assets from the lib bundle Feb 24, 2025
@@ -101,13 +101,16 @@
});
</script>

<!-- Theme CSS - only populated by legacy VEDA-config instances, not used in standalone VEDA UI mode -->
<link rel="stylesheet" href="../static/styles/theme.css">
Copy link
Collaborator

Choose a reason for hiding this comment

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

oh it looks like parcel adds cache busting hash anyway even if the css was included in this way. noice

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.

2 participants