-
Notifications
You must be signed in to change notification settings - Fork 123
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: allow runtime configuration #603
Conversation
Thanks for the pull request, @dcoa! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
@dcoa Thank you for your contribution. Please let me know once it is ready for our review. |
Hi @natabene this PR is ready for review. |
Codecov Report
@@ Coverage Diff @@
## master #603 +/- ##
==========================================
+ Coverage 39.58% 39.69% +0.11%
==========================================
Files 106 108 +2
Lines 2190 2194 +4
Branches 586 586
==========================================
+ Hits 867 871 +4
Misses 1238 1238
Partials 85 85
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@arbrandes I think you might like to take a look at this. |
@natabene could you help me re-run the test, please? |
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.
The i18n/messages/*.json
files should not be updated manually - they are generated and will be overridden and updated by the transifex/translations jobs. The new English language messages.js file content is sufficient. 👍🏻
I think this looks good otherwise.
5ad28de
to
0befdbc
Compare
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 think this looks good! Don't think we need to wait for any of the other runtime config PRs to merge this, right? It should work regardless of whether we're actually setting config at runtime. If you agree, I can get it merged once we see the tests pass.
Yes, PR does not affect the actual app behavior but I wonder if it's better to use this to change the dependency once frontend-platform has been updated and backport only 1 commit to the nutmeg release. |
Seems reasonable - I don't feel strongly either way. |
@davidjoy: Will you be merging this? |
From @dcoa's comment above, I think we're waiting to use this PR to update the frontend-platform dependency once openedx/frontend-platform#335 merges. @dcoa, let me know if that's not what you intended and I can just merge this! |
Yes, I'm waiting for frontend-platform to update it in this PR |
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.
LGTM as well.
Hello, just an update here, to make it possible to update the package-lock.json (with the new frontend-platform version) a peer dependency error has to be resolved (this PR does that #611 ) |
0befdbc
to
ad2e18b
Compare
ad2e18b
to
cb80cfc
Compare
Hi, @davidjoy @arbrandes someone has already fixed the peer dependency error, and I was able to update the |
Argh - it says the branch has conflicts that must be resolved but isn't showing which files. Apologies, that may be because of the delay in review and something else went into the master branch. I just tested this, seems to work well. If we can get that conflict resolved I'll push the merge button. |
cb80cfc
to
5462815
Compare
Hi hi 🖖, now the conflict is resolved. 😊 |
@dcoa 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
This PR allows the app to change the favicon and the site name in the title tag at runtime and serves as a discussion.
This is part of a work to make it possible to configure the frontend applications at runtime (you can referer to this FWG issue).
This PR depend on openedx/frontend-platform#335
The changes are grouped in a component Head, that uses Helmet library and integrates internationalization to change the MFE name in the title tag according to the language.