Various improvements to preferences code (#27710)

* Add isPostFlagged selector

* Remove unused code for actions_menu preferences

* Improve types of Preference and getPreference

* MM-58111 Change makeGetCategory to take category name once

* Use shouldShowJoinLeaveMessages everywhere

* Change makeGetCategory to better memoize its result

* Fix test that needs EnableJoinLeaveMessageByDefault to be set

* Remove more references to action_menu preferences
Этот коммит содержится в:
Harrison Healey
2024-08-01 18:53:30 -04:00
коммит произвёл GitHub
родитель 28939d84da
Коммит 6956923b6a
39 изменённых файлов: 446 добавлений и 392 удалений

Просмотреть файл

@@ -261,7 +261,6 @@ function resetUserPreference(userId) {
cy.apiSaveOnboardingTaskListPreference(userId, 'onboarding_task_list_open', 'false');
cy.apiSaveOnboardingTaskListPreference(userId, 'onboarding_task_list_show', 'false');
cy.apiSaveCloudTrialBannerPreference(userId, 'trial', 'max_days_banner');
cy.apiSaveActionsMenuPreference(userId);
cy.apiSaveSkipStepsPreference(userId, 'true');
cy.apiSaveStartTrialModal(userId, 'true');
cy.apiSaveUnreadScrollPositionPreference(userId, 'start_from_left_off');