Skip to content

Commit

Permalink
Minor fixes from SDD feedback
Browse files Browse the repository at this point in the history
* Renamed "Program data" to "Demographics".
* Made names when adding a criteria clickable.
* Fixed spacing between annotations.
* Navigating back from a category when adding a criteria returns to the
  category list rather than back to the cohort.
* Add boolean operator names to dividers between criteria in groups.
* Show cohort size when creating a review.
  • Loading branch information
tjennison-work committed Jul 31, 2023
1 parent be2e94f commit 4e9d4a6
Show file tree
Hide file tree
Showing 16 changed files with 135 additions and 68 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"type": "classification",
"id": "tanagra-genotyping",
"title": "Genotyping platform",
"category": "Program data",
"category": "Demographics",
"columns": [
{ "key": "name", "width": "100%", "title": "Genotyping platform" }
],
Expand Down Expand Up @@ -290,28 +290,28 @@
"type": "attribute",
"id": "tanagra-ethnicity",
"title": "Ethnicity",
"category": "Program data",
"category": "Demographics",
"attribute": "ethnicity"
},
{
"type": "attribute",
"id": "tanagra-gender",
"title": "Gender identity",
"category": "Program data",
"category": "Demographics",
"attribute": "gender"
},
{
"type": "attribute",
"id": "tanagra-race",
"title": "Race",
"category": "Program data",
"category": "Demographics",
"attribute": "race"
},
{
"type": "attribute",
"id": "tanagra-age",
"title": "Age",
"category": "Program data",
"category": "Demographics",
"attribute": "age"
},
{
Expand All @@ -333,7 +333,7 @@
"type": "classification",
"id": "tanagra-snp",
"title": "SNP variant",
"category": "Program data",
"category": "Demographics",
"columns": [{ "key": "id", "width": "100%", "title": "SNP variant" }],
"occurrence": "",
"classification": "snp"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"type": "classification",
"id": "tanagra-genotyping",
"title": "Genotyping platform",
"category": "Program data",
"category": "Demographics",
"columns": [
{ "key": "name", "width": "100%", "title": "Genotyping platform" }
],
Expand Down Expand Up @@ -290,28 +290,28 @@
"type": "attribute",
"id": "tanagra-ethnicity",
"title": "Ethnicity",
"category": "Program data",
"category": "Demographics",
"attribute": "ethnicity"
},
{
"type": "attribute",
"id": "tanagra-gender",
"title": "Gender identity",
"category": "Program data",
"category": "Demographics",
"attribute": "gender"
},
{
"type": "attribute",
"id": "tanagra-race",
"title": "Race",
"category": "Program data",
"category": "Demographics",
"attribute": "race"
},
{
"type": "attribute",
"id": "tanagra-age",
"title": "Age",
"category": "Program data",
"category": "Demographics",
"attribute": "age"
},
{
Expand All @@ -333,7 +333,7 @@
"type": "classification",
"id": "tanagra-snp",
"title": "SNP variant",
"category": "Program data",
"category": "Demographics",
"columns": [{ "key": "name", "width": "100%", "title": "SNP variant" }],
"occurrence": "",
"classification": "snp"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"type": "classification",
"id": "tanagra-genotyping",
"title": "Genotyping platform",
"category": "Program data",
"category": "Demographics",
"columns": [
{ "key": "name", "width": "100%", "title": "Genotyping platform" }
],
Expand Down Expand Up @@ -290,28 +290,28 @@
"type": "attribute",
"id": "tanagra-ethnicity",
"title": "Ethnicity",
"category": "Program data",
"category": "Demographics",
"attribute": "ethnicity"
},
{
"type": "attribute",
"id": "tanagra-gender",
"title": "Gender identity",
"category": "Program data",
"category": "Demographics",
"attribute": "gender"
},
{
"type": "attribute",
"id": "tanagra-race",
"title": "Race",
"category": "Program data",
"category": "Demographics",
"attribute": "race"
},
{
"type": "attribute",
"id": "tanagra-age",
"title": "Age",
"category": "Program data",
"category": "Demographics",
"attribute": "age"
},
{
Expand All @@ -333,7 +333,7 @@
"type": "classification",
"id": "tanagra-snp",
"title": "SNP variant",
"category": "Program data",
"category": "Demographics",
"columns": [{ "key": "id", "width": "100%", "title": "SNP variant" }],
"occurrence": "",
"classification": "snp"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"type": "classification",
"id": "tanagra-genotyping",
"title": "Genotyping platform",
"category": "Program data",
"category": "Demographics",
"columns": [
{ "key": "name", "width": "100%", "title": "Genotyping platform" }
],
Expand Down Expand Up @@ -290,28 +290,28 @@
"type": "attribute",
"id": "tanagra-ethnicity",
"title": "Ethnicity",
"category": "Program data",
"category": "Demographics",
"attribute": "ethnicity"
},
{
"type": "attribute",
"id": "tanagra-gender",
"title": "Gender identity",
"category": "Program data",
"category": "Demographics",
"attribute": "gender"
},
{
"type": "attribute",
"id": "tanagra-race",
"title": "Race",
"category": "Program data",
"category": "Demographics",
"attribute": "race"
},
{
"type": "attribute",
"id": "tanagra-age",
"title": "Age",
"category": "Program data",
"category": "Demographics",
"attribute": "age"
},
{
Expand All @@ -333,7 +333,7 @@
"type": "classification",
"id": "tanagra-snp",
"title": "SNP variant",
"category": "Program data",
"category": "Demographics",
"columns": [{ "key": "name", "width": "100%", "title": "SNP variant" }],
"occurrence": "",
"classification": "snp"
Expand Down
12 changes: 10 additions & 2 deletions ui/src/addCriteria.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Button from "@mui/material/Button";
import Chip from "@mui/material/Chip";
import Link from "@mui/material/Link";
import Stack from "@mui/material/Stack";
import { useTheme } from "@mui/material/styles";
import Typography from "@mui/material/Typography";
Expand Down Expand Up @@ -282,9 +283,16 @@ function AddCriteria(props: AddCriteriaProps) {
paddingLeft: theme.spacing(2),
}}
>
<Typography key="" variant="body2">
<Link
key=""
component="button"
variant="body2"
color="inherit"
underline="hover"
onClick={() => onClick(config)}
>
{config.title}
</Typography>
</Link>
</td>
<td
style={{
Expand Down
2 changes: 1 addition & 1 deletion ui/src/cohortReview/cohortReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function CohortReview() {
) : null}
</GridLayout>
<Loading status={annotationsState}>
<GridLayout rows>
<GridLayout rows spacing={2}>
{annotationsState.data?.map(
(a) =>
!!instance && (
Expand Down
1 change: 1 addition & 0 deletions ui/src/cohortReview/cohortReviewList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export function CohortReviewList() {
};

const [newReviewDialog, showNewReviewDialog] = useNewReviewDialog({
cohort,
onCreate: onCreateNewReview,
});

Expand Down
Loading

0 comments on commit 4e9d4a6

Please sign in to comment.