Skip to content

Adding Warning to Hidden Assessments form LockDialog - #48078

Merged
hannahbergam merged 5 commits into
stagingfrom
hbergam/unlock-warn
Sep 15, 2022
Merged

Adding Warning to Hidden Assessments form LockDialog#48078
hannahbergam merged 5 commits into
stagingfrom
hbergam/unlock-warn

Conversation

@hannahbergam

@hannahbergam hannahbergam commented Sep 13, 2022

Copy link
Copy Markdown
Contributor

Updates the lesson lock dialog to include a warning (plus instructions) if the assessment is currently hidden.

isHidden is already being sent to the lesson tile, so sending it down to LockDialog as a prop as well.

Additional cleanup in the dialog includes switching over all commonMsg instances to i18n.

Screen Shot 2022-09-14 at 12 35 53 PM

Links

Testing story

Added two tests in LessonLockDialogTest- one each to ensure the message appears when the lesson is hidden, and not otherwise.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@hannahbergam
hannahbergam marked this pull request as ready for review September 14, 2022 19:37
@hannahbergam
hannahbergam requested a review from a team as a code owner September 14, 2022 19:37
@hannahbergam
hannahbergam requested a review from a team September 14, 2022 22:33
Comment thread apps/src/code-studio/components/progress/lessonLockDialog/LessonLockDialog.jsx Outdated

@bethanyaconnor bethanyaconnor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@hannahbergam
hannahbergam merged commit 02443c2 into staging Sep 15, 2022
@hannahbergam
hannahbergam deleted the hbergam/unlock-warn branch September 15, 2022 21:39
@dju90

dju90 commented Sep 16, 2022

Copy link
Copy Markdown
Contributor

Thanks Hannah! Looks great 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants