-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add notification banner to inform users of service outage #855
Conversation
81ca7f6
to
1e3ef2b
Compare
app/views/layouts/base.html.erb
Outdated
<%= render(FlashMessageComponent.new(flash: { | ||
"info" => ["Scheduled service downtime", "The service will be unavailable on Monday 30th September after 5pm while scheduled upgrades are performed"] | ||
})) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the wrong component to use. This isn't a flash message.
Just call the govuk_notification_banner
method directly. See the docs for details on how to use it.
Also, we should wrap this in a feature flag so we have better control of the visibility.
<%= render(FlashMessageComponent.new(flash: { | |
"info" => ["Scheduled service downtime", "The service will be unavailable on Monday 30th September after 5pm while scheduled upgrades are performed"] | |
})) %> | |
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) | |
<%= govuk_notification_banner title: "Schedule service downtime", text: "The service will be unavailable on Monday 30th September after 5pm while scheduled upgrades are performed" %> | |
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment about using the correct component.
ed3abef
to
7e35a9b
Compare
app/views/layouts/base.html.erb
Outdated
@@ -34,6 +34,8 @@ | |||
<%= govuk_back_link(href: yield(:back_link_url)) if content_for?(:back_link_url) %> | |||
<%= yield(:breadcrumbs) if content_for?(:breadcrumbs) %> | |||
<main class="govuk-main-wrapper" id="main-content" role="main"> | |||
<% if FeatureFlags::FeatureFlag.active?(:downtime_banner) %> | |||
<%= govuk_notification_banner title: "Planned downtime", text: "The service will be unavailable on Monday 30th September between 6pm and 7pm while we carry out essential maintenance" %> <% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: The end
should be on it's own line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
7e35a9b
to
d02fca6
Compare
Context
As part of the scheduled upgrade to AKS we will need to take the AYTQ/CTR down for an hour. This has been scheduled for monday 30th. A notification banner should be raised to notify users.
Changes proposed in this pull request
Guidance to review
Link to Trello card
Checklist