diff --git a/core/domain/platform_parameter_list.py b/core/domain/platform_parameter_list.py index 57c94ec0e1b4..bef28d792120 100644 --- a/core/domain/platform_parameter_list.py +++ b/core/domain/platform_parameter_list.py @@ -73,3 +73,4 @@ class ParamNames(enum.Enum): 'unpublish_exploration_email_html_body') CD_ADMIN_DASHBOARD_NEW_UI = 'cd_admin_dashboard_new_ui' RECORD_PLAYTHROUGH_PROBABILITY = 'record_playthrough_probability' + NEW_LESSON_PLAYER = 'new_lesson_player' diff --git a/core/domain/platform_parameter_list_test.py b/core/domain/platform_parameter_list_test.py index 97be5a73a6dd..8ff0a10c68a4 100644 --- a/core/domain/platform_parameter_list_test.py +++ b/core/domain/platform_parameter_list_test.py @@ -67,7 +67,8 @@ class ExistingPlatformParameterValidityTests(test_utils.GenericTestBase): 'show_translation_size', 'signup_email_body_content', 'signup_email_subject_content', - 'unpublish_exploration_email_html_body'] + 'unpublish_exploration_email_html_body', + 'new_lesson_player'] def test_all_defined_parameters_are_valid(self) -> None: all_names = ( diff --git a/core/domain/platform_parameter_registry.py b/core/domain/platform_parameter_registry.py index a682e264b889..53cad808c005 100644 --- a/core/domain/platform_parameter_registry.py +++ b/core/domain/platform_parameter_registry.py @@ -458,6 +458,11 @@ def _to_platform_parameter_model( 'Enable learner groups feature', platform_parameter_domain.FeatureStages.PROD) +Registry.create_feature_flag( + ParamNames.NEW_LESSON_PLAYER, + 'This flag is to enable the exploration player redesign.', + platform_parameter_domain.FeatureStages.DEV) + Registry.create_platform_parameter( ParamNames.PROMO_BAR_ENABLED, 'Whether the promo bar should be enabled for all users', diff --git a/core/platform_feature_list.py b/core/platform_feature_list.py index b979cc37b9ec..aaf675cde61d 100644 --- a/core/platform_feature_list.py +++ b/core/platform_feature_list.py @@ -45,7 +45,8 @@ DEV_FEATURES_LIST = [ params.ParamNames.SHOW_FEEDBACK_UPDATES_IN_PROFILE_PIC_DROPDOWN, params.ParamNames.SHOW_REDESIGNED_LEARNER_DASHBOARD, - params.ParamNames.SHOW_TRANSLATION_SIZE + params.ParamNames.SHOW_TRANSLATION_SIZE, + params.ParamNames.NEW_LESSON_PLAYER ] # Names of features in test stage, the corresponding feature flag instances must diff --git a/core/templates/domain/platform_feature/feature-status-summary.model.ts b/core/templates/domain/platform_feature/feature-status-summary.model.ts index 0d285852e5fc..f008ab43ff2e 100644 --- a/core/templates/domain/platform_feature/feature-status-summary.model.ts +++ b/core/templates/domain/platform_feature/feature-status-summary.model.ts @@ -38,7 +38,8 @@ export enum FeatureNames { ShowRedesignedLearnerDashboard = 'show_redesigned_learner_dashboard', IsImprovementsTabEnabled = 'is_improvements_tab_enabled', LearnerGroupsAreEnabled = 'learner_groups_are_enabled', - CdAdminDashboardNewUi = 'cd_admin_dashboard_new_ui' + CdAdminDashboardNewUi = 'cd_admin_dashboard_new_ui', + NewLessonPlayer = 'new_lesson_player' } export interface FeatureStatusSummaryBackendDict {