From 2b98f8dbae4e7224ddcc48b27ea9758276824ae3 Mon Sep 17 00:00:00 2001 From: hunterckx <118154470+hunterckx@users.noreply.github.com> Date: Sat, 16 Nov 2024 17:24:58 -0800 Subject: [PATCH] feat: relabel "organisms" to "genomes" (#177) --- .../Section/components/SectionHero/sectionHero.tsx | 2 +- app/components/Home/content/sectionSubHero.mdx | 2 +- .../brc-analytics-catalog/common/viewModelBuilders.ts | 4 ++-- pages/_app.tsx | 2 +- routes/constants.ts | 2 +- site-config/brc-analytics/local/config.ts | 2 +- site-config/brc-analytics/local/index/genomeEntityConfig.ts | 6 +++--- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/components/Home/components/Section/components/SectionHero/sectionHero.tsx b/app/components/Home/components/Section/components/SectionHero/sectionHero.tsx index 0069043..21faa17 100644 --- a/app/components/Home/components/Section/components/SectionHero/sectionHero.tsx +++ b/app/components/Home/components/Section/components/SectionHero/sectionHero.tsx @@ -32,7 +32,7 @@ export const SectionHero = (): JSX.Element => { annotations and functional insights into disease-causing organisms and their carriers - diff --git a/app/components/Home/content/sectionSubHero.mdx b/app/components/Home/content/sectionSubHero.mdx index da94f3a..0512771 100644 --- a/app/components/Home/content/sectionSubHero.mdx +++ b/app/components/Home/content/sectionSubHero.mdx @@ -1,5 +1,5 @@ BRC Analytics is your new destination for analysis of biological data related to pathogens. Building on the foundation of VEuPathDb the platform will provide access and analysis capabilities for -[785 eukaryotic pathogens](/data/organisms), hosts, and vectors. The functionality will +[785 eukaryotic pathogens](/data/genomes), hosts, and vectors. The functionality will be developed and made available incrementally over the [following months](/roadmap). diff --git a/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts b/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts index d45adc9..c364d2c 100644 --- a/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts +++ b/app/viewModelBuilders/catalog/brc-analytics-catalog/common/viewModelBuilders.ts @@ -38,7 +38,7 @@ export const buildAnalyzeGenome = ( return { analyze: { label: "Analyze", - url: rowId ? `${ROUTES.ORGANISMS}/${rowId}` : "", + url: rowId ? `${ROUTES.GENOMES}/${rowId}` : "", }, views: [ ...(ucscBrowserUrl @@ -320,7 +320,7 @@ function getGenomeEntityChooseAnalysisMethodBreadcrumbs( genome: BRCDataCatalogGenome ): Breadcrumb[] { return [ - { path: ROUTES.ORGANISMS, text: "Organisms" }, + { path: ROUTES.GENOMES, text: "Genomes" }, { path: "", text: `${genome.organism}` }, { path: "", text: "Choose Analysis Methods" }, ]; diff --git a/pages/_app.tsx b/pages/_app.tsx index 3e99414..3844bc2 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -20,7 +20,7 @@ import { StyledFooter } from "../app/components/Layout/components/Footer/footer. import { config } from "../app/config/config"; import { mergeAppTheme } from "../app/theme/theme"; -const DEFAULT_ENTITY_LIST_TYPE = "organisms"; +const DEFAULT_ENTITY_LIST_TYPE = "genomes"; export interface PageProps extends AzulEntitiesStaticResponse { pageTitle?: string; diff --git a/routes/constants.ts b/routes/constants.ts index c44740a..05eb80a 100644 --- a/routes/constants.ts +++ b/routes/constants.ts @@ -1,5 +1,5 @@ export const ROUTES = { ABOUT: "/about", - ORGANISMS: "/data/organisms", + GENOMES: "/data/genomes", ROADMAP: "/roadmap", }; diff --git a/site-config/brc-analytics/local/config.ts b/site-config/brc-analytics/local/config.ts index 114f293..159fd80 100644 --- a/site-config/brc-analytics/local/config.ts +++ b/site-config/brc-analytics/local/config.ts @@ -50,7 +50,7 @@ export function makeConfig(browserUrl: string): SiteConfig { undefined, [ { label: "About", url: ROUTES.ABOUT }, - { label: "Datasets", url: ROUTES.ORGANISMS }, + { label: "Datasets", url: ROUTES.GENOMES }, { label: "Roadmap", url: ROUTES.ROADMAP }, ], undefined, diff --git a/site-config/brc-analytics/local/index/genomeEntityConfig.ts b/site-config/brc-analytics/local/index/genomeEntityConfig.ts index cc61338..42d2bf5 100644 --- a/site-config/brc-analytics/local/index/genomeEntityConfig.ts +++ b/site-config/brc-analytics/local/index/genomeEntityConfig.ts @@ -80,10 +80,10 @@ export const genomeEntityConfig: BRCEntityConfig = { ], }, exploreMode: EXPLORE_MODE.CS_FETCH_CS_FILTERING, - explorerTitle: "Organisms", + explorerTitle: "Genomes", getId: getGenomeId, getTitle: getGenomeTitle, - label: "Organisms", + label: "Genomes", list: { columns: [ { @@ -226,6 +226,6 @@ export const genomeEntityConfig: BRCEntityConfig = { enableTab: false, listHero, }, - route: "organisms", + route: "genomes", staticLoadFile: "files/out/genomes.json", };