-
Notifications
You must be signed in to change notification settings - Fork 181
feat: support design tokens and paragon 23 #1436
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, @dcoa! 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. 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. |
4df75f7
to
c707d82
Compare
c707d82
to
b4faf7a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1436 +/- ##
=======================================
Coverage 87.69% 87.69%
=======================================
Files 124 124
Lines 2299 2299
Branches 646 642 -4
=======================================
Hits 2016 2016
Misses 274 274
Partials 9 9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sandbox deployment failed 💥 |
Sandbox deployment successful 🚀 |
The styles are not been displayed due to the url is not correct as you can see in the error:
This is because frontend-platform uses BASE_URL to create the url, as you can see here export const fallbackThemeUrl = (url) => {
const baseUrl = getConfig().BASE_URL || window.location?.origin;
return `${baseUrl}${basename}${url}`;
}; Problem The problem is the url does not have the protocol on it, so is resolve as a path instead of a full url, is being defined by tutor-mfe like:
There is 2 ways to solve it:
For the second point we might add some consistency in the MFEs variables (for development) most of the apps has the protocol on it but some of them not (as shown here) Checked (has the http on it):
I would like to have your opinion before making any change @brian-smith-tcril |
@dcoa I would worry that updating the
I think ideally we'd be able to handle both, so @adamstankiewicz thoughts? |
I agree this would ideally be handled within Example: <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@openedx/[email protected]/dist/light.css"> In this case, the URL would use the same protocol as the current page (i.e., https if the app is hosted on https, http if the app is hosted on http). |
8c93fa5
to
ad38966
Compare
Sandbox deployment successful 🚀 |
@brian-smith-tcril, this PR is ready for review |
ad38966
to
4b48b92
Compare
Sandbox deployment successful 🚀 |
4b48b92
to
e6940e5
Compare
Sandbox deployment successful 🚀 |
e6940e5
to
856ee5c
Compare
Sandbox deployment successful 🚀 |
856ee5c
to
5f03a07
Compare
Sandbox deployment failed 💥 |
Sandbox deployment successful 🚀 |
Warning
This PR should not be merge to
master
directly, it should point tomaster-design-tokens
once the branch has been created.Description
This PR updates frontend app authn to support CSS variables and the corresponding paragon design tokens.
Changes implemented:
Important
This PR requires a compatible version with paragon 23 of dependencies, because of that the following PRs need to be merged first:
How to test
Navigate the sandbox