OHSUCMP / coach

web application frontend for OHSU HTN U18 grant
2 stars 0 forks source link

create a banner that can be optionally displayed at the top of the COACH home page to alert users about downtime, etc. #179

Closed mattStorer closed 2 months ago

mattStorer commented 4 months ago

we would like to be able to display a banner at the top of the COACH home page that we can configure to display a message to users. normally, this banner wouldn't be visible, but when we need to communicate something to users, this can be an effective way to do it.

probably something as simple as a property in application.properties that, if populated, is displayed.

not sure we'd want something more complex, like a record in a database table with begin and end timestamps, as if the downtime doesn't occur precisely when the message states it will, that could lead to misalignment.

it doesn't need to be complicated. want to display a message? edit the config, set the property, and bam! done. easy. want to remove it? just clear it out. so simple.

mattStorer commented 2 months ago

here's what it will look like, when populated:

image

when in a narrow format -

image