{"action":"created","issue":{"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1797","repository_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard","labels_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1797/labels{/name}","comments_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1797/comments","events_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1797/events","html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1797","id":305133402,"number":1797,"title":"Change upload table to photo gallery layout ","user":{"login":"yunjuc","id":18255878,"avatar_url":"https://avatars2.githubusercontent.com/u/18255878?v=4","gravatar_id":"","url":"https://api.github.com/users/yunjuc","html_url":"https://github.com/yunjuc","followers_url":"https://api.github.com/users/yunjuc/followers","following_url":"https://api.github.com/users/yunjuc/following{/other_user}","gists_url":"https://api.github.com/users/yunjuc/gists{/gist_id}","starred_url":"https://api.github.com/users/yunjuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yunjuc/subscriptions","organizations_url":"https://api.github.com/users/yunjuc/orgs","repos_url":"https://api.github.com/users/yunjuc/repos","events_url":"https://api.github.com/users/yunjuc/events{/privacy}","received_events_url":"https://api.github.com/users/yunjuc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T12:12:53Z","updated_at":"2018-03-14T19:18:44Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/pulls/1797","html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1797","diff_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1797.diff","patch_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1797.patch"},"body":"This is an improvement of issue [#1284](https://github.com/WikiEducationFoundation/WikiEduDashboard/issues/1284)\r\n\r\n**Updates**\r\n* \"Uploads\" table is replaced with photo gallery layout - mouse over will show image usage (no display if is 0), username, filename. No table header, need to add sort/filter functions to the top handler as next step **-- upload.jsx, upload_list.jsx, _uploads.styl --**\r\n* Replace \"Uploads\" sorting option 'Filename' with \"Date/time\" - filename is usually random and doesn't provide much added value. Date/time is more meaningful. **-- upload_handler, jsx --**\r\n* \"Recent Uploads\" table is replaced with the same layout - one minor difference than \"Uploads\", username is clickable and links to user profile (I didn't implement it but think it's a nice feature). No sort/filter handler, need to add it as next stop. **-- upload_table.jsx --**\r\n\r\n\r\n*Demo 1*\r\n![ezgif-2-cd2099c97e](https://user-images.githubusercontent.com/18255878/37401406-2a5119f6-2745-11e8-9b3a-12b9da5a79f7.gif)\r\n\r\n\r\n*Demo 2*\r\n![ezgif-2-86e571e023](https://user-images.githubusercontent.com/18255878/37401572-ba619912-2745-11e8-9622-03fe15eb0e6e.gif)\r\n\r\n\r\n**Need Review/Discussion**\r\n* **upload_list.jsx, upload_table.jsx** - some codes are commented out, need to check if they are not needed anymore.\r\n* **upload_handler.jsx, recent_upload_handler.jsx** - some code may not needed anymore, need check and clean up.\r\n* Do we want to show photo info (usage, username, filename) by default? - pro: information is available at first glance, no further step to reveal information, con - less interactive  (perhaps I can use another color layer for mouse over interaction)\r\n\r\n*Show image info by default*\r\n![screen shot 2018-03-14 at 5 09 51 am](https://user-images.githubusercontent.com/18255878/37401644-ffedf7c8-2745-11e8-857a-91ceb0489b7d.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/comments/373143465","html_url":"https://github.com/WikiEducationFoundation/WikiEduDashboard/pull/1797#issuecomment-373143465","issue_url":"https://api.github.com/repos/WikiEducationFoundation/WikiEduDashboard/issues/1797","id":373143465,"user":{"login":"ragesoss","id":848483,"avatar_url":"https://avatars0.githubusercontent.com/u/848483?v=4","gravatar_id":"","url":"https://api.github.com/users/ragesoss","html_url":"https://github.com/ragesoss","followers_url":"https://api.github.com/users/ragesoss/followers","following_url":"https://api.github.com/users/ragesoss/following{/other_user}","gists_url":"https://api.github.com/users/ragesoss/gists{/gist_id}","starred_url":"https://api.github.com/users/ragesoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ragesoss/subscriptions","organizations_url":"https://api.github.com/users/ragesoss/orgs","repos_url":"https://api.github.com/users/ragesoss/repos","events_url":"https://api.github.com/users/ragesoss/events{/privacy}","received_events_url":"https://api.github.com/users/ragesoss/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T19:18:44Z","updated_at":"2018-03-14T19:18:44Z","author_association":"OWNER","body":"BTW, I added a script to populate the database with some example data. If you pull down the latest version, you can run `rake dev:populate`, then `rake batch:update_constantly` and `rake batch:update_daily`. It takes a few minutes, and you should end up with most of these same photos in some example courses.\r\n\r\nYou may want to do `rake db:reset` first to clear out your database, if it's got enough courses that the updates take too long."}}
{"actor":{"display_login":"ragesoss"}}