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: Horizontal filter bar resizing #22286

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes horizontal filter bar resizing by making the central container use the available space. This also aligns the Apply and Clear All buttons to the right in a similar way they are aligned to the bottom when in vertical mode.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2022-11-30.at.3.37.18.PM.mov

TESTING INSTRUCTIONS

Check the video for instructions.

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

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #22286 (609f0de) into master (3ffe782) will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #22286      +/-   ##
==========================================
+ Coverage   66.79%   66.89%   +0.09%     
==========================================
  Files        1846     1846              
  Lines       70286    70286              
  Branches     7683     7683              
==========================================
+ Hits        46948    47017      +69     
+ Misses      21346    21277      -69     
  Partials     1992     1992              
Flag Coverage Δ
javascript 53.79% <ø> (ø)

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

Impacted Files Coverage Δ
...ilters/FilterBar/FilterControls/FilterControls.tsx 70.21% <ø> (ø)
superset/utils/core.py 90.88% <0.00%> (+0.10%) ⬆️
superset/connectors/sqla/models.py 89.32% <0.00%> (+0.19%) ⬆️
superset/db_engine_specs/base.py 89.21% <0.00%> (+0.31%) ⬆️
superset/db_engine_specs/hive.py 87.35% <0.00%> (+16.20%) ⬆️
superset/db_engines/hive.py 85.18% <0.00%> (+85.18%) ⬆️

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

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! However what's worrying me is that the filters are reloading when they are popping back into view. We're using reverse portals to avoid it and that solution worked in vertical filter bar when changing filter's state in/out of scope - the filters don't reload there if they were already loaded. Seems like that solution doesn't work here

@michael-s-molina michael-s-molina merged commit ead2834 into apache:master Dec 1, 2022
@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/XS 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants