Skip to content

Add Make task to validate asset strings#3935

Closed
ironman5366 wants to merge 12 commits intomasterfrom
will-asset-check
Closed

Add Make task to validate asset strings#3935
ironman5366 wants to merge 12 commits intomasterfrom
will-asset-check

Conversation

@ironman5366
Copy link
Contributor

New JS code added in #3909 and others require strings configured in assets.js.erb and i18n-strings.js.erb.

The added make task, check_asset_strings, assets that for each such string referenced in a Javascript file, there exists a corresponding entry in one of the erb files

aduth and others added 10 commits July 16, 2020 13:08
**Why**: Asset paths include a fingerprint which can't be known to the client unless provided by the server.

Co-authored-by: Will Beddow <william.beddow@gsa.gov>
**Why**: Current Login.gov pages will check for and initialize any accordions present at page load. Since React components can be mounted after page load, and also need to initialize, there should be internal checks to protect against double initialization, since otherwise event handlers may be triggered multiple times.
**Why**: As an abstraction to simply render an image at the known asset path, encapsulating behavior to perform asset lookup by asset context
**Why**: If classList.js is imported (directly or indirectly) through any tested files, an error will occur.

See inline comment for additional details.
**Why**: In order to use React Fragment JSX shorthand syntax, the babel-eslint dependency must be upgraded.
**Why**: To recreate the existing document capture flow, we will need to be able to represent collapsible accordion content in React
**Why**: Recreating the existing document capture flow requires integrating existing tips content
@ironman5366 ironman5366 requested a review from aduth July 16, 2020 19:01
@ironman5366 ironman5366 marked this pull request as ready for review July 16, 2020 19:02
@amathews-fs amathews-fs deleted the will-asset-check branch January 7, 2021 19:39
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