WDFN-840 Replace the WDFN Alert Banner with USWDS Site Alert
Before making a pull request
-
Put the appropriate EXEMPT flag if needed in the MR label (see https://practices.wma.chs.usgs.gov/practice/peer_code_review/) -
Run all linters (make lint) -
Run all tests (make test) -
Update the changelog appropriately -
If making a release, update code.json metadataLastUpdated and bump CHANGELOG.md to next version.
WDFN-840 Replace the WDFN Alert Banner with USWDS Site Alert
The changes here remove the old informational banners and replace them with USWDS Site Alerts. The messages in the SITE_ALERT_EMERGENCY and SITE_ALERT_INFO variables will be added to the USWDS Site Alert banners below the main header (if the array is not empty). There are separate Site Alerts for emergencies and informational messages. Each message is contained in an object with two mandatory keys, 'expires' and 'message'. The messages are strings and can contain standard HTML markup which can be used to add links, bold text, etc. The 'expires' is a date and must have the format mm/dd/yyyy. The message will not be shown after the 'expires' date or if the date is missing or invalid. Example: [ {'expires': '12/29/2022', 'message': 'SITE_ALERT_info one'}, {'expires': '12/28/2022', 'message': 'SITE_ALERT_info two'}, {'expires': '12/31/2022', 'message': 'SITE_ALERT_info three'} ]
After making a pull request
-
If appropriate, put the link to the PR in the JIRA ticket -
Assign someone to review unless the change is trivial -
Check the accessibility CI step and fix or explain any issues.