{"action":"closed","issue":{"url":"https://api.github.com/repos/freeCodeCamp/learn/issues/107","repository_url":"https://api.github.com/repos/freeCodeCamp/learn","labels_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/107/comments","events_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/107/events","html_url":"https://github.com/freeCodeCamp/learn/issues/107","id":327110405,"node_id":"MDU6SXNzdWUzMjcxMTA0MDU=","number":107,"title":"Add a `Download my solution` button to the Completion Modal","user":{"login":"Bouncey","id":18572518,"node_id":"MDQ6VXNlcjE4NTcyNTE4","avatar_url":"https://avatars1.githubusercontent.com/u/18572518?v=4","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"labels":[{"id":937596240,"node_id":"MDU6TGFiZWw5Mzc1OTYyNDA=","url":"https://api.github.com/repos/freeCodeCamp/learn/labels/UX","name":"UX","color":"530196","default":false},{"id":926478063,"node_id":"MDU6TGFiZWw5MjY0NzgwNjM=","url":"https://api.github.com/repos/freeCodeCamp/learn/labels/critical%20path","name":"critical path","color":"b60205","default":false},{"id":892638710,"node_id":"MDU6TGFiZWw4OTI2Mzg3MTA=","url":"https://api.github.com/repos/freeCodeCamp/learn/labels/first%20timers%20welcome","name":"first timers welcome","color":"c5def5","default":false},{"id":892638709,"node_id":"MDU6TGFiZWw4OTI2Mzg3MDk=","url":"https://api.github.com/repos/freeCodeCamp/learn/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true},{"id":892638708,"node_id":"MDU6TGFiZWw4OTI2Mzg3MDg=","url":"https://api.github.com/repos/freeCodeCamp/learn/labels/type:%20enhancement","name":"type: enhancement","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-28T20:18:43Z","updated_at":"2018-07-10T18:29:54Z","closed_at":"2018-07-10T18:29:54Z","author_association":"MEMBER","body":"As we are not storing user challenge solutions in the database any more, we should offer a `Download my solution` button on the `<CompletionModal />`\r\n\r\nThis button will look something like \r\n```jsx\r\n<Button\r\n  block={true}\r\n  bsSize='lg'\r\n  bsStyle='primary'\r\n  download={`${challenge.dashedName}.json`}\r\n  href={\r\n    `data:text/json;charset=utf-8,${\r\n      encodeURIComponent(JSON.stringify(files))\r\n    }`\r\n  }\r\n  >\r\n  Download my solution\r\n</Button>\r\n```\r\n\r\nThe button will allow a user to download their solution in `JSON` format. \r\n\r\n@utsab @imcodingideas"}}
{"actor":{"display_login":"Bouncey"}}