Skip to content

Conversation

@omkar-ethz
Copy link
Member

Description

This PR adds a status message banner that can be shown based on values in environment.ts, statusMessage and statusCode which can be one of INFO | WARN | NONE. If statusCode/statusMessage is ommited, no banner is shown hence preserving original behavior.

Motivation

During outages, it is useful to show a status message banner on top of the landing page. E.g. statusCode = WARN:
warn_banner

Or to update the users that the issue has been fixed (i.e. statusCode = INFO):
banner_info

Fixes:

  • none

Changes:

  • added a status-banner component, that's in its own NgModule
  • Import it in app-component, and trigger visibility based on statusCode env variable.

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install? - no new packages added

Extra Information/Screenshots

@omkar-ethz omkar-ethz requested a review from sbliven June 20, 2025 08:23
@omkar-ethz omkar-ethz requested a review from minottic June 30, 2025 08:37
They were added because of the rebase. But now these variables have
moved to app-config.service.ts
@omkar-ethz omkar-ethz merged commit 0cb014f into develop Jun 30, 2025
7 checks passed
@omkar-ethz omkar-ethz deleted the status-banner-rebased branch June 30, 2025 13:11
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