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

Convert TeacherSections component to functional component #58137

Merged
merged 2 commits into from
May 2, 2024

Conversation

mgc1194
Copy link
Contributor

@mgc1194 mgc1194 commented Apr 20, 2024

As part of the Colorado Privacy Act work the Platform team does, we add warning banners to different Sections components.

P20-815 requires adding a Warning Notification to the TeacherSections component in the TeacherHomepage.

I'd like to update the existing code and convert the class component into a functional component.

Links

Testing story

Screenshot 2024-04-19 at 18 34 20

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

coteacherInviteForPl,
studentSectionIds,
plSectionIds,
hiddenPlSectionIds,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see this prop being used anywhere in this component. is it some legacy prop that we could get rid of, or is it missing from shouldRenderPlSections?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about this - I'll ask in the teacher tools channel

Copy link
Contributor

Choose a reason for hiding this comment

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

@mgc1194 mgc1194 requested review from a team and davidsbailey and removed request for a team April 20, 2024 00:27
@mgc1194 mgc1194 changed the title converted react component to functional component Convert TeacherSections component to functional component Apr 20, 2024
@mgc1194 mgc1194 marked this pull request as ready for review April 20, 2024 01:34
@davidsbailey davidsbailey requested a review from a team April 20, 2024 03:31
@davidsbailey davidsbailey removed their request for review April 29, 2024 16:20
@mgc1194 mgc1194 requested review from a team and Nokondi and removed request for a team May 1, 2024 19:20
Copy link
Contributor

@Nokondi Nokondi left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for updating this!

@mgc1194 mgc1194 merged commit f7c8642 into staging May 2, 2024
2 checks passed
@mgc1194 mgc1194 deleted the p20-815/child-account-policy-section-warning branch May 2, 2024 22:49
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

3 participants