{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/8631","repository_url":"https://api.github.com/repos/zulip/zulip","labels_url":"https://api.github.com/repos/zulip/zulip/issues/8631/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/8631/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/8631/events","html_url":"https://github.com/zulip/zulip/issues/8631","id":303673071,"number":8631,"title":"right sidebar: Show last active time more prominently.","user":{"login":"rishig","id":890911,"avatar_url":"https://avatars2.githubusercontent.com/u/890911?v=4","gravatar_id":"","url":"https://api.github.com/users/rishig","html_url":"https://github.com/rishig","followers_url":"https://api.github.com/users/rishig/followers","following_url":"https://api.github.com/users/rishig/following{/other_user}","gists_url":"https://api.github.com/users/rishig/gists{/gist_id}","starred_url":"https://api.github.com/users/rishig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishig/subscriptions","organizations_url":"https://api.github.com/users/rishig/orgs","repos_url":"https://api.github.com/users/rishig/repos","events_url":"https://api.github.com/users/rishig/events{/privacy}","received_events_url":"https://api.github.com/users/rishig/received_events","type":"User","site_admin":false},"labels":[{"id":461209244,"url":"https://api.github.com/repos/zulip/zulip/labels/area:%20right-sidebar","name":"area: right-sidebar","color":"bfd4f2","default":false},{"id":273621476,"url":"https://api.github.com/repos/zulip/zulip/labels/good%20first%20issue","name":"good first issue","color":"bfe5bf","default":true},{"id":265216832,"url":"https://api.github.com/repos/zulip/zulip/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-08T23:40:38Z","updated_at":"2018-04-02T01:02:46Z","closed_at":null,"author_association":"COLLABORATOR","body":"A lot of chat clients prominently show \"last online\" times for users, which I think is quite useful. To start, we can put it in the user popover, at the bottom of this section:\r\n![image](https://user-images.githubusercontent.com/890911/37182316-88cf6c8a-22e5-11e8-93ee-649a68a016ea.png)\r\nI would replace the local time line with `Local time: 03:29 PM`, and then add `Last online: 44 minutes ago` below that.\r\n\r\nFor the text: let's do something like\r\n< 1 minute ago\r\n1 minute ago, 2 minutes ago, .., 59 minutes ago\r\n1 hour ago, 2 hours ago, .., 23 hours ago\r\nyesterday, 2 days ago, .., 6 days ago\r\nMar 1, Apr 30, ..\r\nDec 31, 2017, ..\r\n\r\nThere is likely already a similar function in timerender.js, that would be best to use and/or extend. \r\n\r\n----\r\nAs follow-up to this, it would be great to add this to the hover on the right sidebar. The title text can be \"Online and active\" for green, \"Online\" for orange, and \"Last online: 44 minutes ago\" for white. \r\n"},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/377831210","html_url":"https://github.com/zulip/zulip/issues/8631#issuecomment-377831210","issue_url":"https://api.github.com/repos/zulip/zulip/issues/8631","id":377831210,"user":{"login":"alexisopsasnick","id":16869336,"avatar_url":"https://avatars2.githubusercontent.com/u/16869336?v=4","gravatar_id":"","url":"https://api.github.com/users/alexisopsasnick","html_url":"https://github.com/alexisopsasnick","followers_url":"https://api.github.com/users/alexisopsasnick/followers","following_url":"https://api.github.com/users/alexisopsasnick/following{/other_user}","gists_url":"https://api.github.com/users/alexisopsasnick/gists{/gist_id}","starred_url":"https://api.github.com/users/alexisopsasnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexisopsasnick/subscriptions","organizations_url":"https://api.github.com/users/alexisopsasnick/orgs","repos_url":"https://api.github.com/users/alexisopsasnick/repos","events_url":"https://api.github.com/users/alexisopsasnick/events{/privacy}","received_events_url":"https://api.github.com/users/alexisopsasnick/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T01:02:46Z","updated_at":"2018-04-02T01:02:46Z","author_association":"NONE","body":"@zulipbot claim"}}
{"actor":{"display_login":"alexisopsasnick"}}