govuk_publishing_components
govuk_publishing_components copied to clipboard
GIFT Week, Winter 2024: create new Status Page Alert (experimental) component
What & Why
This PR creates a new (experimental) component to display status information to users of our publishing apps and is based on a GIFT week project: Add GOV.UK status information in publishing applications. The code in this PR is very rough and reflects a number of decisions made in order to produce a quick working prototype for that project.
The essence of the work is to display a message based on data contained in the GOVUK Status page. For this project:
- The data was derived from the RSS feed available from the Status page, though there is also an API that would probably be the better source of data in a fully workable component.
- The actual data used is hard-coded rather than fetched dynamically in order to more easily replicate various scenarios.
- The logic to determine the actual message displayed is written in JavaScript here though that may be better done in Rails.
- There was no user testing of the component.
- There are no tests for the code.
- There has been minimal consideration of accessibility.
We identified four possible scenarios to be reflected in the message displayed to users:
- There are no incidents or current or planned maintenance
- There is a current incident or current maintenance
- There are no current incidents but there is some planned maintenance
- There is a current incident and some planned maintenance
How it appears
The scenarios described above display as below:
Scenario | Visual |
---|---|
1 | |
2 (default) | |
2 (expanded) | |
3 (default) | |
3 (expanded) | |
4 (default) | |
4 (expanded) |
@davidtrussler what's the status of this work? Is this PR still needed?
@davidtrussler what's the status of this work? Is this PR still needed?
Good question. It was a Gift Week project and hasn't been used since but I'd be reluctant to get rid of it altogether. It was Craig Sparling's project so might be worth asking him if he thinks it will ever get used or not.