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

[dashboard v2] misc UI fixes, undo redo bug fix #5293

Merged
merged 3 commits into from Jun 26, 2018

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Jun 26, 2018

This PR fixes the following UI issues spotted in the new dashboard builder:

  • adds a check for form_data in the Chart component container to prevent throwing if chart.form_data is undefined

  • fixes a bug where our undo/redo event listeners considered 'z' a control key thus preventing users from adding a z to headers + slice headers 😬

  • removes red from cached data visual indicator and adds a label for the last-fetched time
    before

    after

  • fixes css for SQL lab <Loading /> instance
    before

    after

  • refactors AddSliceCard styles to remove double margin
    before
    screen shot 2018-06-26 at 1 13 54 am

    after

@graceguo-supercat @john-bodley

@codecov-io
Copy link

Codecov Report

Merging #5293 into master will decrease coverage by <.01%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5293      +/-   ##
=========================================
- Coverage    61.3%   61.3%   -0.01%     
=========================================
  Files         368     368              
  Lines       23453   23455       +2     
  Branches     2713    2715       +2     
=========================================
+ Hits        14378   14379       +1     
- Misses       9063    9064       +1     
  Partials       12      12
Impacted Files Coverage Δ
...et/assets/src/dashboard/components/SliceHeader.jsx 39.39% <ø> (ø) ⬆️
...c/dashboard/components/dnd/AddSliceDragPreview.jsx 59.09% <ø> (ø) ⬆️
...uperset/assets/src/SqlLab/components/SouthPane.jsx 88.57% <ø> (ø) ⬆️
.../src/dashboard/components/BuilderComponentPane.jsx 64.86% <ø> (ø) ⬆️
...s/src/dashboard/components/SliceHeaderControls.jsx 37.25% <0%> (-0.49%) ⬇️
.../src/dashboard/components/UndoRedoKeylisteners.jsx 44% <0%> (-1.84%) ⬇️
.../src/dashboard/components/gridComponents/Chart.jsx 82.71% <100%> (ø) ⬆️
...uperset/assets/src/SqlLab/components/ResultSet.jsx 84.84% <100%> (+0.31%) ⬆️
superset/assets/src/dashboard/containers/Chart.jsx 95% <50%> (-5%) ⬇️

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 b0eee12...345f83f. Read the comment docs.

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

LGTM

@williaster williaster merged commit 05a39b3 into apache:master Jun 26, 2018
@williaster williaster changed the title fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border [dashboard v2] misc UI fixes, undo redo bug fix Jun 26, 2018
@williaster williaster deleted the chris--misc-ui-fixes branch June 26, 2018 23:56
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Jun 27, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jul 11, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jul 11, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
timifasubaa pushed a commit to airbnb/superset-fork that referenced this pull request Jul 25, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Jul 26, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Jul 26, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Jul 26, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Jul 27, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Jul 31, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Aug 3, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Aug 3, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Aug 4, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Aug 4, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners

(cherry picked from commit 05a39b3)
mistercrunch pushed a commit that referenced this pull request Aug 12, 2018
…order (#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners
@mistercrunch mistercrunch added 🍒 0.27.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…order (apache#5293)

* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners
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 🍒 0.27.0 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants