Skip to content

Do some UI polish - #355

Merged
niik merged 28 commits into
masterfrom
polish-ambassador
Sep 16, 2016
Merged

niik merged 28 commits into
masterfrom
polish-ambassador

Conversation

@donokuda

Copy link
Copy Markdown
Contributor

Did a little polish pass tightening up some spacing and tweaking some UI stuff.

Before
screen shot 2016-09-13 at 11 38 55 am
screen shot 2016-09-13 at 11 38 46 am

After
screen shot 2016-09-13 at 11 36 45 am
screen shot 2016-09-13 at 11 36 38 am
screen shot 2016-09-13 at 11 36 26 am
screen shot 2016-09-13 at 11 36 05 am

What's changed?

  • Tightened up the repo list. Now you can see more repos in the side bar
  • Updated the group name from bold to all caps. Also lowered the contrast trying to make it a little more obvious it's a group title.
  • Moved up the tab-bar on MacOS so there's less white space above and tweaked the style slightly.
  • Tightened up the commit list and added lines to separate each item (keeping it consistent with the file list)
  • Moved commit description under the title. The description felt like it was blending with the changed files list.
  • Added some drop shadows to make the header pop more.
  • Made the comparison graph placehodler less jarring

A lot of this is fairly subjective so I'm open to discussion if there are better ideas and approaches.

@donokuda

Copy link
Copy Markdown
Contributor Author

cc @niik for 👀 and 💭

@joshaber

Copy link
Copy Markdown
Contributor

😍

@niik

niik commented Sep 14, 2016

Copy link
Copy Markdown
Member

@donokuda I'm sorry, I didn't get to this today. It'll be on my list for a thorough look tomorrow but for now I'll just say that of the things you listed the only thing that gives me pause is the all caps group headers. I'm really not a fan of all-caps and I would love to see if we can avoid it in TNG. If it's an osx idiom them perhaps we should look into putting it behind a conditional.

Anyway, I'll think more and give better feedback in the morning

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great stuff @donokuda. I have a few comments in the code and two things up for discussion here.

Shadows and depth

We're primarily a flat interface and I think we should use depth to convey something rather than just as decoration. On Windows we used shadows to indicate when content was being scrolled underneath (see gif below) and I thought that worked really well.

It's probably because I'm used to the ghfw behavior but the shadows in the file list feels.. wrong, especially the shadow at the bottom

image

Moving the commit message to directly under the title

We talked about this at summit and it's a tricky one and I'm going back and forth on it. Putting it underneath the author line lets us keep the title and author information when scrolling, like on ghfw:

long-message

Note the shadow divider which appears when scrolling, indicating the relative depth between the controls.

What's your plan for solving it if we move it up to underneath the title? Should we make just the title be the sticky header or should we cap the height of the message and scroll that separately from the list?

Comment thread app/src/ui/repositories-list/index.tsx Outdated
}

const RowHeight = 42
const RowHeight = 28

This comment was marked as spam.


--text-color: $darkGray;
--background-color: $white;
--alt-background-color: $lightGray;

This comment was marked as spam.

Comment thread app/styles/ui/_repository-list.scss Outdated
opacity: 0.6;
padding: 0 5px 0 20px;
font-weight: bold;
text-transform: uppercase;

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/styles/ui/_commit-summary.scss Outdated
list-style: none;
margin: 0;
padding: 0;
padding: 0 10px 10px;

This comment was marked as spam.

Comment thread app/styles/ui/_commit-summary.scss Outdated

&-description {
font-family: var(--font-family-monospace);
font-size: 11px;

This comment was marked as spam.

This comment was marked as spam.

overflow: hidden;
margin: auto 0;
margin-left: 4px;
margin-left: var(--spacing);

This comment was marked as spam.

Comment thread app/styles/ui/_sidebar.scss Outdated
// See _variables.scss for documentation on the variables themselves.
--text-color: #ccc;
--font-size: 12px;
--text-color: #eee;

This comment was marked as spam.

This comment was marked as spam.

Comment thread app/styles/ui/_sidebar.scss Outdated
//
// See _variables.scss for documentation on the variables themselves.
--text-color: #ccc;
--font-size: 12px;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

width: 48px;
height: 48px;
width: 32px;
height: 32px;

This comment was marked as spam.

This comment was marked as spam.

@donokuda

Copy link
Copy Markdown
Contributor Author

We're primarily a flat interface and I think we should use depth to convey something rather than just as decoration. On Windows we used shadows to indicate when content was being scrolled underneath (see gif below) and I thought that worked really well.

It's probably because I'm used to the ghfw behavior but the shadows in the file list feels.. wrong, especially the shadow at the bottom

I added the shadow to the header and bottom so that the list doesn't blend in if the background color of the selected list item is the same gray. I feel like the shadow for the "x files changed" div helps the affordance that this is a header for the list below. However, I don't think removing it will hinder UX.

Some beautiful 1x screenshots:
(With header shadow only)
image

(No shadow)
image

In the meantime, I've 🔥 the dropshadows in 60266e0

@donokuda

Copy link
Copy Markdown
Contributor Author

We talked about this at summit and it's a tricky one and I'm going back and forth on it.

Yeah, I kept going back and forth on that as well. I think it's better to go with our original plan and move it between the header and list of files. The only thing I think we need is to be able to add it to the list of files.

commit-summary

@donokuda

Copy link
Copy Markdown
Contributor Author

🎾 for another look and 💭

@niik

niik commented Sep 16, 2016

Copy link
Copy Markdown
Member

I added the shadow to the header and bottom so that the list doesn't blend in if the background color of the selected list item is the same gray. I feel like the shadow for the "x files changed" div helps the affordance that this is a header for the list below. However, I don't think removing it will hinder UX.

Yeah, I definitely see where you're coming from. This seems like a great thing to put on our list for our October design hangs.

@niik
niik merged commit a3dd448 into master Sep 16, 2016
@niik
niik deleted the polish-ambassador branch September 16, 2016 13:40
@niik

niik commented Sep 16, 2016

Copy link
Copy Markdown
Member

j3be1nj

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