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

[ZEPPELIN-2388] Improve the keyboard shortcuts dialog #2274

Closed
wants to merge 3 commits into from

Conversation

soralee
Copy link
Contributor

@soralee soralee commented Apr 21, 2017

What is this PR for?

This PR is for Improving the keyboard shortcuts dialog form and here is what i improve.

  • change to table shape
  • add scrollbar
  • fixed that text is misaligned when resizing windows

What type of PR is it?

[Bug fix | Improvement]

What is the Jira issue?

How should this be tested?

  1. Click `Keyboard Shortcuts' icon in a paragraph.
  2. Check Keyboard Shortcuts shape.
  3. Check resizing windows.

Screenshots (if appropriate)

[Before - 1. default]

old_keyboard_shortcut

[Before - 2. text is misaligned when resizing windows]

broken_shortcuts

[Before - 3. not scrollbar]

need_scrollbar

[After - 1. default]

new_keboard_shortcuts

[After - 2. resizing windows (my image is a little broken.)]

resizing_shortcut

Last improvement dialog shape

image

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@soralee
Copy link
Contributor Author

soralee commented Apr 21, 2017

@1ambda @Leemoonsoo Could you guys review this PR, please?

@1ambda
Copy link
Member

1ambda commented Apr 21, 2017

really great improvement! let me test and comment soon!

min-height: 16.428571429px;
padding: 15px;
border-bottom: 1px solid #9cb4c5;
background-color: #3071a9;
Copy link
Member

@1ambda 1ambda Apr 21, 2017

Choose a reason for hiding this comment

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

What about adding border-top-left-radius and *-right-radius here since modal content has border-radius

image

image

}

.kbd-white {
color: #777777;
Copy link
Member

@1ambda 1ambda Apr 21, 2017

Choose a reason for hiding this comment

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

it would be nice remove color in .kdb-white, since it's hard to recognize.

Before

image

After (removing color)

image

@@ -15,292 +15,297 @@
<div class="modal fade" id="shortcutModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<div class="shortcut-modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
Copy link
Member

Choose a reason for hiding this comment

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

Can we make x button more visible?

image

image

}

.shortcut-modal-title {
color: white;
Copy link
Member

@1ambda 1ambda Apr 21, 2017

Choose a reason for hiding this comment

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

I think, it's better to add margin-top: 2px, margin-bottom: 2px (or 3px)since it takes too much space. (it's just title).

Copy link
Member

Choose a reason for hiding this comment

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

Before

image

After

image

background-color: #d6dde7;
border-color: 1px solid #9cb4c5;
color: #337ab7;
font-size: 14px !important;
Copy link
Member

@1ambda 1ambda Apr 21, 2017

Choose a reason for hiding this comment

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

Can we adjust font-weight for each divider? For example font-weight: 500 since it's thick as must as the dialog title

Before

image

After

image

.table-shortcut > tbody > tr > th {
background-color: #d6dde7;
border-color: 1px solid #9cb4c5;
color: #337ab7;
Copy link
Member

@1ambda 1ambda Apr 21, 2017

Choose a reason for hiding this comment

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

(MINOR) LINE 265: Let's try color: #383a3c (deep gray color)

Before

image

After

image

@felixcheung
Copy link
Member

awesome!

@soralee
Copy link
Contributor Author

soralee commented Apr 22, 2017

Thank you @1ambda @felixcheung for seeing this!
Yeah, I like @1ambda's opinions! Let me update those as @1ambda's comments.

@tae-jun
Copy link
Contributor

tae-jun commented Apr 22, 2017

Cool! Significantly better than before 😄

@soralee
Copy link
Contributor Author

soralee commented Apr 23, 2017

Thanks @tae-jun for seeing 🙂
And, @1ambda I updated this as your comments!
image

Could you review again, please?

@1ambda
Copy link
Member

1ambda commented Apr 23, 2017

LGTM!!!

@felixcheung
Copy link
Member

great - just my preference - I actually like the tighter spacing and without line separator look better...

@soralee
Copy link
Contributor Author

soralee commented Apr 24, 2017

@felixcheung Thanks for your opinion 👍
Let me update this like your describe!

@soralee
Copy link
Contributor Author

soralee commented Apr 24, 2017

I updated as @felixcheung suggestion such as the following screenshot!
Could @felixcheung check it again, please?
image

@felixcheung
Copy link
Member

felixcheung commented Apr 24, 2017 via email

@khalidhuseynov
Copy link
Contributor

very nice! LGTM

@1ambda
Copy link
Member

1ambda commented May 4, 2017

need to be rebased to make CI green.

@soralee soralee force-pushed the ZEPPELIN-2388_shortcut_key branch from 7751758 to ff0a3ad Compare May 8, 2017 02:22
@soralee
Copy link
Contributor Author

soralee commented May 8, 2017

@1ambda Thanks, I did.

@soralee soralee force-pushed the ZEPPELIN-2388_shortcut_key branch from ff0a3ad to d77f6ac Compare May 8, 2017 08:17
@soralee
Copy link
Contributor Author

soralee commented May 10, 2017

CI failed but irrelevant.

Tests in error: 
  SecurityRestApiTest.testGetUserList:69 » JsonSyntax java.lang.IllegalStateExce...
  SecurityRestApiTest.testTicket:55 » JsonSyntax java.lang.IllegalStateException...

@1ambda
Copy link
Member

1ambda commented May 10, 2017

LGTM.

@soralee soralee force-pushed the ZEPPELIN-2388_shortcut_key branch from d77f6ac to 2428787 Compare May 12, 2017 04:23
@soralee
Copy link
Contributor Author

soralee commented May 12, 2017

Ping!

@Leemoonsoo
Copy link
Member

LGTM and merge to master if no further comments

@asfgit asfgit closed this in 8056bc9 May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants