-
Notifications
You must be signed in to change notification settings - Fork 294
feat: add plugin slot for content iframe error component #1771
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
49e16c7
to
25b0ddb
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1771 +/- ##
=======================================
Coverage 90.38% 90.39%
=======================================
Files 344 345 +1
Lines 5811 5817 +6
Branches 1355 1398 +43
=======================================
+ Hits 5252 5258 +6
+ Misses 542 540 -2
- Partials 17 19 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new plugin slot to enable customization of the error page displayed when content iframe fails to load in the learning application. The plugin slot allows developers to replace or modify the default error page with custom implementations.
- Creates a new
ContentIFrameErrorSlot
plugin slot component with slot IDorg.openedx.frontend.learning.content_iframe_error.v1
- Replaces the direct usage of
ErrorPage
component with the new plugin slot in theContentIFrame
component - Provides documentation and configuration examples for the new plugin slot
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/plugin-slots/ContentIFrameErrorSlot/index.tsx | Creates the new plugin slot component that wraps ErrorPage as default content |
src/plugin-slots/ContentIFrameErrorSlot/README.md | Provides documentation and usage examples for the plugin slot |
src/courseware/course/sequence/Unit/ContentIFrame.jsx | Updates error handling to use the new plugin slot instead of ErrorPage directly |
* feat: add plugin slot for content iframe error component * style: quality * fix: copilot suggestions
Adds a plugin slot,
org.openedx.frontend.learning.content_iframe_error.v1
to enable customization via plugins of the error page shown when the unit iframe fails to load.