From 44a0cabd8749ac9839ded90eba6555dd9294be98 Mon Sep 17 00:00:00 2001 From: lismana Date: Fri, 6 Sep 2019 16:28:24 -0400 Subject: [PATCH] Remove user announcement and tour message (on study page) --- src/pages/studyView/StudyViewPage.tsx | 25 +++++++++---------- .../components/userMessager/UserMessage.tsx | 22 ++++++++-------- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/src/pages/studyView/StudyViewPage.tsx b/src/pages/studyView/StudyViewPage.tsx index f4393cbd719..0e706865dfa 100644 --- a/src/pages/studyView/StudyViewPage.tsx +++ b/src/pages/studyView/StudyViewPage.tsx @@ -42,8 +42,6 @@ import AppConfig from "appConfig"; import SocialAuthButton from "../../shared/components/SocialAuthButton"; import {ServerConfigHelpers} from "../../config/config"; import { getStudyViewTabId } from './StudyViewUtils'; -import InfoBeacon from "shared/components/infoBeacon/InfoBeacon"; -import {WrappedTour} from "shared/components/wrappedTour/WrappedTour"; export interface IStudyViewPageProps { routing: any; @@ -163,17 +161,18 @@ export default class StudyViewPage extends React.Component - - - - - + {/* MODEL FOF USER OF INFO BEACON. YOU NEED TO CUSTOMIZE COMPONENT FOR USE CASE */} + {/**/} + {/* */} + {/* */} + {/* */} + {/**/} Announcing the new Group Comparison feature: Compare clinical and genomic features of user-defined groups of samples/patients. View Tutorial`, - id:'3.0-intro', - title:'Announcing the Group Comparison feature of cBioPortal 3.0!' - } +const MESSAGE_DATA: IUserMessage[] = [ + // ADD MESSAGE IN FOLLOWING FORMAT + // UNIQUE ID IS IMPORTANT B/C WE REMEMBER A MESSAGE HAS BEEN SHOWN + // BASED ON USERS LOCALSTORAGE + // { + // dateEnd:100000000000000, + // content: `

Some markup and message here

`, + // id:'some very unique ID here, e.g. 3.0-intro', + // } ]; - @observer export default class UserMessager extends React.Component<{ dataUrl?:string }, {}> { messageData = remoteData(async ()=>{ - //const data = await request(this.props.dataUrl); - return Promise.resolve(MESSAGE_DATA_TEST); - + return Promise.resolve(MESSAGE_DATA); }); @observable dismissed = false;