Skip to content

Fix text to speech and lesson extras not showing in advanced settings when creating a section #66872

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

Conversation

Nokondi
Copy link
Contributor

@Nokondi Nokondi commented Jul 2, 2025

There was an error preventing two advanced section options (text to speech and lesson extras) from showing on the section edit page when creating a new section. This was because the booleans that determine whether to display these options would only be set if the course selected was a standalone unit. This update removes the standalone unit check so that the options will display for any course that allows for text to speech or includes lesson extras.

Links

TEACH-1917

Testing story

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

@Nokondi Nokondi requested review from a team and lfryemason and removed request for a team July 2, 2025 19:00
// - sections: list of objects that represent the sections to create
// - updateSection: function to update the section at the given index
// - batchUpdateSection: function to update multiple section properties at once
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 had forgotten to update the comments here when I added the batchUpdateSection method.

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 now!

// - sections: list of objects that represent the sections to create
// - updateSection: function to update the section at the given index
// - batchUpdateSection: function to update multiple section properties at once
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 now!

@Nokondi Nokondi merged commit 880f884 into staging Jul 3, 2025
6 checks passed
@Nokondi Nokondi deleted the fix-mismatch-between-advanced-settings-toggle-when-creating-or-editing-section branch July 3, 2025 13:33
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.

2 participants