{"action":"opened","issue":{"url":"https://api.github.com/repos/allenai/allennlp-demo/issues/72","repository_url":"https://api.github.com/repos/allenai/allennlp-demo","labels_url":"https://api.github.com/repos/allenai/allennlp-demo/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/allenai/allennlp-demo/issues/72/comments","events_url":"https://api.github.com/repos/allenai/allennlp-demo/issues/72/events","html_url":"https://github.com/allenai/allennlp-demo/issues/72","id":362396725,"node_id":"MDU6SXNzdWUzNjIzOTY3MjU=","number":72,"title":"Refactor demo front-end","user":{"login":"joelgrus","id":1308313,"node_id":"MDQ6VXNlcjEzMDgzMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1308313?v=4","gravatar_id":"","url":"https://api.github.com/users/joelgrus","html_url":"https://github.com/joelgrus","followers_url":"https://api.github.com/users/joelgrus/followers","following_url":"https://api.github.com/users/joelgrus/following{/other_user}","gists_url":"https://api.github.com/users/joelgrus/gists{/gist_id}","starred_url":"https://api.github.com/users/joelgrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelgrus/subscriptions","organizations_url":"https://api.github.com/users/joelgrus/orgs","repos_url":"https://api.github.com/users/joelgrus/repos","events_url":"https://api.github.com/users/joelgrus/events{/privacy}","received_events_url":"https://api.github.com/users/joelgrus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T22:54:49Z","updated_at":"2018-09-20T22:54:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"*Motivation*\r\n\r\nRight now the front-end code for our demo is sort of a mess. All of the `Component`s for each model/task contain a ton of duplicated code and lots of bespoke UX components.\r\n\r\nThis means that right now to add a new model to the demo takes hundreds of lines of JavaScript. By factoring out common code (and cleaning it up), we should be able to make it so that a new model takes only a few dozen lines of JavaScript. This will make it much simpler to add new models as we grow the demo.\r\n\r\nAs part of this process, we should add unit tests and (potentially) TypeScript/Flow type annotations to make our demo harder to break and easier to keep running.\r\n\r\n*Success Criteria*\r\n\r\n* A clean set of reusable React components that can be used to quickly create new demo components.\r\n* Good unit test coverage for our demo FE\r\n* Type hinting and checking for our demo FE\r\n* CI that verifies these"}}
{"actor":{"display_login":"joelgrus"}}