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: Fixes top level tabs and automatic scroll #14624

Merged
merged 1 commit into from
May 14, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes top-level tabs and automatic page scrolling.

@rusackas @junlincc

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

screen-recording-2021-05-13-at-15808-pm_OMxmjv4u.mov
screen-recording-2021-05-13-at-15125-pm_ujYbgYUg.mov

TEST PLAN

1 - Edit a dashboard
2 - Check that you can add a top-level tab

1 - Edit a dashboard with vertical scrolling
2 - Go to the bottom of the page
3 - Drag and hold a tab to the dashboard title
4 - The automatic scroll is activated
5 - Drop the tab on the main menu of Superset
6 - Scroll down
7 - The automatic scroll should have been disabled

ADDITIONAL INFORMATION

  • Has associated issue:
  • 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 May 13, 2021

Codecov Report

Merging #14624 (d4da270) into master (3f6bd1e) will decrease coverage by 0.00%.
The diff coverage is 40.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14624      +/-   ##
==========================================
- Coverage   77.38%   77.38%   -0.01%     
==========================================
  Files         959      959              
  Lines       48465    48474       +9     
  Branches     5678     5683       +5     
==========================================
+ Hits        37506    37510       +4     
- Misses      10759    10763       +4     
- Partials      200      201       +1     
Flag Coverage Δ
javascript 72.49% <40.90%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...d/components/DashboardBuilder/DashboardBuilder.tsx 86.95% <0.00%> (ø)
...ontend/src/dashboard/components/dnd/handleHover.js 9.09% <0.00%> (-2.03%) ⬇️
...set-frontend/src/dashboard/util/getDropPosition.js 82.53% <ø> (+0.72%) ⬆️
...src/dashboard/components/dnd/handleScroll/index.ts 65.21% <52.94%> (-8.12%) ⬇️
...-frontend/src/visualizations/presets/MainPreset.js 0.00% <0.00%> (ø)
...plore/components/controls/OptionControls/index.tsx 90.52% <0.00%> (ø)
...controls/FilterControl/AdhocFilterOption/index.jsx 100.00% <0.00%> (ø)
...onents/controls/FilterControl/AdhocFilter/index.js 97.01% <0.00%> (+0.09%) ⬆️

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 3f6bd1e...d4da270. Read the comment docs.

@junlincc
Copy link
Member

/testenv up

@junlincc junlincc added the bash! label May 13, 2021
@github-actions
Copy link
Contributor

@junlincc Ephemeral environment spinning up at http://54.186.235.114:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link

@junlin-qa junlin-qa 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 fix!

Might be related to this PR
the top level tab cant be edited name after added

Unrelated to this PR
when user drag and drop a new tab component to a dashboard with multiple existing tabs all the existing tabs are replaced. i will file a separate issue

@junlincc junlincc added need:review Requires a code review validation:required A committer should validate the issue and removed need:review Requires a code review labels May 13, 2021
@rusackas rusackas requested a review from suddjian May 14, 2021 06:08
Copy link
Member

@pkdotson pkdotson left a comment

Choose a reason for hiding this comment

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

LGTM!

@suddjian suddjian merged commit 9cb4a46 into apache:master May 14, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@junlincc junlincc added the rush! Requires immediate attention label May 18, 2021
henryyeh pushed a commit to preset-io/superset that referenced this pull request May 18, 2021
@junlincc junlincc removed the rush! Requires immediate attention label May 27, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.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/M validation:required A committer should validate the issue 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants