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(native-filters): Update filter bar buttons #13506

Merged
merged 29 commits into from
Mar 7, 2021

Conversation

simcha90
Copy link
Contributor

@simcha90 simcha90 commented Mar 7, 2021

SUMMARY

This PR update filter bar action buttons functionality according this mock for filter sets:
https://www.figma.com/proto/Z75uj6W6n0A6nfK3Mvawqi/Dashboard-Filters---P1?node-id=960%3A515&scaling=min-zoom

It includes actions functionality for Reset all and Apply buttons

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2021-03-07.at.9.20.56.mov

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

…incubator-superset into filter_bar_actions

� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
…_to_data_mask

� Conflicts:
�	superset-frontend/package-lock.json
�	superset-frontend/package.json
@simcha90 simcha90 changed the title feat(native-filters): Update filter bar buttons WIP: feat(native-filters): Update filter bar buttons Mar 7, 2021
…ctions

� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
@simcha90 simcha90 changed the title WIP: feat(native-filters): Update filter bar buttons feat(native-filters): Update filter bar buttons Mar 7, 2021
@codecov
Copy link

codecov bot commented Mar 7, 2021

Codecov Report

Merging #13506 (6151550) into master (45972e9) will increase coverage by 1.65%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13506      +/-   ##
==========================================
+ Coverage   71.73%   73.38%   +1.65%     
==========================================
  Files         806      611     -195     
  Lines       40749    21345   -19404     
  Branches     4165     5539    +1374     
==========================================
- Hits        29230    15665   -13565     
+ Misses      11519     5550    -5969     
- Partials        0      130     +130     
Flag Coverage Δ
cypress 57.97% <83.33%> (+0.01%) ⬆️
hive ?
javascript 63.28% <73.91%> (?)
mysql ?
postgres ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
...d/components/nativeFilters/FilterBar/FilterBar.tsx 82.39% <86.95%> (+3.82%) ⬆️
superset-frontend/src/views/index.tsx 25.00% <0.00%> (-75.00%) ⬇️
superset-frontend/src/SqlLab/index.tsx 25.00% <0.00%> (-75.00%) ⬇️
...ntend/src/filters/components/Range/controlPanel.ts 33.33% <0.00%> (-66.67%) ⬇️
...tend/src/filters/components/Select/controlPanel.ts 33.33% <0.00%> (-66.67%) ⬇️
superset-frontend/src/views/App.tsx 38.70% <0.00%> (-61.30%) ⬇️
...et-frontend/src/filters/components/Select/index.ts 40.00% <0.00%> (-60.00%) ⬇️
superset-frontend/src/setup/setupPlugins.ts 44.44% <0.00%> (-55.56%) ⬇️
superset-frontend/src/setup/setupPluginsExtra.ts 50.00% <0.00%> (-50.00%) ⬇️
...rset-frontend/src/setup/setupErrorMessagesExtra.ts 50.00% <0.00%> (-50.00%) ⬇️
... and 786 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 45972e9...6151550. Read the comment docs.

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!

@villebro villebro merged commit 3970d73 into apache:master Mar 7, 2021
@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label Mar 12, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* refactor(native-filters): move data mask to root reducer

* refactor: update rest stuff for dataMask

* refactor: add ownCrrentState to explore

* fix: fix immer reducer

* fix: merge with master

* refactor: support explore dataMask

* refactor: support explore dataMask

* docs: add comment

* refactor: remove json stringify

* fix: fix failed cases

* feat: filter bat buttons start

* fix: fix CR notes

* fix: fix cascade filters

* fix: fix CR notes

* refactor: add clear all

* fix: fix CR notes

* fix: fix CR notes

* fix: fix CR notes

* feat: buttons in filter bar

* lint: update imports

* test: fix tests
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels 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 size/M 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants