Skip to content

Commit

Permalink
feat: separate analysis methods into preview and coming soon (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx committed Oct 25, 2024
1 parent aebedc5 commit 132fef6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TEXT_HEADING } from "@databiosphere/findable-ui/lib/theme/common/typography";
import { Typography } from "@mui/material";

interface AnalysisMethodsTitleProps {
title: React.ReactNode;
}

export const AnalysisMethodsTitle = ({
title,
}: AnalysisMethodsTitleProps): JSX.Element => {
return (
<Typography color="ink.main" component="h2" variant={TEXT_HEADING}>
{title}
</Typography>
);
};
1 change: 1 addition & 0 deletions app/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export { Link } from "@databiosphere/findable-ui/lib/components/Links/components
export { BasicCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell";
export { CopyText } from "./common/CopyText/copyText";
export { AnalysisMethod } from "./Entity/components/AnalysisMethod/analysisMethod";
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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,35 @@ import * as V from "../../../../../app/viewModelBuilders/catalog/brc-analytics-c
export const mainColumn: ComponentsConfig = [
{
children: [
{
component: C.AnalysisMethodsTitle,
props: {
title: "Preview",
},
},
{
component: C.FluidAlert,
props: {
severity: "warning",
title: "Preview.",
variant: "banner",
},
},
{
component: C.AnalysisMethod,
viewBuilder: (r) =>
V.buildGenomeAnalysisMethod(r, {
analysisMethod: ANALYSIS_METHOD.REGULATION,
text: MDX.Regulation({}),
title: "Regulation",
}),
},
{
component: C.AnalysisMethodsTitle,
props: {
title: "Coming Soon",
},
},
{
component: C.FluidAlert,
props: {
Expand Down Expand Up @@ -34,15 +63,6 @@ export const mainColumn: ComponentsConfig = [
title: "Transcriptomics",
}),
},
{
component: C.AnalysisMethod,
viewBuilder: (r) =>
V.buildGenomeAnalysisMethod(r, {
analysisMethod: ANALYSIS_METHOD.REGULATION,
text: MDX.Regulation({}),
title: "Regulation",
}),
},
{
component: C.AnalysisMethod,
viewBuilder: (r) =>
Expand Down

0 comments on commit 132fef6

Please sign in to comment.