-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix several small issues on the cohort overiew
* Swap cohort criteria to left side. Make the visualizations secondary until they're interactive enough to be the primary editing surface. * Make the cohort criteria wider. Almost all criteria were too long to be effectively displayed. * Remove interactivity from the background of criteria so only the title selects/unselects. It was causing a number of corner cases where criteria controls behaved unpredictably and some were difficult to solve due to the way JS handles mouse events. This removes the need to squash mouse events throughout the code. Show title hover underlining on selected criteria as well to make it clear it's still clickable. * Refactor uncontained select style to a shared file. * Fix rare issue were criteria buttons could spill onto a second row. * Add a drop down to select which visualizations are displayed. Add optional config to limit the default set displayed.
- Loading branch information
1 parent
59bfd4b
commit 74d803c
Showing
10 changed files
with
170 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Theme } from "@mui/material/styles"; | ||
|
||
export function uncontainedSelectSx() { | ||
return { | ||
color: (theme: Theme) => theme.palette.primary.main, | ||
"& .MuiOutlinedInput-input": { | ||
px: 0, | ||
py: "2px", | ||
}, | ||
"& .MuiSelect-select": (theme: Theme) => ({ | ||
...theme.typography.body2, | ||
}), | ||
"& .MuiOutlinedInput-notchedOutline": { | ||
borderStyle: "none", | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.