stable

Clone or download

Read-only

Move theme selection in dedicated page

This is a follow-up to cfffc3a3f6b4dfe2f2501e4df88e7ea2bbb47419. Now the user can choose the theme color. Part of story #14552: User preferences goes Burning Parrot Change-Id: Iba97459a1cad078b408b86027d2b853653f0d7d3

Modified Files

Name
M site-content/en_US/account/account.tab +0 −2 Go to diff View file
M site-content/en_US/scripts/locale.txt +0 −4 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +27 −0 Go to diff View file
M site-content/fr_FR/account/account.tab +0 −2 Go to diff View file
M site-content/fr_FR/scripts/locale.txt +0 −4 Go to diff View file
M src/common/Request/RouteCollector.php +6 −2 Go to diff View file
M src/common/User/Account/AccountCssAsset.php +2 −2 Go to diff View file
M src/common/User/Account/Appearance/AppareancePresenterBuilder.php +11 −3 Go to diff View file
M src/common/User/Account/Appearance/AppearancePresenter.php +14 −4 Go to diff View file
A src/common/User/Account/Appearance/ThemeColorPresenter.php +46 −0 Go to diff View file
A src/common/User/Account/Appearance/ThemeColorPresenterBuilder.php +59 −0 Go to diff View file
M src/common/User/Account/DisplayAppearanceController.php +11 −0 Go to diff View file
M src/common/User/Account/DisplayKeysTokensController.php +2 −2 Go to diff View file
M src/common/User/Account/UpdateAppearancePreferences.php +50 −5 Go to diff View file
M src/common/User/Account/templates/appearance.mustache +2 −9 Go to diff View file
A src/common/User/Account/templates/appearance/color.mustache +10 −0 Go to diff View file
A src/common/User/Account/templates/appearance/language.mustache +9 −0 Go to diff View file
M src/common/User/PreferencesPresenter.class.php +0 −15 Go to diff View file
M src/common/layout/ThemeVariant.class.php +2 −2 Go to diff View file
M src/common/layout/ThemeVariantColor.php +82 −19 Go to diff View file
M src/templates/user/preferences.mustache +0 −8 Go to diff View file
D src/www/account/get_available_theme_variants.php +0 −46 Go to diff View file
M src/www/account/updateprefs.php +0 −19 Go to diff View file
A src/www/scripts/account/appearance.ts +56 −0 Go to diff View file
M src/www/scripts/tuleap/account-maintenance.js +1 −124 Go to diff View file
M src/www/scripts/webpack.config.js +11 −7 Go to diff View file
M src/www/themes/BurningParrot/BurningParrotTheme.php +3 −0 Go to diff View file
M src/www/themes/BurningParrot/css/account/_account.scss +1 −0 Go to diff View file
A src/www/themes/BurningParrot/css/account/includes/_appearance.scss +63 −0 Go to diff View file
M src/www/themes/BurningParrot/css/account/webpack.common.js +1 −1 Go to diff View file
D src/www/themes/FlamingParrot/FlamingParrot_CSSFilesProvider.class.php +0 −60 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +4 −5 Go to diff View file
D src/www/themes/FlamingParrot/css/utils/_picker.scss +0 −58 Go to diff View file
M src/www/themes/common/css/utils/_account-maintenance.scss +0 −41 Go to diff View file
A tests/phpunit/common/User/Account/Appearance/ThemeColorPresenterBuilderTest.php +59 −0 Go to diff View file
M tests/phpunit/common/User/Account/DisplayAppearanceControllerTest.php +2 −1 Go to diff View file
M tests/phpunit/common/User/Account/UpdateAppearancePreferencesTest.php +147 −17 Go to diff View file