{"action":"closed","issue":{"url":"https://api.github.com/repos/devtools-html/debugger.html/issues/3893","repository_url":"https://api.github.com/repos/devtools-html/debugger.html","labels_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/3893/labels{/name}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/3893/comments","events_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/3893/events","html_url":"https://github.com/devtools-html/debugger.html/issues/3893","id":255274828,"number":3893,"title":"[WelcomeBox] make shortcuts clickable","user":{"login":"jasonLaster","id":254562,"avatar_url":"https://avatars1.githubusercontent.com/u/254562?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonLaster","html_url":"https://github.com/jasonLaster","followers_url":"https://api.github.com/users/jasonLaster/followers","following_url":"https://api.github.com/users/jasonLaster/following{/other_user}","gists_url":"https://api.github.com/users/jasonLaster/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonLaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonLaster/subscriptions","organizations_url":"https://api.github.com/users/jasonLaster/orgs","repos_url":"https://api.github.com/users/jasonLaster/repos","events_url":"https://api.github.com/users/jasonLaster/events{/privacy}","received_events_url":"https://api.github.com/users/jasonLaster/received_events","type":"User","site_admin":false},"labels":[{"id":346505996,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-05T13:20:00Z","updated_at":"2017-09-17T18:23:01Z","closed_at":"2017-09-17T18:23:01Z","author_association":"CONTRIBUTOR","body":"We recently updated our welcome box to include additional shortcuts. It would be neat if we could also make them links as well, so when you click on them it takes you to where you'd go if you fired the shortcut.\n\nNote, we do this with the left sidebar link on the top.\n\n\nwe could do it with something like this... note, the diff does not include the correct fields for the search. see reducers/ui.js for the correct values\n```diff\ndiff --git a/src/components/WelcomeBox.js b/src/components/WelcomeBox.js\nindex 47d3fb7..1dc0055 100644\n--- a/src/components/WelcomeBox.js\n+++ b/src/components/WelcomeBox.js\n@@ -58,14 +55,16 @@ class WelcomeBox extends Component {\n       <div className=\"welcomebox\">\n         <div className=\"alignlabel\">\n           <div className=\"shortcutKeys\">\n-            <p>{searchSourcesShortcut}</p>\n-            <p>{searchProjectShortcut}</p>\n-            <p>{searchFunctionsShortcut}</p>\n+            <p onClick={setActiveSearch(\"sources\")}>{searchSourcesShortcut}</p>\n+            <p onClick={setActiveSearch(\"project\")}>{searchProjectShortcut}</p>\n+            <p onClick={setActiveSearch(\"function\")}>\n+              {searchFunctionsShortcut}\n+            </p>\n           </div>\n           <div className=\"shortcutFunction\">\n-            <p>{searchSourcesLabel}</p>\n-            <p>{searchProjectLabel}</p>\n-            <p>{searchFunctionLabel}</p>\n+            <p onClick={setActiveSearch(item)}>{searchSourcesLabel}</p>\n+            <p onClick={setActiveSearch(item)}>{searchProjectLabel}</p>\n+            <p onClick={setActiveSearch(item)}>{searchFunctionLabel}</p>\n           </div>\n           {this.renderToggleButton()}\n         </div>\n(END)\n```"}}
{"actor":{"display_login":"jasonLaster"}}