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: dropdown placement for cascading filters popover #17046

Merged
merged 14 commits into from
Oct 22, 2021

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented Oct 8, 2021

SUMMARY

This pr fixes an issue where the dropdown select will fill the container of the popover causing ui confusion for the user. This fix enables the drop down to drop in respect to the select

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

before
#16521 (comment)

after

Screen.Recording.2021-10-08.at.4.37.51.PM.mov

TESTING INSTRUCTIONS

Go to dashboard and create cascading filter and ensure the the dropdown does not fill the popover container.

ADDITIONAL INFORMATION

@codecov
Copy link

codecov bot commented Oct 9, 2021

Codecov Report

Merging #17046 (8cf017b) into master (4cc095c) will increase coverage by 0.02%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17046      +/-   ##
==========================================
+ Coverage   76.91%   76.93%   +0.02%     
==========================================
  Files        1038     1039       +1     
  Lines       55557    55575      +18     
  Branches     7567     7576       +9     
==========================================
+ Hits        42731    42759      +28     
+ Misses      12576    12566      -10     
  Partials      250      250              
Flag Coverage Δ
javascript 70.98% <83.33%> (+0.05%) ⬆️

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

Impacted Files Coverage Δ
...Filters/FilterBar/FilterControls/FilterControl.tsx 100.00% <ø> (ø)
...veFilters/FilterBar/FilterControls/FilterValue.tsx 69.56% <ø> (ø)
...et-frontend/src/filters/components/Select/types.ts 100.00% <ø> (ø)
.../FilterBar/CascadeFilters/CascadePopover/index.tsx 63.76% <75.00%> (+0.53%) ⬆️
...rBar/CascadeFilters/CascadeFilterControl/index.tsx 90.00% <100.00%> (ø)
...c/filters/components/Select/SelectFilterPlugin.tsx 80.85% <100.00%> (+0.20%) ⬆️
...nativeFilters/FiltersConfigModal/Footer/Footer.tsx 90.90% <0.00%> (-9.10%) ⬇️
...re/components/controls/DatasourceControl/index.jsx 79.06% <0.00%> (ø)
...-frontend/src/datasource/ChangeDatasourceModal.tsx
...perset-frontend/src/datasource/DatasourceModal.tsx
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cc095c...8cf017b. Read the comment docs.

@geido
Copy link
Member

geido commented Oct 11, 2021

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DASHBOARD_NATIVE_FILTERS_SET=true FEATURE_DASHBOARD_FILTERS_EXPERIMENTAL=true

@github-actions
Copy link
Contributor

@geido Ephemeral environment spinning up at http://35.161.112.24:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@michael-s-molina
Copy link
Member

@pkdotson The overflow-y: auto had the objective of adding a vertical scroll when needed.

Screen.Recording.2021-10-11.at.7.30.55.AM.mov

@rusackas
Copy link
Member

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DASHBOARD_NATIVE_FILTERS_SET=true FEATURE_DASHBOARD_FILTERS_EXPERIMENTAL=true

@github-actions
Copy link
Contributor

@rusackas Ephemeral environment spinning up at http://54.245.53.165:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 14, 2021
@pkdotson pkdotson closed this Oct 14, 2021
@pkdotson pkdotson reopened this Oct 14, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@pkdotson
Copy link
Member Author

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DASHBOARD_NATIVE_FILTERS_SET=true FEATURE_DASHBOARD_FILTERS_EXPERIMENTAL=true

@github-actions
Copy link
Contributor

@pkdotson Ephemeral environment spinning up at http://54.191.179.117:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix. ready to go if the code looks good. cc @graceguo-supercat

@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 18, 2021
@pkdotson
Copy link
Member Author

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DASHBOARD_NATIVE_FILTERS_SET=true FEATURE_DASHBOARD_FILTERS_EXPERIMENTAL=true

@github-actions
Copy link
Contributor

@pkdotson Ephemeral environment spinning up at http://54.202.234.224:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@@ -285,6 +287,7 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
// @ts-ignore
value={filterState.value || []}
disabled={isDisabled}
getPopupContainer={showOverflow ? () => parentRef : undefined}
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't that be parentRef.current?

Copy link
Member

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

Lgtm

@rusackas rusackas merged commit 824e62b into apache:master Oct 22, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@rusackas rusackas deleted the fix-popover-dropdown branch October 22, 2021 22:56
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/M 🚢 1.5.0
Projects
None yet
7 participants