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: use Hew dropdown on FilterGroup [WEB-1938] #8715

Merged
merged 3 commits into from
Jan 18, 2024
Merged

fix: use Hew dropdown on FilterGroup [WEB-1938] #8715

merged 3 commits into from
Jan 18, 2024

Conversation

mapmeld
Copy link
Contributor

@mapmeld mapmeld commented Jan 18, 2024

Description

This fixes the dropdown in WEB-1938.

Screen Shot 2024-01-18 at 11 51 31 AM

I saw an unrelated bug in FilterForm, where tooltips from the table below appear over the form elements. We can (mostly) avoid this with e.stopPropagation in onMouseMove.

Screen Shot 2024-01-18 at 11 31 06 AM

Test Plan

In the experiment filters, click "Add condition group", then in that row, click the "+" to see these two options. Confirm you can add conditions to filter experiments.

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Copy link

netlify bot commented Jan 18, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 75595a0
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65a96bb92a8ad0000883cec3
😎 Deploy Preview https://deploy-preview-8715--determined-ui.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (e0e08b6) 51.32% compared to head (75595a0) 47.09%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8715      +/-   ##
==========================================
- Coverage   51.32%   47.09%   -4.24%     
==========================================
  Files         894      577     -317     
  Lines      156699   118170   -38529     
  Branches     2088     2088              
==========================================
- Hits        80425    55647   -24778     
+ Misses      74779    61028   -13751     
  Partials     1495     1495              
Flag Coverage Δ
harness ?
web 53.80% <11.76%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ui/react/src/components/FilterForm/TableFilter.tsx 29.48% <0.00%> (-0.39%) ⬇️
...c/components/FilterForm/components/FilterGroup.tsx 13.63% <13.33%> (-0.21%) ⬇️

... and 317 files with indirect coverage changes

@mapmeld mapmeld added the to-cherry-pick Pull requests that need to be cherry-picked into the current release label Jan 18, 2024
Comment on lines 93 to 94
const onItemClick = useMemo(
() => (key: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

please import useCallback instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, yeah that would be the right way to do it. I was splitting up a useMemo and got carried away

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

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

LGTM

@mapmeld mapmeld merged commit 7188b69 into main Jan 18, 2024
74 of 85 checks passed
@mapmeld mapmeld deleted the dropdownfix branch January 18, 2024 18:45
dai-release bot pushed a commit that referenced this pull request Jan 18, 2024
* stop propagating mousemove to tooltips below
* useCallback

(cherry picked from commit 7188b69)
maxrussell pushed a commit that referenced this pull request Mar 21, 2024
* stop propagating mousemove to tooltips below
* useCallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed to-cherry-pick Pull requests that need to be cherry-picked into the current release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants