From a24f3bed0e62b0d4776edb684a865008980a42b9 Mon Sep 17 00:00:00 2001 From: Hongxin Date: Thu, 8 Jun 2023 20:34:13 -0500 Subject: [PATCH] Add service disruption banner message --- .../components/userMessager/UserMessage.tsx | 32 +++++++++++++++++-- src/main/webapp/app/config/theme.ts | 2 ++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/app/components/userMessager/UserMessage.tsx b/src/main/webapp/app/components/userMessager/UserMessage.tsx index b8174a537..be5daf8e2 100644 --- a/src/main/webapp/app/components/userMessager/UserMessage.tsx +++ b/src/main/webapp/app/components/userMessager/UserMessage.tsx @@ -1,6 +1,5 @@ import * as React from 'react'; import { observer } from 'mobx-react'; -import { remoteData } from 'cbioportal-frontend-commons'; import { action, observable, @@ -9,7 +8,6 @@ import { IReactionDisposer, toJS, } from 'mobx'; -import autobind from 'autobind-decorator'; import * as _ from 'lodash'; import styles from './styles.module.scss'; import classNames from 'classnames'; @@ -23,11 +21,14 @@ import { import { Link } from 'react-router-dom'; import AppStore from 'app/store/AppStore'; import { Linkout } from 'app/shared/links/Linkout'; +import { COLOR_BLACK, COLOR_WARNING } from 'app/config/theme'; export interface IUserMessage { dateStart?: number; dateEnd: number; content: JSX.Element; + backgroundColor?: string; + color?: string; id: string; } @@ -112,6 +113,24 @@ if ( ), id: '2023_asco', }, + { + dateEnd: 1686456000000, + content: ( +
+ Attention: We want to inform you of an upcoming infrastructure + update that may lead to a temporary service disruption over the + weekend, planned June 10th, 10am-12pm EDT. +
+ During this period, you may experience intermittent service + interruptions, brief outages, or slower response times while accessing + our services. Thank you for your understanding and cooperation as we + strive to provide you with an improved service experience. +
+ ), + backgroundColor: COLOR_WARNING, + color: COLOR_BLACK, + id: 'warning_msg_06102023', + }, ]; } @@ -172,7 +191,14 @@ export default class UserMessage extends React.Component { render() { if (this.showBeVisible) { return toJS(this.messages).map(message => ( -
+