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(dashboard): dropdown indicator in dashboard tabs has proper width and position #12584

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

kkucharc
Copy link
Contributor

@kkucharc kkucharc commented Jan 18, 2021

SUMMARY

Dropdown indicators were moved several pixels to various direction (depending on indicator's area).

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Large GIF (1068x574)

After:
Large GIF (1068x574)

After with open native filters:
Large GIF (1068x574)

TEST PLAN

  1. Go to dashboards
  2. Choose a dashboard (can be Tabbed Dashboard
  3. Go to edit mode
  4. Add chart (or markdown) to the tabs area

ADDITIONAL INFORMATION

@junlincc junlincc added dashboard:editmode Related to te Dashboard edit mode hold:testing! On hold for testing labels Jan 18, 2021
@kkucharc
Copy link
Contributor Author

@kgabryje can you take a look? I changed styles added by you.

@adam-stasiak would you find some time for testing?

@junlincc junlincc requested review from junlincc and rusackas January 18, 2021 17:47
@codecov-io
Copy link

codecov-io commented Jan 18, 2021

Codecov Report

Merging #12584 (2355eb7) into master (0f243c6) will decrease coverage by 4.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12584      +/-   ##
==========================================
- Coverage   66.75%   62.48%   -4.27%     
==========================================
  Files        1015     1015              
  Lines       49634    49611      -23     
  Branches     4839     4839              
==========================================
- Hits        33131    30999    -2132     
- Misses      16380    18414    +2034     
- Partials      123      198      +75     
Flag Coverage Δ
cypress ?
javascript 60.73% <ø> (-0.01%) ⬇️
python 63.63% <ø> (-0.33%) ⬇️

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

Impacted Files Coverage Δ
...d/src/dashboard/components/gridComponents/Tabs.jsx 61.90% <ø> (-13.10%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/reducers/index.js 0.00% <0.00%> (-100.00%) ⬇️
...et-frontend/src/dashboard/containers/Dashboard.jsx 0.00% <0.00%> (-100.00%) ⬇️
...et-frontend/src/filters/components/Select/types.ts 0.00% <0.00%> (-100.00%) ⬇️
...t-frontend/src/dashboard/containers/SliceAdder.jsx 0.00% <0.00%> (-100.00%) ⬇️
...t-frontend/src/explore/reducers/getInitialState.js 0.00% <0.00%> (-100.00%) ⬇️
... and 194 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 0f243c6...2355eb7. Read the comment docs.

@junlincc junlincc added v1.0.1 need:design-review Requires input/approval from a Designer labels Jan 18, 2021
@kgabryje
Copy link
Member

@kkucharc I'm not sure what was the goal of adding these styles, but if everything still works (and works better 🙂) then LGTM!

@junlincc junlincc changed the title fix: dropdown indicator in dashboard tabs has proper width and position fix(dashboard): dropdown indicator in dashboard tabs has proper width and position Jan 19, 2021
@ktmud
Copy link
Member

ktmud commented Jan 19, 2021

Could you also make sure to test when native filters are disabled?

@kkucharc
Copy link
Contributor Author

Here gif when native filters are disabled:
Large GIF (1150x658)
But let's wait for @adam-stasiak tests :)

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!
In chrome, it works better. but still lots of other issues in Firefox.
@rusackas im not sure if we should continue to invest in adding more bandaids trying to dashboard UX or starting looking for a more long term solution. wdyt?

@junlincc junlincc removed the need:design-review Requires input/approval from a Designer label Jan 20, 2021
@adam-stasiak
Copy link
Contributor

Looks good to me 🟢 :
With Native filters:

Nagranie.z.ekranu.2021-01-20.o.22.44.53.mov

Without:

Nagranie.z.ekranu.2021-01-20.o.22.45.50.mov

@ktmud ktmud merged commit b592165 into apache:master Jan 20, 2021
villebro pushed a commit that referenced this pull request Jan 25, 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 dashboard:editmode Related to te Dashboard edit mode hold:testing! On hold for testing size/S v1.0.1 🍒 1.0.1 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants