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

Query View page design adjustments #4670

Merged
merged 6 commits into from
Feb 24, 2020
Merged

Query View page design adjustments #4670

merged 6 commits into from
Feb 24, 2020

Conversation

gabrieldutra
Copy link
Member

What type of PR is this? (check all applicable)

  • Other

Description

Addresses comments from #4663

[Will write a detailed explanation of what I did while netlify runs]

Related Tickets & Documents

#4663

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Soon

Copy link
Member Author

@gabrieldutra gabrieldutra left a comment

Choose a reason for hiding this comment

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

Comments addressed:

  1. The Data Source and Refresh Schedule fields are unaligned: 👍
  2. The execution status is closer to the lower border than the upper one, need to center it: now the ExecutionStatus is relative to the Footer and has a minHeight of its size, this will make it grow above the footer if necessary (error messages for example)
  3. Mobile header: This one has a lot of changes, I basically rewrote its flexibility (need to clean up outdated markup if we keep in this direction). It won't be 100% as the design, but the behavior now is like in this gif:
    query-header-flexibility
    (Basically it follows the priority of wrapping elements: Tags > Query Title text > Actions (only wrapped in <515px, but Tags can be inline in here too)

One small con from this change IMO is that it will create a sudden change when you edit the Query title (lmk if you want me to explore alternatives to mitigate this), but I'm glad with the behavior as it makes best use of the page height.

To-do:

  • Add margin-top back to the Query Header (noticed in Percy)
  • Reduce Padding on Parameters in Query Editor Page

@@ -244,18 +244,14 @@ text.slicetext {
display: flex;
align-items: center;

h3 {
margin-right: 5px !important;
Copy link
Member Author

@gabrieldutra gabrieldutra Feb 20, 2020

Choose a reason for hiding this comment

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

This was more of a DashboardPage thing, so moved to it.

.label {
margin-top: 3px;
display: inline-block;
}

.favorites-control {
font-size: 19px;
margin-right: 5px;
margin-right: 10px;
Copy link
Member Author

@gabrieldutra gabrieldutra Feb 20, 2020

Choose a reason for hiding this comment

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

This also affects the DashboardPage now, we added those extra 5px on the Query Pages, I thought it should also be in there for consistence, LMK if you think it differently.

@arikfr
Copy link
Member

arikfr commented Feb 24, 2020

One issue I noticed on mobile: charts have some min height which is probably too small:

Screen Shot 2020-02-24 at 11 33 21 AM

Another example:

image

Although to be honest, I'm not sure what the right solution here. Can min-height be calculated?

@gabrieldutra
Copy link
Member Author

@arikfr I think it can be an unrelated bug with Chart as it seems it happened in Angular too:
chart-height-bug
(Showing both React and Angular versions)

Perhaps it's calculating its size too early? (notice that slightly changing the width makes it better fit the space)

@kravets-levko, do you know ath related?

@arikfr arikfr merged commit cdfa102 into master Feb 24, 2020
@kravets-levko
Copy link
Collaborator

I didn't see this issue before. Looks like it's calculating it's size too early, but I have no idea why 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants