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 count container alignment #10179

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Jun 26, 2020

SUMMARY

It looks like this change wasn't wasn't tested for both sides of this feature flag LIST_VIEWS_NEW_UI or the config ENABLE_REACT_CRUD_VIEWS (uncertain how these actually interact with each other)

hopefully we can reach feature parity soon so that we can all migrate to having it True, reducing the complexity of working around this

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Screen Shot 2020-06-26 at 3 15 29 PM

After:
Screen Shot 2020-06-26 at 3 09 53 PM

TEST PLAN

Ensure the row count container is aligned properly

Even after following the instructions from your PR (enabling the feature flag) @nytai, I wasn't able to get the new UI to show up. Could you direct me how to test that this works with the new styling?

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

to: @nytai @graceguo-supercat @ktmud

@etr2460 etr2460 changed the title fit: row count container alignment fix: row count container alignment Jun 26, 2020
@etr2460 etr2460 force-pushed the erik-ritter--fix-row-count-container branch from 887e810 to 43a6500 Compare June 26, 2020 22:32
Copy link
Member

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

@nytai
Copy link
Member

nytai commented Jun 26, 2020

@etr2460 The LIST_VIEWS_NEW_UI refers to some changes in the listview filters, it's unrelated to this change. Sorry for the confusing name, it should be USE_NEW_FILTER_UI or something similar. Both charts, dashboards, and datasets have the new UI under ENABLE_REACT_CRUD_VIEWS, which makes the tables full width, hence the absolute positioning on the row count. Looks like I missed checking the welcome page which is also using the ListView component.

The way to fix this is to either make the welcome page full-width or go back to the float: right styling that was in place before (which should mostly be the same)

@@ -134,6 +134,10 @@
}

.row-count-container {
float: right;
Copy link
Member

Choose a reason for hiding this comment

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

let's just change this to

float: right;
margin-right: 20px;

which should be enough to make this look OK on both the /superset/welcome and the /tablemodelview/list/ pages with ENABLE_REACT_CRUD_VIEWS flag enabled. The LIST_VIEWS_NEW_UI flag is only related to the filters ui, you can update it to LIST_VIEWS_NEW_FILTER_UI to be more semantically correct if you're up for it.

@etr2460 etr2460 force-pushed the erik-ritter--fix-row-count-container branch from 43a6500 to 0b98b3e Compare June 26, 2020 22:56
@etr2460 etr2460 merged commit 8bdc6b1 into apache:master Jun 26, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.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 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants