Skip to content
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

Fix several small issues on the cohort overiew #1123

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

tjennison-work
Copy link
Collaborator

  • 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.

@tjennison-work tjennison-work force-pushed the tj-cohort-ui branch 2 times, most recently from 0364832 to 74d803c Compare January 14, 2025 17:09
Copy link
Contributor

@dexamundsen dexamundsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too familiar with UI, no issues stand out

)}
</GridBox>
</GridLayout>
</Paper>
);
}

// TODO(tjennison): Store the selected visualizations in local storage per
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: jira tracking id

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of creating tickets for TODOs unless they're bugs or part of ongoing work. Too often they just end up cluttering up the backlog because plans change and then you have to actually change the code to get rid of them.

* 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.
@tjennison-work tjennison-work merged commit 16c5fd1 into main Jan 14, 2025
8 checks passed
@tjennison-work tjennison-work deleted the tj-cohort-ui branch January 14, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants