{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/583","repository_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle","labels_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/583/comments","events_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/583/events","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/583","id":153748281,"number":583,"title":"[WIP] EZP-25760: As a user, I want to manage and view my content from my dashboard","user":{"login":"sunpietro","id":1736658,"avatar_url":"https://avatars.githubusercontent.com/u/1736658?v=3","gravatar_id":"","url":"https://api.github.com/users/sunpietro","html_url":"https://github.com/sunpietro","followers_url":"https://api.github.com/users/sunpietro/followers","following_url":"https://api.github.com/users/sunpietro/following{/other_user}","gists_url":"https://api.github.com/users/sunpietro/gists{/gist_id}","starred_url":"https://api.github.com/users/sunpietro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunpietro/subscriptions","organizations_url":"https://api.github.com/users/sunpietro/orgs","repos_url":"https://api.github.com/users/sunpietro/repos","events_url":"https://api.github.com/users/sunpietro/events{/privacy}","received_events_url":"https://api.github.com/users/sunpietro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-09T10:37:20Z","updated_at":"2016-05-10T12:30:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/pulls/583","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/583","diff_url":"https://github.com/ezsystems/PlatformUIBundle/pull/583.diff","patch_url":"https://github.com/ezsystems/PlatformUIBundle/pull/583.patch"},"body":"**WORK IN PROGRESS**\r\n\r\nhttps://jira.ez.no/browse/EZP-25760\r\n\r\nThe code can be splitted into separate commits/PR if needed. I kept all of the code here for discussion later.\r\n\r\n## The new extensible Dashboard concept\r\nIt allows to add new blocks to dashboard by creating plugins applied to the `eZ.DashboardView` instance.\r\nEach block will require its own view followed by a `eZ.DashboardViewService` plugin that handles actions of getting data to blocks. The service plugin is optional.\r\n\r\nTo add a new block you have to define:\r\n- [x] block view,\r\n- [x] `eZ.DashboardView` plugin that adds a block to a dashboard view instance,\r\n- [x] `eZ.DashboardViewService` plugin required for fetching data used by a block (**optional**).\r\n\r\nIn a `eZ.DashboardView` plugin a new block can be added by using `addBlock` method: `this.get('host').addBlock(blockIdentifier, blockViewInstance);`\r\n\r\nThe `this.get('host')` refers to `eZ.Dashboard` view instance.\r\n\r\nAny block can be removed from the dashboard by calling: `this.get('host').removeBlock(blockIdentifier);`\r\n\r\nAny block can be hidden by calling:\r\n`this.get('host').hideBlock(blockIdentifier);`\r\n\r\nAny block can be displayed again by calling:\r\n`this.get('host').showBlock(blockIdentifier);`\r\n\r\n**Important:** This will require Behat tests rebuilding as it changes how the dashboard behaves.\r\n\r\n**TO DO:**\r\n- [x] remove the iframe preview from the dashboard,\r\n- [x] create extensibility points for adding/removing/showing/hiding blocks in the dashboard,\r\n- [x] create the dashboard view service,\r\n- [x] create basic dashboard block view class to be extended in specific blocks,\r\n- [x] create basic dashboard block view plugin to be attached to `eZ.DashboardView`. The plugin is a base to be extended in specific blocks.\r\n- [x] create **All content** block as a sample block,\r\n- [x] implement block ordering in the dashboard,\r\n- [ ] implement redirection to content editor,\r\n- [ ] implement redirection to content preview,\r\n- [ ] JS unit tests"},"comment":{"url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/comments/218142779","html_url":"https://github.com/ezsystems/PlatformUIBundle/pull/583#issuecomment-218142779","issue_url":"https://api.github.com/repos/ezsystems/PlatformUIBundle/issues/583","id":218142779,"user":{"login":"lserwatka","id":130489,"avatar_url":"https://avatars.githubusercontent.com/u/130489?v=3","gravatar_id":"","url":"https://api.github.com/users/lserwatka","html_url":"https://github.com/lserwatka","followers_url":"https://api.github.com/users/lserwatka/followers","following_url":"https://api.github.com/users/lserwatka/following{/other_user}","gists_url":"https://api.github.com/users/lserwatka/gists{/gist_id}","starred_url":"https://api.github.com/users/lserwatka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lserwatka/subscriptions","organizations_url":"https://api.github.com/users/lserwatka/orgs","repos_url":"https://api.github.com/users/lserwatka/repos","events_url":"https://api.github.com/users/lserwatka/events{/privacy}","received_events_url":"https://api.github.com/users/lserwatka/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T12:30:01Z","updated_at":"2016-05-10T12:30:01Z","body":"@dpobel my question about feature was if some blocks might not have title at all. This will have impact on UI. I was not looking form technical point of view how to implement blocks. I hope this is more clear now."}}