{"push_id":2497535538,"size":1,"distinct_size":1,"ref":"refs/heads/add/imports-blogger-importer","head":"5ffe238cb0e4d9d07965912aefc66882d9f5a36c","before":"8213256a70f0b8ab372122fb85f0fccaae5b9424","commits":[{"sha":"5ffe238cb0e4d9d07965912aefc66882d9f5a36c","author":{"name":"Daniel Richards","email":"2591e5f46f28d303f9dc027d475a5c60d8dea17a@getkahoot.com"},"message":"Refactor the rendering of importer components in the `SectionImport` component\n\nPreviously, adding a new importer required adding a fair bit of boilerplate in\nthe render method of the `SectionImport` component. This commit refactors things\nso that to add a new importer the developer simplay adds it to the `importers`\narray.\n\nThere are now some new new methods in SectionImport:\n- `renderImporters` replaces the previous `getImports` method. The new method\nreturns an array of react elements representing the importers that are rendered.\nIt calls either `renderIdleImporters` or  `renderActiveImporters` depending on\nwhether the store contains any import data.\n- `renderIdleImporters` returns an array containing each enabled importer at a\ngiven state. It is currently used to render the importers while the page is\nloading and also while there are no active import jobs.\n- `renderActiveImporters` receives the list of in progress import jobs and\nrenders just the importers for those jobs (as long as the importer is enabled).\n\nBefore any import data is passed to the `renderActiveImporters` function it must\nbe filtered using the `filterImportsForSite`, to ensure the import data is only\nfor the site being viewed.","distinct":true,"url":"https://api.github.com/repos/talldan/wp-calypso/commits/5ffe238cb0e4d9d07965912aefc66882d9f5a36c"}]}
{"actor":{"display_login":"talldan"}}