Skip to content

Commit

Permalink
feat: update titles on assembly detail page (#221) (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx authored Jan 21, 2025
1 parent 3c12dea commit 076a09b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const AnalysisMethods = ({ children }: Props): JSX.Element => {
return (
<FluidPaper>
<GridPaper>
<GridPaperSection>Choose Analysis Method</GridPaperSection>
<GridPaperSection>Select an Analysis Workflow</GridPaperSection>
{children}
</GridPaper>
</FluidPaper>
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion app/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export { AnalysisMethod } from "./Entity/components/AnalysisMethod/analysisMetho
export { AnalysisMethods } from "./Entity/components/AnalysisMethods/analysisMethods";
export { AnalysisMethodsTitle } from "./Entity/components/AnalysisMethodsTitle/analysisMethodsTitle";
export { AnalysisPortals } from "./Entity/components/AnalysisPortals/analysisPortals";
export { DetailViewHero } from "./Layout/components/Detail/components/DetailViewHero/detailViewHero";
export { GridPaperSection } from "./Layout/components/Detail/components/Section/section.styles";
export { Branding } from "./Layout/components/Footer/components/Branding/branding";
export { AnalyzeGenome } from "./Table/components/TableCell/components/AnalyzeGenome/analyzeGenome";
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,10 @@ export const buildGenomeAnalysisPortals = (
*/
export const buildGenomeChooseAnalysisMethodDetailViewHero = (
genome: BRCDataCatalogGenome
): ComponentProps<typeof C.DetailViewHero> => {
): ComponentProps<typeof C.BackPageHero> => {
return {
breadcrumbs: C.Breadcrumbs({
breadcrumbs: getGenomeEntityChooseAnalysisMethodBreadcrumbs(genome),
}),
title: "Choose Analysis Methods",
breadcrumbs: getGenomeEntityChooseAnalysisMethodBreadcrumbs(genome),
title: genome.accession,
};
};

Expand Down Expand Up @@ -567,7 +565,7 @@ function getGenomeEntityChooseAnalysisMethodBreadcrumbs(
return [
{ path: ROUTES.GENOMES, text: "Assemblies" },
{ path: "", text: `${genome.species}` },
{ path: "", text: "Choose Analysis Methods" },
{ path: "", text: genome.accession },
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as V from "../../../../../app/viewModelBuilders/catalog/brc-analytics-c

export const top: ComponentsConfig = [
{
component: C.DetailViewHero,
component: C.BackPageHero,
viewBuilder: V.buildGenomeChooseAnalysisMethodDetailViewHero,
} as ComponentConfig<typeof C.DetailViewHero, BRCDataCatalogGenome>,
} as ComponentConfig<typeof C.BackPageHero, BRCDataCatalogGenome>,
];

0 comments on commit 076a09b

Please sign in to comment.