feat: add recommendation panel

- added a waffle flag to control recommendation panel
- add react code for the panel

VAN-984
This commit is contained in:
Zainab Amir
2022-06-24 16:02:09 +05:00
committed by Zainab Amir
parent 6f71e4cc0d
commit ef9361ccfe
3 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
"""
Toggles for Dashboard page.
"""
from edx_toggles.toggles import WaffleFlag
# Namespace for student waffle flags.
WAFFLE_FLAG_NAMESPACE = 'student'
# Waffle flag to enable amplitude recommendations
# .. toggle_name: student.enable_amplitude_recommendations
# .. toggle_implementation: WaffleFlag
# .. toggle_default: False
# .. toggle_description: Supports rollout of a POC for amplitude recommendations.
# .. toggle_use_cases: temporary
# .. toggle_creation_date: 2022-06-24
# .. toggle_target_removal_date: None
# .. toggle_warning: None
# .. toggle_tickets: VAN-984
ENABLE_AMPLITUDE_RECOMMENDATIONS = WaffleFlag(f'{WAFFLE_FLAG_NAMESPACE}.enable_amplitude_recommendations', __name__)
def should_show_amplitude_recommendations():
return ENABLE_AMPLITUDE_RECOMMENDATIONS.is_enabled()