Repository navigation
refactor(course-about): extract embeddable course content - #180
navinkarkera wants to merge 25 commits into
Conversation
|
Thanks for the pull request, @navinkarkera! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #180 +/- ##
==========================================
+ Coverage 99.56% 99.62% +0.06%
==========================================
Files 101 107 +6
Lines 682 794 +112
Branches 165 222 +57
==========================================
+ Hits 679 791 +112
Misses 2 2
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
209d155 to
fd39df8
Compare
2be5261 to
78865bf
Compare
The builder now returns only the rendered links; no host read the resolved href, so the field and its rationale are gone and the barrel no longer re-exports the result type. Adds a SidebarSocial render/rerender test that fails if the destinations are cached instead of rebuilt from the live location.
78865bf to
2298bdc
Compare
ChrisChV
left a comment
There was a problem hiding this comment.
Looks good 👍
- I tested this: I followed the testing instructions
- I read through the code and considered the security, stability and performance implications of the changes.
- I tested that the UI can be used with a keyboard only (tab order, keyboard controls).
- Includes tests for bugfixes and/or features added.
- Includes documentation
| if (!courseAboutData) { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
This would return an empty page with no feedback. I think we should at least display an alert or an error message.
There was a problem hiding this comment.
The page now shows an error when no course data is returned. A failed refresh still keeps the loaded content.
Only the LMS /static/images/ and /asset paths are resolved to the LMS base URL; data:, blob:, protocol-relative and other sources stay as authored. Drop the unused exports on the local body props and intro actions.
A query that is no longer pending but has no data, including a successful null payload, now renders the existing support alert instead of nothing. Loaded content is still shown when a background refetch fails.
6d10efa to
936b6db
Compare
Branch:
navin/fal-4380/embeddable-course-about(936b6db)Base:
navin/fal-4380/shared-sharing(28154ee)Description:
Testing instructions:
startandadvertised_startare both null,start_date_is_still_defaultis false andendis null: no Classes start or Classes end rows appear.media.course_image.urito an empty string, then to a broken URL: the course image shows the placeholder. Relative overview images use the LMS base URL; absolute ones are unchanged./api/courseware/course/...for an uncached course and reload: support alert replaces the body.AI Disclosure: Co-authored by GPT 6.1 Sol