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(native-filter): Default value multi-select height in native filters #14816

Merged
merged 4 commits into from
May 27, 2021
Merged

fix(native-filter): Default value multi-select height in native filters #14816

merged 4 commits into from
May 27, 2021

Conversation

geido
Copy link
Member

@geido geido commented May 25, 2021

SUMMARY

Fixes the height of the multi-select for the "Default value" in the native filters modal, as well as the multi-select in the native filters left sidebar.

BEFORE

119386138-f4dc2700-bc7b-11eb-834a-68c157121a35

AFTER

Screen Shot 2021-05-25 at 16 29 06

Screen Shot 2021-05-25 at 16 46 25

TESTING INSTRUCTIONS

  1. Open a dashboard
  2. Select the filters
  3. Add values in the "Default value" multi-select
  4. Make sure the selected values are appearing correctly

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Multi-select input is obscuring other elements #14792
  • 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

@geido
Copy link
Member Author

geido commented May 25, 2021

This PR is effectively overriding the fixed height that is passed to the SuperChart in superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx and superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/DefaultValue.tsx. I can't really say why such height was set originally.

@rusackas seems like you have contributed to this functionality originally. Maybe you can help to answer this question.

@junlincc junlincc changed the title fix: Default value multi-select height in native filters fix(native-filter): Default value multi-select height in native filters May 25, 2021
@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label May 25, 2021
@junlincc junlincc self-requested a review May 25, 2021 21:59
@junlincc junlincc added the hold:testing! On hold for testing label May 25, 2021
@junlincc junlincc requested a review from villebro May 25, 2021 22:00
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.

Thanks for the PR!
The reported issue is fixed, but we need to take care of the other issue "fixed height for select filter value box, so that multiple value select don't take up too much real estate in the filter bar".
just repeating myself.. I'm ok to go with the ."...+4" solution as long as the selected filter value s are at the top when expand the list. please coordinate the fix with @michael-s-molina and @villebro

Screen.Recording.2021-05-25.at.2.59.08.PM.mov

@junlincc junlincc added hold! On hold and removed hold:testing! On hold for testing labels May 25, 2021
@michael-s-molina
Copy link
Member

Thanks for the PR!
The reported issue is fixed, but we need to take care of the other issue "fixed height for select filter value box, so that multiple value select don't take up too much real estate in the filter bar".
just repeating myself.. I'm ok to go with the ."...+4" solution as long as the selected filter value s are at the top when expand the list. please coordinate the fix with @michael-s-molina and @villebro

Screen.Recording.2021-05-25.at.2.59.08.PM.mov

@geido Thanks for the fix!

@junlincc I'll add the select with +4 to my todo list. I will work on it right after we deliver the native filters revamp 😉

@villebro
Copy link
Member

@geido this seems to need a rebase. With regard to the "...+4" feature, I'd suggest merging #14486 and following up with a new PR that moves the selected values to the top

@codecov
Copy link

codecov bot commented May 26, 2021

Codecov Report

Merging #14816 (d246693) into master (3224e75) will not change coverage.
The diff coverage is 100.00%.

❗ Current head d246693 differs from pull request most recent head 3a53e40. Consider uploading reports for the commit 3a53e40 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14816   +/-   ##
=======================================
  Coverage   77.62%   77.62%           
=======================================
  Files         963      963           
  Lines       49236    49236           
  Branches     6192     6192           
=======================================
  Hits        38217    38217           
  Misses      10819    10819           
  Partials      200      200           
Flag Coverage Δ
javascript 72.48% <ø> (ø)

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

Impacted Files Coverage Δ
...veFilters/FilterBar/FilterControls/FilterValue.tsx 67.44% <ø> (ø)
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 72.64% <ø> (ø)
superset/connectors/sqla/models.py 89.74% <100.00%> (ø)

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 3224e75...3a53e40. Read the comment docs.

@geido geido closed this May 26, 2021
@geido geido reopened this May 26, 2021
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM and works great! I'm wondering if we could be more explicit about the > div > div but I'm fine with this!

@junlincc junlincc added need:merge The PR is ready to be merged and removed hold! On hold labels May 26, 2021
@villebro villebro merged commit ad4ce83 into apache:master May 27, 2021
@junlincc junlincc added this to In progress in Native dashboard filters via automation May 27, 2021
@junlincc junlincc moved this from In progress to Done in Native dashboard filters May 27, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
…rs (apache#14816)

* Fix height

* Fix height sidebar

* Move style
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…rs (apache#14816)

* Fix height

* Fix height sidebar

* Move style
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…rs (apache#14816)

* Fix height

* Fix height sidebar

* Move style
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 12, 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 dashboard:native-filters Related to the native filters of the Dashboard need:merge The PR is ready to be merged size/XS 🚢 1.3.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Multi-select input is obscuring other elements
5 participants