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

feat: Adds overflow to the DropdownContainer popover #22250

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Adds overflow to the DropdownContainer popover.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2022-11-28.at.6.08.23.PM.mov

TESTING INSTRUCTIONS

  • Check that no overflow is set if the popover height is less than MAX_HEIGHT
  • Check that an overflow is set if the popover height is greater than MAX_HEIGHT

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@kgabryje
Copy link
Member

/testenv up FEATURE_HORIZONTAL_FILTER_BAR=true

@github-actions
Copy link
Contributor

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

@kgabryje
Copy link
Member

kgabryje commented Nov 29, 2022

It's not related to this PR, but while testing I crashed the dashboard :(

image

The error points to this piece of code in FilterControls.tsx

image

@codyml I think you modified that recently, do you know why dataMask might be undefined here? Should we just add a null check or can it be a deeper issue?

@kgabryje
Copy link
Member

@michael-s-molina I'm wondering if we should set the scrollbar to be always visible when the overflow is present. Without it users might not notice that the dropdown is scrollable
image

@codyml
Copy link
Member

codyml commented Nov 29, 2022

It's not related to this PR, but while testing I crashed the dashboard :(

@codyml I think you modified that recently, do you know why dataMask might be undefined here? Should we just add a null check or can it be a deeper issue?

Oops yes! I made a typing mistake; the DataMaskStateWithId type should have dataMask as optional. Fix here: #22260

@pull-request-size pull-request-size bot added size/L and removed size/M labels Nov 30, 2022
@michael-s-molina
Copy link
Member Author

@kgabryje I added some CSS configurations to make the scroll visible.

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #22250 (716f12a) into master (435926b) will increase coverage by 11.36%.
The diff coverage is 58.66%.

❗ Current head 716f12a differs from pull request most recent head 244d5e8. Consider uploading reports for the commit 244d5e8 to get more accurate results

@@             Coverage Diff             @@
##           master   #22250       +/-   ##
===========================================
+ Coverage   55.46%   66.82%   +11.36%     
===========================================
  Files        1841     1842        +1     
  Lines       70220    70259       +39     
  Branches     7670     7675        +5     
===========================================
+ Hits        38947    46953     +8006     
+ Misses      29291    21321     -7970     
- Partials     1982     1985        +3     
Flag Coverage Δ
javascript 53.66% <63.88%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...ages/superset-ui-core/src/query/types/Dashboard.ts 100.00% <ø> (ø)
...packages/superset-ui-core/src/query/types/Query.ts 100.00% <ø> (ø)
...ugins/plugin-chart-echarts/src/Radar/buildQuery.ts 0.00% <0.00%> (ø)
...rontend/src/components/MetadataBar/MetadataBar.tsx 98.21% <ø> (ø)
...d/components/DashboardBuilder/DashboardBuilder.tsx 74.28% <0.00%> (-0.96%) ⬇️
...Filters/FilterBar/FilterControls/FilterDivider.tsx 84.00% <0.00%> (+2.51%) ⬆️
...rontend/src/filters/components/Range/buildQuery.ts 0.00% <ø> (ø)
...ontend/src/filters/components/Select/buildQuery.ts 90.00% <ø> (ø)
superset/views/database/views.py 31.27% <33.33%> (+0.82%) ⬆️
...ilters/FilterBar/FilterControls/FilterControls.tsx 70.21% <50.00%> (-2.13%) ⬇️
... and 299 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kgabryje
Copy link
Member

kgabryje commented Dec 1, 2022

/testenv up HORIZONTAL_FILTER_BAR=true

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2022

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

@kgabryje
Copy link
Member

kgabryje commented Dec 1, 2022

/testenv up FEATURE_HORIZONTAL_FILTER_BAR=true

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2022

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

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM.
One thing to consider for the future is that when scrolling the hover action should be disabled to avoid a little bit of disturbance caused by the popovers opening and closing while the scroll action is still happening.

USA.Births.Names.mp4

@geido geido merged commit afc10a2 into apache:master Dec 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2022

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 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 size/L 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants