{"action":"created","issue":{"url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/877","repository_url":"https://api.github.com/repos/react-cosmos/react-cosmos","labels_url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/877/comments","events_url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/877/events","html_url":"https://github.com/react-cosmos/react-cosmos/pull/877","id":369582629,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNDkwNDUw","number":877,"title":"Add runtimeConfig and preferCollapsedFixtures","user":{"login":"tryggvigy","id":2373958,"node_id":"MDQ6VXNlcjIzNzM5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/2373958?v=4","gravatar_id":"","url":"https://api.github.com/users/tryggvigy","html_url":"https://github.com/tryggvigy","followers_url":"https://api.github.com/users/tryggvigy/followers","following_url":"https://api.github.com/users/tryggvigy/following{/other_user}","gists_url":"https://api.github.com/users/tryggvigy/gists{/gist_id}","starred_url":"https://api.github.com/users/tryggvigy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tryggvigy/subscriptions","organizations_url":"https://api.github.com/users/tryggvigy/orgs","repos_url":"https://api.github.com/users/tryggvigy/repos","events_url":"https://api.github.com/users/tryggvigy/events{/privacy}","received_events_url":"https://api.github.com/users/tryggvigy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-12T14:44:18Z","updated_at":"2018-10-16T08:17:09Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/react-cosmos/react-cosmos/pulls/877","html_url":"https://github.com/react-cosmos/react-cosmos/pull/877","diff_url":"https://github.com/react-cosmos/react-cosmos/pull/877.diff","patch_url":"https://github.com/react-cosmos/react-cosmos/pull/877.patch"},"body":"Hey, me again with an idea as a pull request. \r\nThis is very much just a spike to get some thoughts on.\r\nIf this is desired we can discuss how to do this in a good way.\r\n\r\n## This PR will\r\n- add the optional `runtimeConfig` key to `cosmos.config.js`. \r\n  - The `runtimeConfig` key will be passed to the `mountPlayground` and therefor be accessible in the playground.\r\n  - The idea behind this config is to allow customizations to the runtime. For example `runtimeConfig.preferCollapsedFixtures`\r\n- Add `runtimeConfig.preferCollapsedFixtures`. If true it will cause all fixtures that do not have a saved expansion state to be collapsed by default.\r\n  -  ![image](https://user-images.githubusercontent.com/2373958/46875960-5fc6ef80-ce3d-11e8-9c4b-c40ca80fc7cc.png)\r\n  - partially discussed in https://github.com/react-cosmos/react-cosmos/issues/251\r\n\r\n\"Hide all/ Show all\" buttons + saved expansions state, would achieve the same thing more or less and I think thats been discussed in the past. If thats the plan, feel free to close this PR."},"comment":{"url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/comments/430144799","html_url":"https://github.com/react-cosmos/react-cosmos/pull/877#issuecomment-430144799","issue_url":"https://api.github.com/repos/react-cosmos/react-cosmos/issues/877","id":430144799,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDE0NDc5OQ==","user":{"login":"skidding","id":250750,"node_id":"MDQ6VXNlcjI1MDc1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/250750?v=4","gravatar_id":"","url":"https://api.github.com/users/skidding","html_url":"https://github.com/skidding","followers_url":"https://api.github.com/users/skidding/followers","following_url":"https://api.github.com/users/skidding/following{/other_user}","gists_url":"https://api.github.com/users/skidding/gists{/gist_id}","starred_url":"https://api.github.com/users/skidding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skidding/subscriptions","organizations_url":"https://api.github.com/users/skidding/orgs","repos_url":"https://api.github.com/users/skidding/repos","events_url":"https://api.github.com/users/skidding/events{/privacy}","received_events_url":"https://api.github.com/users/skidding/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T08:17:09Z","updated_at":"2018-10-16T08:17:09Z","author_association":"MEMBER","body":"Hi @tryggvigy,\r\n\r\nThe build is failling. Can you please update the tests to reflect your changes?"}}
{"actor":{"display_login":"skidding"}}