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: adjusted tab height #13822

Merged
merged 7 commits into from
Apr 2, 2021
Merged

fix: adjusted tab height #13822

merged 7 commits into from
Apr 2, 2021

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Mar 26, 2021

SUMMARY

The scroll bar on query history disappeared based on a redesign that we did for the results page to add rows returned.

I adjusted the tab height of rows returned, in order to not have a scroll appear there, and added the scroll back to query history.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

after:
Screen Shot 2021-03-26 at 4 09 45 PM

TEST PLAN

Manually checked this through docker to make sure that the portions that invoke the component work as expected.

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

@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #13822 (d5ed0be) into master (db1d598) will increase coverage by 1.52%.
The diff coverage is 83.21%.

❗ Current head d5ed0be differs from pull request most recent head bf720a0. Consider uploading reports for the commit bf720a0 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13822      +/-   ##
==========================================
+ Coverage   76.81%   78.33%   +1.52%     
==========================================
  Files         934      934              
  Lines       47249    47350     +101     
  Branches     5892     5948      +56     
==========================================
+ Hits        36294    37092     +798     
+ Misses      10808    10114     -694     
+ Partials      147      144       -3     
Flag Coverage Δ
cypress 56.03% <64.77%> (+2.94%) ⬆️
javascript 66.28% <63.82%> (+2.54%) ⬆️

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

Impacted Files Coverage Δ
...tend/src/SqlLab/components/ScheduleQueryButton.tsx 28.12% <ø> (ø)
...frontend/src/components/Checkbox/CheckboxIcons.tsx 85.71% <ø> (ø)
...frontend/src/components/DatabaseSelector/index.tsx 92.70% <ø> (+1.04%) ⬆️
superset-frontend/src/components/Icon/index.tsx 100.00% <ø> (ø)
superset-frontend/src/components/Loading/index.tsx 100.00% <ø> (ø)
...rset-frontend/src/components/ProgressBar/index.tsx 100.00% <ø> (ø)
...ontend/src/components/URLShortLinkButton/index.jsx 100.00% <ø> (ø)
...src/dashboard/components/dnd/handleScroll/index.ts 73.33% <ø> (ø)
...src/dashboard/components/filterscope/treeIcons.jsx 100.00% <ø> (ø)
...erset-frontend/src/datasource/DatasourceEditor.jsx 65.82% <0.00%> (ø)
... and 143 more

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 db1d598...bf720a0. Read the comment docs.

@betodealmeida
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@betodealmeida Ephemeral environment creation is currently limited to committers.

@junlincc
Copy link
Member

junlincc commented Mar 27, 2021

/testenv up

@betodealmeida ⬇️

@github-actions
Copy link
Contributor

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

@junlincc
Copy link
Member

junlincc commented Mar 27, 2021

Thanks for the PR!

  1. can we add Before vs After screenshot, and manual test plan to the descprtion?
  2. might not be related to the changes in the PR, but please see attached screenshot of the disconnected dropdown

Screen Shot 2021-03-26 at 9 02 18 PM

cc @eschutho

@AAfghahi
Copy link
Member Author

@junlincc hey! Thank you! I added before shots.

I will happily look into that, thank you for bringing it up.

@yousoph
Copy link
Member

yousoph commented Mar 29, 2021

I think #2 isn't related to this fix, I'm seeing it on master already. Created a separate ticket here: #13842

@AAfghahi
Copy link
Member Author

@yousoph and @junlincc played around with it today, I know why it exists, working on fix now.

.ant-progress-outer {
${({ percent }) => !percent && `display: none;`}
}
.ant-progress-text {
font-size: ${({ theme }) => theme.typography.sizes.s}px;
}
.ant-progress-bg {
position: inherit;
Copy link
Member

@eschutho eschutho Mar 29, 2021

Choose a reason for hiding this comment

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

curious, do you know specifically what this value should be? It would be better to be more explicit if you can on these three position values.

Copy link
Member Author

@AAfghahi AAfghahi Mar 29, 2021

Choose a reason for hiding this comment

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

no, I don't but I can test it. I think it should probably be absolute or inline-block. That's a very good point, I'll fix it tonight.

Copy link
Member Author

Choose a reason for hiding this comment

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

@eschutho it was static!

Copy link
Member

Choose a reason for hiding this comment

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

great!

@junlincc
Copy link
Member

I think #2 isn't related to this fix, I'm seeing it on master already. Created a separate ticket here: #13842

is regression caused by #13694

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

code lgtm. I haven't done any visual testing.

@eschutho
Copy link
Member

🏷 hold:testing!

@junlincc junlincc added the hold:testing! On hold for testing label Mar 31, 2021
@@ -33,7 +33,8 @@ import {
LOCALSTORAGE_MAX_QUERY_AGE_MS,
} from '../../constants';

const TAB_HEIGHT = 64;
const TAB_HEIGHT = 90;
const RESULTS_TAB_HEIGHT = TAB_HEIGHT - 10;
Copy link
Member

@eschutho eschutho Apr 2, 2021

Choose a reason for hiding this comment

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

nice catch to make this a variable. But are they really related? Or is it just coincidence that they are 10 pixels apart? If they are separate, I would just say RESULTS_TAB_HEIGHT = 80;

Copy link
Member Author

@AAfghahi AAfghahi Apr 2, 2021

Choose a reason for hiding this comment

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

@eschutho I was wondering about that. Originally they were the same height, so I thought that they might be related, so that's why I had them work this way, so you only need to change one variable.

Copy link
Member Author

Choose a reason for hiding this comment

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

Functionally they are not related though

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

Another option is to make the tab heights the same. @Steejay what do you think about that?

@AAfghahi
Copy link
Member Author

AAfghahi commented Apr 2, 2021

@eschutho Scratch that, I checked it with the same tab height, and it looks better and is cleaner. TY

@eschutho
Copy link
Member

eschutho commented Apr 2, 2021

Looks good! @Steejay if interested, here's a video.

Screen.Recording.2021-04-02.at.9.25.43.AM.mov

@hughhhh hughhhh merged commit 4187d9e into apache:master Apr 2, 2021
@hughhhh hughhhh deleted the queryScroll branch April 2, 2021 16:44
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2021

Ephemeral environment shutdown and build artifacts deleted.

henryyeh pushed a commit to preset-io/superset that referenced this pull request Apr 6, 2021
lyndsiWilliams pushed a commit to preset-io/superset that referenced this pull request Apr 7, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.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 hold:testing! On hold for testing size/S 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants