{"action":"created","comment":{"url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/comments/62491804","id":62491804,"diff_hunk":"@@ -0,0 +1,47 @@\n+import AbstractIndexRoute from 'hospitalrun/routes/abstract-index-route';\n+\n+import { translationMacro as t } from 'ember-i18n';\n+export default AbstractIndexRoute.extend({\n+  pageTitle: t('admin.textrepl.page_title'),\n+  hideNewButton: true,\n+\n+  model: function() {\n+    const store = this.get('store');\n+    store.findAll('text-expansion');","path":"app/admin/textrepl/route.js","position":10,"original_position":10,"commit_id":"a370c680086ee73b2c10cebd99d2aaf6958c4dbc","original_commit_id":"a370c680086ee73b2c10cebd99d2aaf6958c4dbc","user":{"login":"billybonks","id":1640136,"avatar_url":"https://avatars.githubusercontent.com/u/1640136?v=3","gravatar_id":"","url":"https://api.github.com/users/billybonks","html_url":"https://github.com/billybonks","followers_url":"https://api.github.com/users/billybonks/followers","following_url":"https://api.github.com/users/billybonks/following{/other_user}","gists_url":"https://api.github.com/users/billybonks/gists{/gist_id}","starred_url":"https://api.github.com/users/billybonks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billybonks/subscriptions","organizations_url":"https://api.github.com/users/billybonks/orgs","repos_url":"https://api.github.com/users/billybonks/repos","events_url":"https://api.github.com/users/billybonks/events{/privacy}","received_events_url":"https://api.github.com/users/billybonks/received_events","type":"User","site_admin":false},"body":"why do you call this twice ?","created_at":"2016-05-09T12:47:11Z","updated_at":"2016-05-09T12:47:11Z","html_url":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440#discussion_r62491804","pull_request_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440","_links":{"self":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/comments/62491804"},"html":{"href":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440#discussion_r62491804"},"pull_request":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440","id":68458665,"html_url":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440","diff_url":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440.diff","patch_url":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440.patch","issue_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/440","number":440,"state":"open","locked":false,"title":"Request for feedback - Text expansion/shortcuts in text areas","user":{"login":"eddiesholl","id":3746494,"avatar_url":"https://avatars.githubusercontent.com/u/3746494?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiesholl","html_url":"https://github.com/eddiesholl","followers_url":"https://api.github.com/users/eddiesholl/followers","following_url":"https://api.github.com/users/eddiesholl/following{/other_user}","gists_url":"https://api.github.com/users/eddiesholl/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiesholl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiesholl/subscriptions","organizations_url":"https://api.github.com/users/eddiesholl/orgs","repos_url":"https://api.github.com/users/eddiesholl/repos","events_url":"https://api.github.com/users/eddiesholl/events{/privacy}","received_events_url":"https://api.github.com/users/eddiesholl/received_events","type":"User","site_admin":false},"body":"Fixes #130\r\n\r\n**Changes proposed in this pull request:**\r\n- New 'miscellaneous' admin page, for creating shortcuts\r\n- New component 'expand-text' component, which wraps an em-text\r\n- Attach a floating div below the em-text with user feedback for possible expansions\r\n- Expansions activated by typing '#foo' and then pressing enter\r\n\r\nAt this stage I'm looking for any feedback on my proposed solution. It's my first pull request here and a non-trivial feature. There's still some obvious outstanding items, including:\r\n\r\n* A bit more i18n required\r\n* Floating div does not resize with the text area\r\n* Clean up text parsing methods\r\n* Extract the inline style work in didInsertElement\r\n* More tests\r\n\r\ncc @HospitalRun/core-maintainers\r\n","created_at":"2016-04-30T05:12:09Z","updated_at":"2016-05-09T12:47:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"983db8705e7c62324b1103e5985ef38dce6e7abb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440/commits","review_comments_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440/comments","review_comment_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/440/comments","statuses_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/statuses/a370c680086ee73b2c10cebd99d2aaf6958c4dbc","head":{"label":"eddiesholl:text-expansion","ref":"text-expansion","sha":"a370c680086ee73b2c10cebd99d2aaf6958c4dbc","user":{"login":"eddiesholl","id":3746494,"avatar_url":"https://avatars.githubusercontent.com/u/3746494?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiesholl","html_url":"https://github.com/eddiesholl","followers_url":"https://api.github.com/users/eddiesholl/followers","following_url":"https://api.github.com/users/eddiesholl/following{/other_user}","gists_url":"https://api.github.com/users/eddiesholl/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiesholl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiesholl/subscriptions","organizations_url":"https://api.github.com/users/eddiesholl/orgs","repos_url":"https://api.github.com/users/eddiesholl/repos","events_url":"https://api.github.com/users/eddiesholl/events{/privacy}","received_events_url":"https://api.github.com/users/eddiesholl/received_events","type":"User","site_admin":false},"repo":{"id":56362464,"name":"hospitalrun-frontend","full_name":"eddiesholl/hospitalrun-frontend","owner":{"login":"eddiesholl","id":3746494,"avatar_url":"https://avatars.githubusercontent.com/u/3746494?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiesholl","html_url":"https://github.com/eddiesholl","followers_url":"https://api.github.com/users/eddiesholl/followers","following_url":"https://api.github.com/users/eddiesholl/following{/other_user}","gists_url":"https://api.github.com/users/eddiesholl/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiesholl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiesholl/subscriptions","organizations_url":"https://api.github.com/users/eddiesholl/orgs","repos_url":"https://api.github.com/users/eddiesholl/repos","events_url":"https://api.github.com/users/eddiesholl/events{/privacy}","received_events_url":"https://api.github.com/users/eddiesholl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eddiesholl/hospitalrun-frontend","description":"Ember front end for HospitalRun","fork":true,"url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend","forks_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/forks","keys_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/teams","hooks_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/hooks","issue_events_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/events","assignees_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/tags","blobs_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/languages","stargazers_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/stargazers","contributors_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/contributors","subscribers_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/subscribers","subscription_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/subscription","commits_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/merges","archive_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/downloads","issues_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/labels{/name}","releases_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/eddiesholl/hospitalrun-frontend/deployments","created_at":"2016-04-16T02:58:49Z","updated_at":"2016-04-16T02:58:51Z","pushed_at":"2016-05-04T12:42:11Z","git_url":"git://github.com/eddiesholl/hospitalrun-frontend.git","ssh_url":"git@github.com:eddiesholl/hospitalrun-frontend.git","clone_url":"https://github.com/eddiesholl/hospitalrun-frontend.git","svn_url":"https://github.com/eddiesholl/hospitalrun-frontend","homepage":"http://hospitalrun.io/","size":90411,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HospitalRun:master","ref":"master","sha":"1cc5c5492f65ab2a1d15732a370fb123548e0da0","user":{"login":"HospitalRun","id":6797041,"avatar_url":"https://avatars.githubusercontent.com/u/6797041?v=3","gravatar_id":"","url":"https://api.github.com/users/HospitalRun","html_url":"https://github.com/HospitalRun","followers_url":"https://api.github.com/users/HospitalRun/followers","following_url":"https://api.github.com/users/HospitalRun/following{/other_user}","gists_url":"https://api.github.com/users/HospitalRun/gists{/gist_id}","starred_url":"https://api.github.com/users/HospitalRun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HospitalRun/subscriptions","organizations_url":"https://api.github.com/users/HospitalRun/orgs","repos_url":"https://api.github.com/users/HospitalRun/repos","events_url":"https://api.github.com/users/HospitalRun/events{/privacy}","received_events_url":"https://api.github.com/users/HospitalRun/received_events","type":"Organization","site_admin":false},"repo":{"id":18224920,"name":"hospitalrun-frontend","full_name":"HospitalRun/hospitalrun-frontend","owner":{"login":"HospitalRun","id":6797041,"avatar_url":"https://avatars.githubusercontent.com/u/6797041?v=3","gravatar_id":"","url":"https://api.github.com/users/HospitalRun","html_url":"https://github.com/HospitalRun","followers_url":"https://api.github.com/users/HospitalRun/followers","following_url":"https://api.github.com/users/HospitalRun/following{/other_user}","gists_url":"https://api.github.com/users/HospitalRun/gists{/gist_id}","starred_url":"https://api.github.com/users/HospitalRun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HospitalRun/subscriptions","organizations_url":"https://api.github.com/users/HospitalRun/orgs","repos_url":"https://api.github.com/users/HospitalRun/repos","events_url":"https://api.github.com/users/HospitalRun/events{/privacy}","received_events_url":"https://api.github.com/users/HospitalRun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HospitalRun/hospitalrun-frontend","description":"Ember front end for HospitalRun","fork":false,"url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend","forks_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/forks","keys_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/teams","hooks_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/hooks","issue_events_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/events","assignees_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/tags","blobs_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/languages","stargazers_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/stargazers","contributors_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/contributors","subscribers_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/subscribers","subscription_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/subscription","commits_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/merges","archive_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/downloads","issues_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/labels{/name}","releases_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/deployments","created_at":"2014-03-28T20:04:58Z","updated_at":"2016-05-09T12:21:11Z","pushed_at":"2016-05-09T08:54:07Z","git_url":"git://github.com/HospitalRun/hospitalrun-frontend.git","ssh_url":"git@github.com:HospitalRun/hospitalrun-frontend.git","clone_url":"https://github.com/HospitalRun/hospitalrun-frontend.git","svn_url":"https://github.com/HospitalRun/hospitalrun-frontend","homepage":"http://hospitalrun.io/","size":93559,"stargazers_count":1467,"watchers_count":1467,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":258,"mirror_url":null,"open_issues_count":96,"forks":258,"open_issues":96,"watchers":1467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440"},"html":{"href":"https://github.com/HospitalRun/hospitalrun-frontend/pull/440"},"issue":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/440"},"comments":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/HospitalRun/hospitalrun-frontend/statuses/a370c680086ee73b2c10cebd99d2aaf6958c4dbc"}}}}