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: row component handler is visible #12498

Merged
merged 3 commits into from
Jan 18, 2021
Merged

Conversation

kkucharc
Copy link
Contributor

SUMMARY

In dashboard's edit mode menu with delete and move on left was cut by left end of page/browser.
I made equal margin on both sides. The menu is closer the edited row.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Left margin was more narrow than right one.
Screenshot 2021-01-13 at 17 47 17

Menu with move and delete in dashboard edit was truncated:
Screenshot 2021-01-13 at 17 47 37

After:
Without native filters:
Preview mode:
Screenshot 2021-01-13 at 17 39 47

Edit mode:
Screenshot 2021-01-13 at 17 39 11

With native filters:
Preview mode:
Screenshot 2021-01-13 at 17 41 36

Edit mode:
Screenshot 2021-01-13 at 17 42 47

TEST PLAN

  1. Go to any dashboard and check margins
    1a. Go to edit mode of dashboard and try edit row of dashboard (on left there will be icon to delete or to move chart)

To test native filters:
Go to supserset/config.py and change "DASHBOARD_NATIVE_FILTERS": False, -> "DASHBOARD_NATIVE_FILTERS": True,

ADDITIONAL INFORMATION

cc: @agatapst Can you take a look? I made some changes in your code.
cc: @junlincc @adam-stasiak

@codecov-io
Copy link

codecov-io commented Jan 13, 2021

Codecov Report

Merging #12498 (5fdbd57) into master (2d10a2c) will decrease coverage by 0.29%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12498      +/-   ##
==========================================
- Coverage   62.66%   62.36%   -0.30%     
==========================================
  Files        1014     1015       +1     
  Lines       49593    49606      +13     
  Branches     4839     4839              
==========================================
- Hits        31075    30938     -137     
- Misses      18320    18470     +150     
  Partials      198      198              
Flag Coverage Δ
javascript 60.73% <100.00%> (+<0.01%) ⬆️
python 63.43% <ø> (-0.49%) ⬇️

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

Impacted Files Coverage Δ
...tend/src/dashboard/components/DashboardBuilder.jsx 76.54% <100.00%> (ø)
superset/db_engines/hive.py 0.00% <0.00%> (-85.72%) ⬇️
superset/db_engine_specs/hive.py 54.61% <0.00%> (-29.24%) ⬇️
superset/db_engine_specs/presto.py 70.56% <0.00%> (-11.48%) ⬇️
superset/views/database/mixins.py 80.70% <0.00%> (-1.76%) ⬇️
superset/models/core.py 88.04% <0.00%> (-0.82%) ⬇️
superset/db_engine_specs/solr.py 100.00% <0.00%> (ø)
...rset-frontend/src/explore/components/SaveModal.tsx 86.04% <0.00%> (+0.16%) ⬆️
superset/db_engine_specs/pinot.py 70.73% <0.00%> (+2.31%) ⬆️
superset/db_engine_specs/postgres.py 96.05% <0.00%> (+9.21%) ⬆️

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 d70db43...5fdbd57. Read the comment docs.

@ktmud
Copy link
Member

ktmud commented Jan 13, 2021

How does it look like when the native filter is expanded?

I filed a related bug report yesterday: #12486

@adam-stasiak
Copy link
Contributor

@ktmud looks lite this:
image

image
looks fine to me.

@agatapst
Copy link
Contributor

agatapst commented Jan 14, 2021

@kkucharc regarding native filters:

  • when Filter Bar is hidden, the sidebar should look the same in Dashboard page and Explore page and it does 👍
    Explore sidebar:
    Zrzut ekranu 2021-01-14 o 09 59 46
    Dashboard sidebar:
    Zrzut ekranu 2021-01-14 o 09 59 35

  • when Filter Bar is open:
    in your PR:
    Zrzut ekranu 2021-01-14 o 10 05 37

master:
Zrzut ekranu 2021-01-14 o 10 00 04

I can see there is bigger distance between Filter Bar and Dashboard in your PR, but in my opinion both versions look just fine. 🙂 If the cost of smaller distance between Native Filter Bar and Dashboard are UI issues in some other component, then I am fine with it.

@junlincc junlincc added v1.0 hold:testing! On hold for testing labels Jan 14, 2021
@junlincc
Copy link
Member

junlincc commented Jan 14, 2021

can we have the icons perfectly centered in the page by adding more padding on the right side? @kkucharc

Screen Shot 2021-01-14 at 8 59 54 AM

Screen Shot 2021-01-14 at 9 01 58 AM

@junlincc junlincc self-requested a review January 14, 2021 17:03
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Code LGTM! Nice and simple. @junlincc 's question is a good one, so I'll leave this open in case you want to increase the gutter between the icons and charts a bit before merging.

@junlincc junlincc removed the v1.0 label Jan 15, 2021
@kkucharc
Copy link
Contributor Author

Thanks @rusackas @junlincc for the test and review. I centered horizontally those icons, rebased and removed IMO redundant (top-bottom) padding. Now it looks like this:
Screenshot 2021-01-15 at 17 47 14

Screenshot 2021-01-15 at 17 47 34

Screenshot 2021-01-15 at 17 52 12

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.

Screen Shot 2021-01-17 at 4 35 09 PM

LGTM, please disregard my last comment. thanks for the fix!

@junlincc junlincc merged commit 4ddb55b into apache:master Jan 18, 2021
@junlincc junlincc added v1.0.1 and removed hold:testing! On hold for testing labels Jan 18, 2021
@mistercrunch mistercrunch added 🍒 1.0.1 🏷️ 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 size/XS v1.0.1 🍒 1.0.1 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Row component handler is truncated
8 participants