{"action":"closed","issue":{"url":"https://api.github.com/repos/cfpb/hmda-platform-ui/issues/45","repository_url":"https://api.github.com/repos/cfpb/hmda-platform-ui","labels_url":"https://api.github.com/repos/cfpb/hmda-platform-ui/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/hmda-platform-ui/issues/45/comments","events_url":"https://api.github.com/repos/cfpb/hmda-platform-ui/issues/45/events","html_url":"https://github.com/cfpb/hmda-platform-ui/issues/45","id":141081391,"number":45,"title":"Component to render macro edits","user":{"login":"awolfe76","id":2932572,"avatar_url":"https://avatars.githubusercontent.com/u/2932572?v=3","gravatar_id":"","url":"https://api.github.com/users/awolfe76","html_url":"https://github.com/awolfe76","followers_url":"https://api.github.com/users/awolfe76/followers","following_url":"https://api.github.com/users/awolfe76/following{/other_user}","gists_url":"https://api.github.com/users/awolfe76/gists{/gist_id}","starred_url":"https://api.github.com/users/awolfe76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awolfe76/subscriptions","organizations_url":"https://api.github.com/users/awolfe76/orgs","repos_url":"https://api.github.com/users/awolfe76/repos","events_url":"https://api.github.com/users/awolfe76/events{/privacy}","received_events_url":"https://api.github.com/users/awolfe76/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cfpb/hmda-platform-ui/labels/component","name":"component","color":"fbca04"},{"url":"https://api.github.com/repos/cfpb/hmda-platform-ui/labels/Data%20Validation","name":"Data Validation","color":"5319e7"},{"url":"https://api.github.com/repos/cfpb/hmda-platform-ui/labels/File%20Submission","name":"File Submission","color":"5319e7"},{"url":"https://api.github.com/repos/cfpb/hmda-platform-ui/labels/Persistence","name":"Persistence","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T19:52:50Z","updated_at":"2016-04-08T18:36:38Z","closed_at":"2016-04-08T18:36:38Z","body":"While this component will act a lot like the one in #42 and #44 I think its different enough to justify being on its own.\r\n\r\nMacro edits are _not_ based on row-by-row, but instead are based on the file as a whole and external resources such as the previous years filing.\r\n\r\n### _With_ syntactical and validity errors\r\n\r\n![macro](https://cloud.githubusercontent.com/assets/2932572/13791149/1a14859e-eac2-11e5-9589-cb55a0efff10.png)\r\n\r\nIf syntactical and validity errors are still present, a informational message should appear to the filer.\r\n\r\nThis table is different from others, it's no longer row-by-row, instead it is edit-by-edit. The component renders the edit ID, the edit description, and whether or not it has been verified. Click the edit ID expands  to show more detail. \r\n\r\nData required:\r\n- edit ID\r\n- edit description\r\n- verified or not\r\n- details about the error\r\n  - for example, for Q007 we would want to tell them that they had 252 / 551 loans that had an action code = 2. So that's 45.75% which is > than 15%.\r\n\r\n### _Without_ syntactical and validity errors\r\n\r\nOnce the syntactical and validity edits have run without error, this component renders a bit differently. The informational message is removed and now a reason dropdown is rendered, along with a checkbox and verification message.\r\n\r\n@debseidner @lesgou - are these \"reason dropdowns\" always the same?\r\n\r\n_The checkbox and verification message should **not** show up until a reason has been selected._\r\n\r\n![macro-verify](https://cloud.githubusercontent.com/assets/2932572/13791796/3046336e-eac5-11e5-9b1b-bb0d8d4f8423.png)\r\n\r\nOnce a reason has been selected and the checkbox checked only the corresponding `Not verified` should change to `Verified`. *(This is unlike #44 where all messages updated based on one checkbox.)*\r\n\r\n![macro-verified](https://cloud.githubusercontent.com/assets/2932572/13791956/e364bace-eac5-11e5-865a-bc845fa7777e.png)\r\n\r\nIt will also make an API call to let the backend know that one macro verification step is complete. Each of these should be a persistence point.\r\n\r\n\r\n"}}