stable

Clone or download

Read-only

feat: ability to remove a module

Now an empty state is displayed when a module has not been uploaded or has been removed. The tracker administrator can remove a module via the web interface without having to `rm` the file on the filesystem. Prepare the field for the next changeset (table to display logs, switch to activate the module, …). The main interest of this contribution is the addition of the empty state and the ability to remove a module. Design is subject to change and copywriting will be enhanced in dedicated contribution. Part of story #35093: execute custom code as artifact post action Change-Id: Id101512b3e99529f66198d21bfb6d08b77c26b65

Modified Files

Name
R plugins/tracker_cce/include/TrackerCCE/Administration/UpdateModuleCSRFTokenProvider.php Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/AdministrationController.php +19 −0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/AdministrationPresenter.php +2 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/CustomCodeExecutionHistorySaver.php +77 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/LogModuleRemoved.php +26 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/LogModuleUploaded.php +26 −0 Go to diff View file
A plugins/tracker_cce/include/TrackerCCE/Administration/RemoveModuleController.php +98 −0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/UpdateModuleController.php +12 −0 Go to diff View file
M plugins/tracker_cce/include/TrackerCCE/Administration/administration.mustache +148 −19 Go to diff View file
M plugins/tracker_cce/include/tracker_ccePlugin.php +46 −4 Go to diff View file
A plugins/tracker_cce/scripts/admin/package.json +19 −0 Go to diff View file
A plugins/tracker_cce/scripts/admin/pnpm-lock.yaml +15 −0 Go to diff View file
A plugins/tracker_cce/scripts/admin/src/index.ts +25 −0 Go to diff View file
A plugins/tracker_cce/scripts/admin/src/style.scss +27 −0 Go to diff View file
A plugins/tracker_cce/scripts/admin/tsconfig.json +7 −0 Go to diff View file
A plugins/tracker_cce/scripts/admin/vite.config.ts +37 −0 Go to diff View file
M plugins/tracker_cce/site-content/fr_FR/LC_MESSAGES/tuleap-tracker_cce.po +72 −0 Go to diff View file
M plugins/tracker_cce/site-content/pt_BR/LC_MESSAGES/tuleap-tracker_cce.po +72 −0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/LogModuleRemovedStub.php +49 −0 Go to diff View file
A plugins/tracker_cce/tests/unit/Stub/Administration/LogModuleUploadedStub.php +49 −0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/Administration/AdministrationControllerTest.php +7 −3 Go to diff View file
A plugins/tracker_cce/tests/unit/TrackerCCE/Administration/RemoveModuleControllerTest.php +135 −0 Go to diff View file
M plugins/tracker_cce/tests/unit/TrackerCCE/Administration/UpdateModuleControllerTest.php +10 −0 Go to diff View file