-
Notifications
You must be signed in to change notification settings - Fork 127
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
feat: ability to point header logo to other locations #479
feat: ability to point header logo to other locations #479
Conversation
Thanks for the pull request, @arora-r! What's next?Please work through the following steps to get your changes 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. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently unmaintained. To get help with finding a technical reviewer, tag the community contributions project manager for this PR in a comment and let them know that your changes are ready for review:
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #479 +/- ##
==========================================
+ Coverage 67.15% 67.25% +0.09%
==========================================
Files 24 24
Lines 341 342 +1
Branches 80 81 +1
==========================================
+ Hits 229 230 +1
Misses 110 110
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Hey @mphilbrick211, any update on this issue - would we be able to get someone to review this and approved? Anything I can do to get it pushed out sooner? |
Hi @arora-r! Thanks for your patience. We're looking into getting a reviewer for you. Thanks! |
Hey @mphilbrick211 any update? |
@arbrandes - is this something you could help with? |
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.
I find the underlying premise is sound: we probably should allow people to change the logo URL.
At the same time, we find ourselves in a quagmire of toggles and configuration - some of it in the backend, some in the frontend - that we're actively trying to counter by the introduction of the (much) more flexible approach of plugin slots. You can find more details about how we're handling it for the footer here: openedx/wg-frontend#178.
In other words, would you consider your issue to be solved if you could create a plugin to override whatever is in the header as needed?
@arbrandes Thank you for your feedback! Creating a slot plugin would solve the underlying issue and reduce overall complexity. However, this PR offers an immediate and simple solution for administrators who need this functionality now, including myself, without the overhead of developing or integrating a plugin or the risks associated with forking the repo and adding potential vulnerabilities/falling behind. Could we consider the slot implementation for the Header as a future enhancement and have this PR merged in the meantime? |
There are very similar conversations happening around the footer:
It can be gleaned from my comments there (and here) what my general opinion is: we should spring for plugins sooner rather than later in order to avoid adding yet more granular configuration. That doesn't mean my opinion is the only one that counts, though. Plus, the header is more complicated than the footer and will need more careful thought as to what sort of props we'll need to pass down into potential plugins. I guess what I'm trying to say is that I'd like more input from the community before making a decision as maintainer. I'm going to start a thread in the forum and post the link here. |
As promised, here's the thread where we can continue the general conversation: https://discuss.openedx.org/t/plugin-slots-vs-configuration/13009 |
@arora-r @arbrandes - is this still in progress, or can it be closed? Thanks! |
Closing due to inactivity. |
Description
Previously, the top left logo in the LMS header was hard coded to redirect learners to the
/dashboard
page. This PR introduces a configurable option (LOGO_DESTINATION
) allowing administrators to customize the destination URL for the logo link. Now, learners can be redirected to any specified custom link, providing greater flexibility and customization within the LMS.Code changes
LOGO_DESTINATION
) to dynamically control the destination URL of the logo in the header.