{"action":"created","issue":{"url":"https://api.github.com/repos/npm/newww/issues/935","labels_url":"https://api.github.com/repos/npm/newww/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/npm/newww/issues/935/comments","events_url":"https://api.github.com/repos/npm/newww/issues/935/events","html_url":"https://github.com/npm/newww/pull/935","id":72545238,"number":935,"title":"first run at fixing painfully slow user profile pages (fixes #854)","user":{"login":"rockbot","id":954269,"avatar_url":"https://avatars.githubusercontent.com/u/954269?v=3","gravatar_id":"","url":"https://api.github.com/users/rockbot","html_url":"https://github.com/rockbot","followers_url":"https://api.github.com/users/rockbot/followers","following_url":"https://api.github.com/users/rockbot/following{/other_user}","gists_url":"https://api.github.com/users/rockbot/gists{/gist_id}","starred_url":"https://api.github.com/users/rockbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockbot/subscriptions","organizations_url":"https://api.github.com/users/rockbot/orgs","repos_url":"https://api.github.com/users/rockbot/repos","events_url":"https://api.github.com/users/rockbot/events{/privacy}","received_events_url":"https://api.github.com/users/rockbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/npm/newww/milestones/2","html_url":"https://github.com/npm/newww/milestones/cleanup","labels_url":"https://api.github.com/repos/npm/newww/milestones/2/labels","id":1076278,"number":2,"title":"cleanup","description":"Tasks for @rockbot and @zeke that emerged from our \"clean and sweep\" spreadsheet audit:\r\n\r\n- [ ] review and close all the issues that should be closed AKA gitception\r\n- [ ] web and cli support tools - this is too broad.\r\n- [ ] www user flows: signup, password reset, billing, etc - https://github.com/npm/newww/issues/283, https://github.com/npm/newww/issues/798, https://github.com/npm/newww/issues/884, \r\nhttps://github.com/npm/newww/issues/283, \r\nhttps://github.com/npm/newww/issues/773, \r\nhttps://github.com/npm/newww/issues/694\r\n- [ ] www module cache invalidation after registry events - https://github.com/npm/newww/issues/902\r\n- [ ] Pagination on www profile pages - https://github.com/npm/newww/issues/854\r\n- [ ] better www display of deprecated and unpublished packages - https://github.com/npm/newww/issues/413 and https://github.com/npm/newww/issues/835\r\n- [ ] update AUTHORS - https://github.com/npm/newww/issues/901\r\n- [ ] update README.md - [PR 882](https://github.com/npm/newww/pull/882) staged; awaits a resolution to [#761](https://github.com/npm/newww/issues/761).\r\n- [ ] user-acl client for www - https://github.com/npm/newww/issues/903","creator":{"login":"zeke","id":2289,"avatar_url":"https://avatars.githubusercontent.com/u/2289?v=3","gravatar_id":"","url":"https://api.github.com/users/zeke","html_url":"https://github.com/zeke","followers_url":"https://api.github.com/users/zeke/followers","following_url":"https://api.github.com/users/zeke/following{/other_user}","gists_url":"https://api.github.com/users/zeke/gists{/gist_id}","starred_url":"https://api.github.com/users/zeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeke/subscriptions","organizations_url":"https://api.github.com/users/zeke/orgs","repos_url":"https://api.github.com/users/zeke/repos","events_url":"https://api.github.com/users/zeke/events{/privacy}","received_events_url":"https://api.github.com/users/zeke/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":9,"state":"open","created_at":"2015-04-21T00:01:55Z","updated_at":"2015-05-04T23:57:12Z","due_on":"2015-05-20T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-05-01T23:18:27Z","updated_at":"2015-05-05T20:54:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/npm/newww/pulls/935","html_url":"https://github.com/npm/newww/pull/935","diff_url":"https://github.com/npm/newww/pull/935.diff","patch_url":"https://github.com/npm/newww/pull/935.patch"},"body":"This still needs tests (will get to it on Monday), but here's the low-down:\r\n\r\n1) I'm now chopping up the package list to 100, and adding more via ajax on user request\r\n2) I've created a template to make adding the packages to the page easier, but had to remove the `truncate` helper function because I'm not sure how to add that back in (can look into it next week, though if @zeke knows, that'd be mega helpful)\r\n3) I'm using a huge button to handle the user-request bits... not sure if a different styling would be better?\r\n\r\nfeedback very much welcome!!"},"comment":{"url":"https://api.github.com/repos/npm/newww/issues/comments/99219080","html_url":"https://github.com/npm/newww/pull/935#issuecomment-99219080","issue_url":"https://api.github.com/repos/npm/newww/issues/935","id":99219080,"user":{"login":"zeke","id":2289,"avatar_url":"https://avatars.githubusercontent.com/u/2289?v=3","gravatar_id":"","url":"https://api.github.com/users/zeke","html_url":"https://github.com/zeke","followers_url":"https://api.github.com/users/zeke/followers","following_url":"https://api.github.com/users/zeke/following{/other_user}","gists_url":"https://api.github.com/users/zeke/gists{/gist_id}","starred_url":"https://api.github.com/users/zeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeke/subscriptions","organizations_url":"https://api.github.com/users/zeke/orgs","repos_url":"https://api.github.com/users/zeke/repos","events_url":"https://api.github.com/users/zeke/events{/privacy}","received_events_url":"https://api.github.com/users/zeke/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T20:54:50Z","updated_at":"2015-05-05T20:54:50Z","body":"I've tested this locally. It works nicely!\r\n\r\nA few thoughts:\r\n\r\n- The button says 'view more packages'. Mentioning the username might help clarify what the button will do: `view more packages by substack`\r\n- The front-end template differs slightly from the one used by the server, in that it doesn't call the `truncate` method on the package name. For a good example of how to make helpers like `truncate` available on the frontend, see [https://github.com/epeli/node-hbsfy#helpers]. Ideally, the server and browser would share the template, as is done with the [templates/partials/collaborator.hbs]([templates/partials/collaborator.hbs]). I've been thinking we should retire `/assets/templates/*.hbs`, and keep *all* templates in `/templates`, but I'm not sure what's best."}}