Skip to content

Commit 132fef6

Browse files
committed
feat: separate analysis methods into preview and coming soon (#137)
1 parent aebedc5 commit 132fef6

File tree

3 files changed

+46
-9
lines changed

3 files changed

+46
-9
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { TEXT_HEADING } from "@databiosphere/findable-ui/lib/theme/common/typography";
2+
import { Typography } from "@mui/material";
3+
4+
interface AnalysisMethodsTitleProps {
5+
title: React.ReactNode;
6+
}
7+
8+
export const AnalysisMethodsTitle = ({
9+
title,
10+
}: AnalysisMethodsTitleProps): JSX.Element => {
11+
return (
12+
<Typography color="ink.main" component="h2" variant={TEXT_HEADING}>
13+
{title}
14+
</Typography>
15+
);
16+
};

app/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export { Link } from "@databiosphere/findable-ui/lib/components/Links/components
2323
export { BasicCell } from "@databiosphere/findable-ui/lib/components/Table/components/TableCell/components/BasicCell/basicCell";
2424
export { CopyText } from "./common/CopyText/copyText";
2525
export { AnalysisMethod } from "./Entity/components/AnalysisMethod/analysisMethod";
26+
export { AnalysisMethodsTitle } from "./Entity/components/AnalysisMethodsTitle/analysisMethodsTitle";
2627
export { AnalysisPortals } from "./Entity/components/AnalysisPortals/analysisPortals";
2728
export { DetailViewHero } from "./Layout/components/Detail/components/DetailViewHero/detailViewHero";
2829
export { GridPaperSection } from "./Layout/components/Detail/components/Section/section.styles";

site-config/brc-analytics/local/entity/genome/analysisMethodMainColumn.ts

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,35 @@ import * as V from "../../../../../app/viewModelBuilders/catalog/brc-analytics-c
77
export const mainColumn: ComponentsConfig = [
88
{
99
children: [
10+
{
11+
component: C.AnalysisMethodsTitle,
12+
props: {
13+
title: "Preview",
14+
},
15+
},
16+
{
17+
component: C.FluidAlert,
18+
props: {
19+
severity: "warning",
20+
title: "Preview.",
21+
variant: "banner",
22+
},
23+
},
24+
{
25+
component: C.AnalysisMethod,
26+
viewBuilder: (r) =>
27+
V.buildGenomeAnalysisMethod(r, {
28+
analysisMethod: ANALYSIS_METHOD.REGULATION,
29+
text: MDX.Regulation({}),
30+
title: "Regulation",
31+
}),
32+
},
33+
{
34+
component: C.AnalysisMethodsTitle,
35+
props: {
36+
title: "Coming Soon",
37+
},
38+
},
1039
{
1140
component: C.FluidAlert,
1241
props: {
@@ -34,15 +63,6 @@ export const mainColumn: ComponentsConfig = [
3463
title: "Transcriptomics",
3564
}),
3665
},
37-
{
38-
component: C.AnalysisMethod,
39-
viewBuilder: (r) =>
40-
V.buildGenomeAnalysisMethod(r, {
41-
analysisMethod: ANALYSIS_METHOD.REGULATION,
42-
text: MDX.Regulation({}),
43-
title: "Regulation",
44-
}),
45-
},
4666
{
4767
component: C.AnalysisMethod,
4868
viewBuilder: (r) =>

0 commit comments

Comments
 (0)