-
Notifications
You must be signed in to change notification settings - Fork 404
Conversation
@simurai if you like you can take a pass and give our markup and CSS a makeover. We still have to add some logic to convert the date to relative time stamps and grab GitHub avatars based on email addresses. But there's enough for you to work with right now if you wish to :). Otherwise we'll be picking up and adding more on Monday |
lib/views/recent-commits-view.js
Outdated
<span className='github-RecentCommit-message'>{this.props.commit.getMessage()}</span> | ||
<time className='github-RecentCommit-time' | ||
title={this.props.commit.getAuthorDate()}> | ||
1h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the "time ago" format, to keep it narrow as possible, how about this:
<1m, 1m, 1h, 1d, 1w, 1M, 1y
So they are all lower case, except for the month to differentiate from minutes. When hovering and waiting for a bit, the title could show the date like Feb 20, 2018
and maybe without time.
lib/views/recent-commits-view.js
Outdated
return ( | ||
<li className='github-RecentCommit'> | ||
<img className='github-RecentCommit-avatar' | ||
src="https://avatars3.githubusercontent.com/u/7910250?v=4&s=32" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/models/avatar-cache.js
Outdated
@@ -0,0 +1,38 @@ | |||
import {Emitter} from 'event-kit'; | |||
|
|||
const LOADING_AVATAR_URL = 'https://github.com/simurai.png'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simurai: 😇
Think you could replace this with a suitable placeholder that we can show while we're waiting for the real avatar URL to come back from the GitHub API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it could be the same as the default atom://github/img/avatar.svg
avatar: #1322 (comment)
I'll try to add that.
So they fit on a single line
0484626
to
ea46fb3
Compare
Shorter time ago in recent commits
Adding model changes and static markup for the recent commits view.
RFC: #1318
TODO
Nice to have
Animate when commits appearThis is blocked until we have a "add a class only to new commits".Applicable issues
Closes #554