{"action":"created","issue":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1090","labels_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1090/comments","events_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1090/events","html_url":"https://github.com/TerriaJS/terriajs/pull/1090","id":117966333,"number":1090,"title":"Refactor the Now Viewing tab to display configurable sections","user":{"login":"kring","id":924374,"avatar_url":"https://avatars.githubusercontent.com/u/924374?v=3","gravatar_id":"","url":"https://api.github.com/users/kring","html_url":"https://github.com/kring","followers_url":"https://api.github.com/users/kring/followers","following_url":"https://api.github.com/users/kring/following{/other_user}","gists_url":"https://api.github.com/users/kring/gists{/gist_id}","starred_url":"https://api.github.com/users/kring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kring/subscriptions","organizations_url":"https://api.github.com/users/kring/orgs","repos_url":"https://api.github.com/users/kring/repos","events_url":"https://api.github.com/users/kring/events{/privacy}","received_events_url":"https://api.github.com/users/kring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"RacingTadpole","id":1757858,"avatar_url":"https://avatars.githubusercontent.com/u/1757858?v=3","gravatar_id":"","url":"https://api.github.com/users/RacingTadpole","html_url":"https://github.com/RacingTadpole","followers_url":"https://api.github.com/users/RacingTadpole/followers","following_url":"https://api.github.com/users/RacingTadpole/following{/other_user}","gists_url":"https://api.github.com/users/RacingTadpole/gists{/gist_id}","starred_url":"https://api.github.com/users/RacingTadpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RacingTadpole/subscriptions","organizations_url":"https://api.github.com/users/RacingTadpole/orgs","repos_url":"https://api.github.com/users/RacingTadpole/repos","events_url":"https://api.github.com/users/RacingTadpole/events{/privacy}","received_events_url":"https://api.github.com/users/RacingTadpole/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-11-20T05:07:00Z","updated_at":"2015-11-25T03:29:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TerriaJS/terriajs/pulls/1090","html_url":"https://github.com/TerriaJS/terriajs/pull/1090","diff_url":"https://github.com/TerriaJS/terriajs/pull/1090.diff","patch_url":"https://github.com/TerriaJS/terriajs/pull/1090.patch"},"body":"Previously, the various bits shown on the Now Viewing tab were hard-coded, including special handling for various types of catalog items such as `AbsIttCatalogItem`.  This pull request refactors `NowViewingTabViewModel` to instead display a configurable list of sections (`NowViewTabViewModel.sections`).  Each section is given the opportunity to determine for itself whether it applies to each catalog item.  Added `LegendSectionViewModel`, `OpacitySectionViewModel`, `ConceptsSectionViewModel` (for CSV and ABS filtering), and `AbsPercentageSectionViewModel` (for choosing whether ABS data is display as a percentage or an absolute count).\r\n\r\nCC @stevage and @RacingTadpole.  Both of you guys mentioned you may find this useful for some other work you are/will be doing."},"comment":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/comments/159477830","html_url":"https://github.com/TerriaJS/terriajs/pull/1090#issuecomment-159477830","issue_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1090","id":159477830,"user":{"login":"kring","id":924374,"avatar_url":"https://avatars.githubusercontent.com/u/924374?v=3","gravatar_id":"","url":"https://api.github.com/users/kring","html_url":"https://github.com/kring","followers_url":"https://api.github.com/users/kring/followers","following_url":"https://api.github.com/users/kring/following{/other_user}","gists_url":"https://api.github.com/users/kring/gists{/gist_id}","starred_url":"https://api.github.com/users/kring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kring/subscriptions","organizations_url":"https://api.github.com/users/kring/orgs","repos_url":"https://api.github.com/users/kring/repos","events_url":"https://api.github.com/users/kring/events{/privacy}","received_events_url":"https://api.github.com/users/kring/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T03:29:10Z","updated_at":"2015-11-25T03:29:10Z","body":"Yes, that would be great.  Although, given that a new UI is coming, and these view models (unlike `TerriaViewer`) won't be used in the new UI, I don't think it's a very high priority."}}