From b0efd5c8afb9698a6ebfc20797c0891efc30c195 Mon Sep 17 00:00:00 2001 From: Scott Cain Date: Wed, 27 Sep 2023 10:40:16 -0700 Subject: [PATCH 1/2] adding help text for seq details. UNTESTED! --- .../sequencePanel/sequencePanelSectionHelp.js | 44 +++++++++++++++++++ .../main-app/src/containers/genePage/index.js | 3 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 apps/main-app/src/components/sequencePanel/sequencePanelSectionHelp.js diff --git a/apps/main-app/src/components/sequencePanel/sequencePanelSectionHelp.js b/apps/main-app/src/components/sequencePanel/sequencePanelSectionHelp.js new file mode 100644 index 000000000..7e44ec4bc --- /dev/null +++ b/apps/main-app/src/components/sequencePanel/sequencePanelSectionHelp.js @@ -0,0 +1,44 @@ +import React from 'react'; + +const SequencePanelSectionHelp = () => ( +
+

+ The set of genome features contributed by each MOD is used by this + section to obtain the sequence of the gene and a list of transcripts. + When a transcript is selected, Sequence Details will highlight it + according to the scheme selected in the “Mode” menu. The options are: +

+ +

+ After selecting the mode, you can copy either the “plain text” of the + sequence (that is, without any color highlighting) or copy the + highlighted text with the provided buttons. The plain text option is + provided for copying into web forms (such as BLAST) and text editors that + don’t allow formatting. The copy with highlights button will allow you to + paste into a “rich” text editor that will preserve the highlighting from + the web page. +

+
+); + +export default SequencePanelSectionHelp; diff --git a/apps/main-app/src/containers/genePage/index.js b/apps/main-app/src/containers/genePage/index.js index f3739a796..49aa2c9d8 100644 --- a/apps/main-app/src/containers/genePage/index.js +++ b/apps/main-app/src/containers/genePage/index.js @@ -45,6 +45,7 @@ import GeneSymbol from '../../components/GeneSymbol'; import PhenotypeCrossRefs from './PhenotypeCrossRefs'; import SpeciesName from '../../components/SpeciesName'; import SequenceFeatureViewerSectionHelp from '../../components/sequenceFeatureViewer/sequenceFeatureViewerSectionHelp'; +import SequencePanelSectionHelp from '../../components/sequencePanel/sequencePanelSectionHelp'; import TransgenicAlleleSectionHelp from '../../components/transgenicAlleles/transgenicAllelesSectionHelp'; import DiseaseSectionHelp from '../../components/disease/diseaseSectionHelp'; @@ -212,7 +213,7 @@ const GenePage = ({geneId}) => { /> - + help={} Date: Wed, 27 Sep 2023 12:21:36 -0700 Subject: [PATCH 2/2] fixed formatting/syntax --- apps/main-app/src/containers/genePage/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/main-app/src/containers/genePage/index.js b/apps/main-app/src/containers/genePage/index.js index 49aa2c9d8..9faef3115 100644 --- a/apps/main-app/src/containers/genePage/index.js +++ b/apps/main-app/src/containers/genePage/index.js @@ -213,7 +213,10 @@ const GenePage = ({geneId}) => { /> - help={} + } + title={SEQUENCE_DETAILS} + >