{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2714","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2714/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2714/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2714/events","html_url":"https://github.com/Automattic/wp-calypso/issues/2714","id":128329343,"number":2714,"title":"Themes: Split `main` into `single-site`, `multi-site`, and `logged-out`","user":{"login":"ockham","id":96308,"avatar_url":"https://avatars.githubusercontent.com/u/96308?v=3","gravatar_id":"","url":"https://api.github.com/users/ockham","html_url":"https://github.com/ockham","followers_url":"https://api.github.com/users/ockham/followers","following_url":"https://api.github.com/users/ockham/following{/other_user}","gists_url":"https://api.github.com/users/ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ockham/subscriptions","organizations_url":"https://api.github.com/users/ockham/orgs","repos_url":"https://api.github.com/users/ockham/repos","events_url":"https://api.github.com/users/ockham/events{/privacy}","received_events_url":"https://api.github.com/users/ockham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Themes","name":"Themes","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Task","name":"[Type] Task","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"ockham","id":96308,"avatar_url":"https://avatars.githubusercontent.com/u/96308?v=3","gravatar_id":"","url":"https://api.github.com/users/ockham","html_url":"https://github.com/ockham","followers_url":"https://api.github.com/users/ockham/followers","following_url":"https://api.github.com/users/ockham/following{/other_user}","gists_url":"https://api.github.com/users/ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ockham/subscriptions","organizations_url":"https://api.github.com/users/ockham/orgs","repos_url":"https://api.github.com/users/ockham/repos","events_url":"https://api.github.com/users/ockham/events{/privacy}","received_events_url":"https://api.github.com/users/ockham/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/35","html_url":"https://github.com/Automattic/wp-calypso/milestones/Themes:%20Maintenance","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/35/labels","id":1429662,"number":35,"title":"Themes: Maintenance","description":"","creator":{"login":"folletto","id":4389,"avatar_url":"https://avatars.githubusercontent.com/u/4389?v=3","gravatar_id":"","url":"https://api.github.com/users/folletto","html_url":"https://github.com/folletto","followers_url":"https://api.github.com/users/folletto/followers","following_url":"https://api.github.com/users/folletto/following{/other_user}","gists_url":"https://api.github.com/users/folletto/gists{/gist_id}","starred_url":"https://api.github.com/users/folletto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folletto/subscriptions","organizations_url":"https://api.github.com/users/folletto/orgs","repos_url":"https://api.github.com/users/folletto/repos","events_url":"https://api.github.com/users/folletto/events{/privacy}","received_events_url":"https://api.github.com/users/folletto/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":6,"state":"open","created_at":"2015-11-25T16:14:32Z","updated_at":"2016-02-02T18:14:12Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-01-23T13:42:19Z","updated_at":"2016-02-02T18:14:12Z","closed_at":"2016-02-02T18:14:12Z","body":"I think part of the cognitive burden and mess of `main.jsx` is the number of conditionals and ternaries that check if we're dealing with any of those modes. To relieve that, I think that in addition to #2444, we should split it up into at least those three. Each will then only need a limited subset of those components we're using right now -- e.g. `single-site` won't need `ThemesSiteSelectorModal` and the `CurrentTheme` bar, while the other ones won't need any Jetpack related error message components.\r\n\r\nWe might then also iterate on `theme-options`, and remove the `isHidden` fields (of #2444), instead `pick`ing the options we need individually in each of those, uh, view modes."}}