-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rename group option for cohorts #1136
Conversation
76dc021
to
b7f02e3
Compare
ui/src/overview.tsx
Outdated
@@ -321,6 +323,9 @@ function ParticipantsGroupSection(props: { | |||
}} | |||
> | |||
<GridLayout rows height="auto"> | |||
{!!props.groupSection.name && ( | |||
<Typography sx={{ p: 1 }}>{props.groupSection.name}</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use variant="body1em"
so it stands out a bit more.
ui/src/overview.tsx
Outdated
@@ -321,6 +323,9 @@ function ParticipantsGroupSection(props: { | |||
}} | |||
> | |||
<GridLayout rows height="auto"> | |||
{!!props.groupSection.name && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the sectionName
helper in cohort.ts
and always display the name. Also move it into the grey above the dropdowns and horizontally align it with them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, didn't see sectionName
first time around. I've updated the screenshot in the description after addressing the comments.
ui/src/overview.tsx
Outdated
@@ -569,6 +574,24 @@ function ParticipantsGroupSection(props: { | |||
boxShadow: (theme) => `inset 0 1px 0 ${theme.palette.divider}`, | |||
}} | |||
> | |||
<Button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this an IconButton
and put it beside the section name like the cohort rename button.
b7f02e3
to
b0c76ee
Compare
ui/src/overview.tsx
Outdated
cols | ||
sx={{ | ||
p: 2, | ||
paddingBottom: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use px: 2, pt:2
instead.
@@ -321,6 +328,35 @@ function ParticipantsGroupSection(props: { | |||
}} | |||
> | |||
<GridLayout rows height="auto"> | |||
<GridLayout | |||
cols |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add rowAlign="middle"
to line up the button better with the text.
Add
Rename Group
option to each cohort group section in cohort builder.First group in screenshot above has a custom name, second group has the default group name.