stable
Clone or download
Part of story #14096 have a post action to add "Scrum Top Backlog" flag The patch only introduce the display of the disabled option, there is no functional change. The patch also introduce a way to import dynamically a vue component from an other plugin. So how it briefly works ? 1) The component is built with webpack as a JSONP and stored in the window global variable. 2) A PHP event send the asset and the JSONP callback name to the tracker plugin. 3) Script tags are built with the asset url to be able to retrieve them with the JSONP callback. 4) We use the dynamic import in the target component. Why use this mecanism? With a webplack plugin[0] the dynamic import can be heandled more easly. BUT it does NOT work on IE 11, because this awesome browser does not support the ESM specs. [0] https://github.com/purtuga/esm-webpack-plugin Change-Id: Idebc38d956ce5dcbbd85f22a591a121d6cc236b7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/agiledashboard/build-manifest.json | +5 | −0 | Go to diff View file |
M | plugins/agiledashboard/include/agiledashboardPlugin.php | +24 | −1 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/jest.config.js | +26 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/package-lock.json | +376 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/package.json | +27 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/po/fr.po | +19 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/AddToBacklogPostActionOption.test.ts | +35 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/AddToBacklogPostActionOption.vue | +47 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/helpers/local-vue-for-test.ts | +31 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/index.ts | +27 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/type.ts | +25 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/src/vue.shims.d.ts | +25 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/tsconfig.json | +6 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/agiledashboard-workflow/webpack.config.js | +64 | −0 | Go to diff View file |
A | plugins/agiledashboard/scripts/jest.projects.config.js | +22 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Workflow/WorkflowMenuTabPresenter.php | +15 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Workflow/WorkflowMenuTabPresenterBuilder.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Workflow/WorkflowTransitionController.php | +27 | −8 | Go to diff View file |
A | plugins/tracker/include/Workflow/PostAction/ExternalWorkflowAssetsPathsRetrieverEvent.php | +61 | −0 | Go to diff View file |
A | plugins/tracker/include/Workflow/PostAction/JSONPCallback.php | +51 | −0 | Go to diff View file |
A | plugins/tracker/include/Workflow/PostAction/JSONPCallbackPresenter.php | +39 | −0 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.php | +3 | −1 | Go to diff View file |
M | plugins/tracker/templates/workflow-transitions/workflow-transitions.mustache | +1 | −0 | Go to diff View file |
M | plugins/tracker/www/scripts/workflow-transitions/src/components/TransitionModal/PostAction/PostAction.vue | +12 | −3 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/helpers/cross-plugin-component-importer.js | +50 | −0 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/helpers/cross-plugin-component-importer.test.js | +86 | −0 | Go to diff View file |
A | plugins/tracker/www/scripts/workflow-transitions/src/helpers/external-component-state.js | +29 | −0 | Go to diff View file |
M | plugins/tracker/www/scripts/workflow-transitions/src/index.js | +28 | −4 | Go to diff View file |