Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ProgressV2] Add a coming soon features banner #58316

Merged
merged 16 commits into from
May 2, 2024
Merged

Conversation

lfryemason
Copy link
Contributor

@lfryemason lfryemason commented Apr 29, 2024

Warning!!

The AP CSP Create Performance Task is in progress. The most critical dates are from April 3 - April 30, 2024. Please consider any risk introduced by this PR that could affect our students taking AP CSP. Code.org students taking AP CSP primarily use App Lab for their Create Task, however a small percent use Game Lab. Carefully consider whether your change has any risk of alterering, changing, or breaking anything in these two labs. Even small changes, such as a different button color, are considered significant during this time period. Reach out to the Student Learning team or Curriculum team for more details.

Adds a new banner with information about what features are coming soon to the progress page.

image

Only opens if:

  • The progress page feedback banner is not open
  • The user has not already closed the coming soon banner (this uses local storage, so a new browser or clearing storage will reset this).

Also fixes some bugs with the ProgressFeedback Banner.

Links

https://codedotorg.atlassian.net/browse/TEACH-1030

Testing story

Added unit tests for the new component and re-enabled unit tests for the existing component after bug fixes.

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

@lfryemason lfryemason changed the title Lfm/p banner 1 [ProgressV2] Add a coming soon features banner Apr 29, 2024
@@ -23,7 +23,7 @@ module.exports = {
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export'],
ignorePseudoClasses: ['export', 'global'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is necessary in order to use the :global() selector here. Which is necessary to modify styles of a child component in an external library. The alternative is to use .scss without modules, which teacher tools is trying to move away from.

@lfryemason lfryemason marked this pull request as ready for review April 29, 2024 21:22
@lfryemason lfryemason requested a review from a team as a code owner April 29, 2024 21:22
// expect(questionText).to.not.exist;
// expect(shareMoreText).to.not.exist;
// });
it('attempts reset and reload if error from createFeedback', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this test!

Copy link
Contributor

@kobryan0619 kobryan0619 left a comment

Choose a reason for hiding this comment

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

Looks good! Nice work on this!

@lfryemason lfryemason merged commit e03b9c0 into staging May 2, 2024
2 checks passed
@lfryemason lfryemason deleted the lfm/p-banner-1 branch May 2, 2024 14:22
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.

None yet

2 participants