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): Remove bar at bottom of dashboard edit sidebar #21807

Merged
merged 7 commits into from
Oct 27, 2022

Conversation

codyml
Copy link
Member

@codyml codyml commented Oct 14, 2022

SUMMARY

This PR removes a bar that was appearing at the bottom of the dashboard edit sidebar. It does some misc cleanup along the way:

  • Removes builder-sidepane.less, which contains a few actively-used styles but is mostly unused styles, and moves the actively-used styles into the relevant component files
  • Replaces use of react-sticky with CSS position: sticky (which seems to now be supported for all of the browsers we're targeting) for the sidebar
  • Removes various styles and props that are now unnecessary because of above changes

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Screen Shot 2022-10-13 at 8 21 07 PM

After:
localhost_9000_superset_dashboard_10__native_filters_key=7nf2YdCXSNoo89wKJp6bQ0tjrlAX2AYcEkPxtZDcKB7rOM5_3bFogSmpuKjZxj1o (1)

TESTING INSTRUCTIONS

  • Check that the bar is gone
  • Check that the Edit sidebar otherwise looks identical
  • Check that the Edit sidebar looks identical in standalone mode (add standalone=1 to the end of the query string)

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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 Oct 14, 2022

Codecov Report

Merging #21807 (16555ff) into master (779d9f7) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master   #21807      +/-   ##
==========================================
- Coverage   66.95%   66.95%   -0.01%     
==========================================
  Files        1807     1807              
  Lines       69196    69186      -10     
  Branches     7402     7399       -3     
==========================================
- Hits        46331    46322       -9     
- Misses      20954    20955       +1     
+ Partials     1911     1909       -2     
Flag Coverage Δ
javascript 53.37% <66.66%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...t-frontend/src/dashboard/components/SliceAdder.jsx 60.27% <50.00%> (-2.40%) ⬇️
...ashboard/components/BuilderComponentPane/index.tsx 66.66% <66.66%> (-9.81%) ⬇️
...d/components/DashboardBuilder/DashboardBuilder.tsx 75.24% <100.00%> (ø)
superset-frontend/src/SqlLab/actions/sqlLab.js 62.85% <0.00%> (-0.20%) ⬇️
...erset-frontend/src/components/Chart/chartAction.js 56.77% <0.00%> (ø)
...et-ui-core/src/connection/callApi/parseResponse.ts 100.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@codyml codyml force-pushed the fix/dashboard-builder branch 2 times, most recently from b5b893a to 1fce4be Compare October 14, 2022 21:56
@stephenLYZ
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@stephenLYZ stephenLYZ left a comment

Choose a reason for hiding this comment

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

Awesome work! I have found some issues:

  1. It looks like layout elements tab has incorrect width:
master current
image image
  1. The shadows on the left do not behave the same as the current master, is this as expected?
master current
image image
  1. It is wired that tab shakes when searching

current:

2022-10-15.11.15.47.mov

master:

2022-10-15.11.17.35.mov

@codyml
Copy link
Member Author

codyml commented Oct 17, 2022

Awesome work! I have found some issues:

@stephenLYZ Oh jeez sorry, those first two were things I thought I fixed and had no idea about the last one – should have double-checked before pushing. Will fix those ASAP.

@stephenLYZ
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

@stephenLYZ
Copy link
Member

It seems weird that the entire page shakes when searching charts. Maybe cause by re-rendering:

2022-10-21.6.48.31.mov

@codyml
Copy link
Member Author

codyml commented Oct 21, 2022

It seems weird that the entire page shakes when searching charts. Maybe cause by re-rendering:

@stephenLYZ Yikes that is strange, thanks for catching. Will see if I can fix.

@codyml
Copy link
Member Author

codyml commented Oct 27, 2022

@stephenLYZ Was finally able to reproduce by making my screen very very large! I couldn't figure out exactly what was causing it but I narrowed it down to something about the ParentSize helper component triggering refreshes. I replaced it with an AutoSizer component that was already part of the react-virtualized library – does it look better on your end?

Before:

Before.mov

After:

After.mov

@stephenLYZ
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@stephenLYZ stephenLYZ left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this!

@stephenLYZ stephenLYZ merged commit 95b4323 into apache:master Oct 27, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 13, 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/L 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants