Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRUM-4585 (update) Remove links for entities without tables #1728

Merged
merged 4 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading