Skip to content

Commit

Permalink
Merge pull request #1728 from alliance-genome/SCRUM-4585_update
Browse files Browse the repository at this point in the history
SCRUM-4585 (update) Remove links for entities without tables
  • Loading branch information
markquintontulloch authored Nov 14, 2024
2 parents 4378a17 + 27baf84 commit b40af0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
3 changes: 3 additions & 0 deletions src/main/cliapp/src/components/EntityCountsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export const EntityCountsComponent = () => {
}, []);

const nameHyperlinkTemplate = (rowData) => {
if (!rowData.link) {
return rowData.name;
}
return <a href={rowData.link}>{rowData.name}</a>;
};

Expand Down
21 changes: 0 additions & 21 deletions src/main/cliapp/src/constants/Classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export const CLASSES = Object.freeze({
Reference: { name: 'Literature References', link: '/#/references', type: 'entity', hasTable: true, isIndexed: false },
SequenceTargetingReagent: {
name: 'Sequence Targeting Reagents',
link: '/#/sqtrs',
type: 'entity',
hasTable: false,
isIndexed: true,
Expand All @@ -108,56 +107,48 @@ export const CLASSES = Object.freeze({
Exon: { name: 'Exons', link: '/#/exons', type: 'entity', hasTable: false, isIndexed: false },
CodingSequence: {
name: 'Coding Sequences',
link: '/#/codingSequences',
type: 'entity',
hasTable: false,
isIndexed: false,
},
AssemblyComponent: {
name: 'Assembly Components',
link: '/#/assemblyComponents',
type: 'entity',
hasTable: false,
isIndexed: false,
},
GenomeAssembly: {
name: 'Genome Assemblies',
link: '/#/genomeAssemblies',
type: 'entity',
hasTable: false,
isIndexed: true,
},
GeneExpressionAnnotation: {
name: 'Gene Expression Annotations',
link: '/#/geneExpressionAnnotations',
type: 'entity',
hasTable: false,
isIndexed: true,
},
PredictedVariantConsequence: {
name: 'Predicted Variant Consequences',
link: '/#/predictedVariantConsequences',
type: 'entity',
hasTable: false,
isIndexed: false,
},
HTPExpressionDatasetAnnotation: {
name: 'HTP Expression Dataset Annotations',
link: '/#/htpExpressionDatasetAnnotations',
type: 'entity',
hasTable: false,
isIndexed: false,
},
HTPExpressionDatasetSampleAnnotation: {
name: 'HTP Expression Dataset Sample Annotations',
link: '/#/htpExpressionDatasetSampleAnnotations',
type: 'entity',
hasTable: false,
isIndexed: false,
},
GeneOntologyAnnotation: {
name: 'Gene Ontology Annotations',
link: '/#/geneOntologyAnnotations',
type: 'entity',
hasTable: false,
isIndexed: false,
Expand Down Expand Up @@ -226,73 +217,61 @@ export const CLASSES = Object.freeze({

AlleleGeneAssociation: {
name: 'Allele Gene Associations',
link: '/#/alleleGeneAssociations',
type: 'association',
hasTable: false,
},
AlleleVariantAssociation: {
name: 'Allele Variant Associations',
link: '/#/alleleVariantAssociations',
type: 'association',
hasTable: false,
},
CodingSequenceGenomicLocationAssociation: {
name: 'CDS Genomic Locations',
link: '/#/cdsGenomicLocations',
type: 'association',
hasTable: false,
},
ExonGenomicLocationAssociation: {
name: 'Exon Genomic Locations',
link: '/#/exonGenomicLocations',
type: 'association',
hasTable: false,
},
GeneGenomicLocationAssociation: {
name: 'Gene Genomic Locations',
link: '/#/geneGenomicLocations',
type: 'association',
hasTable: false,
},
TranscriptGenomicLocationAssociation: {
name: 'Transcript Genomic Locations',
link: '/#/transcriptGenomicLocations',
type: 'association',
hasTable: false,
},
VariantGenomicLocationAssociation: {
name: 'Variant Genomic Locations',
link: '/#/variantGenomicLocations',
type: 'association',
hasTable: false,
},
ConstructGenomicEntityAssociation: {
name: 'Construct Genomic Entity Associations',
link: '/#/constructGenomicEntityAssociations',
type: 'association',
hasTable: false,
},
SequenceTargetingReagentGeneAssociation: {
name: 'SQTR Gene Associations',
link: '/#/sqtrGeneAssociations',
type: 'association',
hasTable: false,
},
TranscriptCodingSequenceAssociation: {
name: 'Transcript CDS Associations',
link: '/#/transcriptCodingSequenceAssociations',
type: 'association',
hasTable: false,
},
TranscriptExonAssociation: {
name: 'Transcript Exon Associations',
link: '/#/transcriptExonAssociations',
type: 'association',
hasTable: false,
},
TranscriptGeneAssociation: {
name: 'Transcript Gene Associations',
link: '/#/transcriptGeneAssociations',
type: 'association',
hasTable: false,
},
Expand Down
3 changes: 3 additions & 0 deletions src/main/cliapp/src/containers/dashboardPage/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export const Dashboard = () => {
}, []);

const nameHyperlinkTemplate = (rowData) => {
if (!rowData.link) {
return rowData.name;
}
return <a href={rowData.link}>{rowData.name}</a>;
};

Expand Down

0 comments on commit b40af0d

Please sign in to comment.