feat: AA-1138: Adds in Weekly Goal Celebration Modal (#797)

The logic to show the modal is controlled by the backend.
Displays the modal only in courseware the first time the learner
hits their weekly learning goal. After viewing the goal, the
database row is updated to not show the modal again.

Also updates first section celebration to use the StandardModal
component as the Modal component has been deprecated.
This commit is contained in:
Dillon Dumesnil
2022-01-18 06:11:36 -08:00
committed by GitHub
parent 2789c7415b
commit b9d1bf0624
10 changed files with 220 additions and 61 deletions

View File

@@ -198,7 +198,7 @@ function normalizeMetadata(metadata) {
accessExpiration: camelCaseObject(data.access_expiration),
canShowUpgradeSock: data.can_show_upgrade_sock,
contentTypeGatingEnabled: data.content_type_gating_enabled,
courseGoals: data.course_goals,
courseGoals: camelCaseObject(data.course_goals),
id: data.id,
title: data.name,
number: data.number,