fix: crop course details banner image#659
Conversation
|
Thanks for the pull request, @edschema! 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. DetailsWhere 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. |
Co-authored-by: Codex <codex@openai.com>
860fffa to
d379639
Compare
Description
This PR addresses issue openedx/wg-mobile#46
This change fixes the native iOS Course Details page banner image so it fills the intended banner frame and crops overflow instead of preserving an image-driven aspect ratio that could render incorrectly.
The implementation is limited to Discovery/Discovery/Presentation/NativeDiscovery/CourseDetailsView.swift Note: no Android, API, persistence, analytics, event tracking, localization, or server-side behavior is changed.
Out of Scope
Change Log
CourseBannerView no longer owns page-level layout decisions through the parent GeometryProxy, isHorisontal, or UIDevice checks. Instead, it renders the course banner image into whatever finite frame its parent provides.
The parent layout now owns the sizing:
Inside CourseBannerView, the KFImage is rendered with:
AI Disclosure
Codex was used to help diagnose the bug, catalog the current behavior, suggest an implementation shape, execute the fix, and generate the framework for the PR text based on Open edX guidances in the docs. Each step required manual review to avoid scope creep and to ensure the fix was well defined.