stable
Clone or download
Part of story #22687 distinguish projects with an icon The `emoji-button`[0] library has been used to have the icon picker This libray has been chosen because it seems to be a library which is still maintained and used. It was also choosen because the lib is light and written in VanillaJS/TS. That lib have aslo some configurable options such as he possibility to take in account translation or skin tone... Since is not possible to remove a single emoji, a new data source has been created without the unwanted emoji. /!\ The feature is behind a feature flag How to test: - In your bash web enable the feature => tuleap config-set feature_flag_project_icon_display 1 - Go to the project admin Details menu. - Play with the icon picker => All the text should be translated. - Choose an icon => The chosen icon is displayed Note: The chosen icon is not saved in backend yet [0]: https://github.com/joeattardi/emoji-button Change-Id: Ie8cab07d77199dad66a8810cd590b8b548cad8f7
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +3 | −0 | Go to diff View file |
M | src/common/CLI/Events/GetWhitelistedKeys.php | +2 | −0 | Go to diff View file |
M | src/common/Project/Admin/ProjectDetails/ProjectDetailsPresenter.php | +13 | −0 | Go to diff View file |
A | src/common/Project/Icons/ProjectIconChecker.php | +38 | −0 | Go to diff View file |
M | src/package-lock.json | +246 | −0 | Go to diff View file |
M | src/package.json | +1 | −0 | Go to diff View file |
M | src/scripts/project/admin/po/fr_FR.po | +40 | −0 | Go to diff View file |
A | src/scripts/project/admin/src/helpers/icon-picker-builder.ts | +58 | −0 | Go to diff View file |
A | src/scripts/project/admin/src/helpers/icon-picker-initializer.test.ts | +71 | −0 | Go to diff View file |
A | src/scripts/project/admin/src/helpers/icon-picker-initializer.ts | +38 | −0 | Go to diff View file |
A | src/scripts/project/admin/src/helpers/icons-for-project.json | +1 | −0 | Go to diff View file |
M | src/scripts/project/admin/src/project-admin-details.ts | +22 | −1 | Go to diff View file |
M | src/scripts/project/admin/src/project-admin-members.ts | +4 | −1 | Go to diff View file |
M | src/scripts/project/admin/src/project-admin-ugroups.ts | +4 | −1 | Go to diff View file |
M | src/templates/project/project-details.mustache | +19 | −2 | Go to diff View file |
M | src/themes/BurningParrot/css/includes/project-admin/_details.scss | +13 | −0 | Go to diff View file |
M | src/tsconfig.json | +2 | −1 | Go to diff View file |
A | tests/unit/common/Project/Icon/ProjectIconCheckerTest.php | +51 | −0 | Go to diff View file |