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

GIFT Week, Winter 2024: create new Status Page Alert (experimental) component #3825

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidtrussler
Copy link
Contributor

@davidtrussler davidtrussler commented Jan 17, 2024

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:

  1. There are no incidents or current or planned maintenance
  2. There is a current incident or current maintenance
  3. There are no current incidents but there is some planned maintenance
  4. There is a current incident and some planned maintenance

How it appears

The scenarios described above display as below:

Scenario Visual
1 Screenshot 2024-01-17 at 11 15 12
2 (default) Screenshot 2024-01-17 at 11 16 20
2 (expanded) Screenshot 2024-01-17 at 11 16 58
3 (default) Screenshot 2024-01-17 at 11 17 44
3 (expanded) Screenshot 2024-01-17 at 11 18 31
4 (default) Screenshot 2024-01-17 at 11 20 30
4 (expanded) Screenshot 2024-01-17 at 11 21 13

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3825 January 17, 2024 11:25 Inactive
@davidtrussler davidtrussler changed the title Gift status page GIFT Week: create Status alert component Jan 17, 2024
@davidtrussler davidtrussler changed the title GIFT Week: create Status alert component GIFT Week, Winter 2024: create new Status Page Alert (experimental) component Jan 17, 2024
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3825 January 17, 2024 12:26 Inactive
@andysellick
Copy link
Contributor

@davidtrussler what's the status of this work? Is this PR still needed?

@davidtrussler
Copy link
Contributor Author

@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.

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