Skip to content
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

Peter kulko/design tokens support #696

Conversation

PKulkoRaccoonGang
Copy link
Contributor

Description:

Describe what this pull request changes, and why. Include implications for people using this change.

Merge checklist:

  • Consider running your code modifications in the included example app within frontend-platform. This can be done by running npm start and opening http://localhost:8080.
  • Consider testing your code modifications in another local micro-frontend using local aliases configured via the module.config.js file in frontend-build.
  • Verify your commit title/body conforms to the conventional commits format (e.g., fix, feat) and is appropriate for your code change. Consider whether your code is a breaking change, and modify your commit accordingly.

Post merge:

  • After the build finishes for the merged commit, verify the new release has been pushed to NPM.

adamstankiewicz and others added 22 commits May 14, 2024 10:36
feat: adds support for loading external theme CSS for MFEs

Introduces `useAppTheme` in `AppProvider` to load/inject `<link>` elements for the core theme CSS and any theme variant CSS into the HTML document. Exposes the app theme state and a way to mutate it to consumers via `AppContext`.

fix: handle missing theme config

fix: add env vars to env files

fix: remove unused code

chore: wip commit

fix: prefer runtime config for paragon theme

fix: rebase on master and resolve package conflicts

fix: revert to original webpack.dev.config config

chore: clean up unnecessary comment line

fix: grammar

Co-authored-by: Adolfo R. Brandes <[email protected]>
chore: refresh package-lock.json to lockfileVersion 3

fix: clean up link nodes in document head when no longer needed

fix: fallback to locally installed core and light theme css urls

docs: update to docs

chore: update docs about

fix: expose setThemeVariant
fix: rebase with master and update based on PARAGON changes

chore: remove support for env vars config for paragon dynamic theming
fix: updates

fix: one more update

fix: refresh package-lock.json

fix: refresh package-lock.json pt2

fix: updates

fix: update package-lock.json

fix: make it theme variant agnostic

docs: update howto theming guide

fix: ensure app loads without styles if the PARAGON_THEME_URLS and fallback urls all fail to load

fix: ensure fallback theme links are removed if they also error

docs: add link to mfe runtime config api adr

fix: don't attempt to load paragon css urls if PARAGON_THEME_URLS is absent
docs: fix code example

docs: add missing comma

docs: update how to
chore: update package-lock.json

chore: update package-lock.json take 2

chore: remove console.log statements

fix: ignore system preference change when theme variant set in localstorage

chore: add tests for updates to AppProvider

chore: update react-intl to pass peer dependencies after pinning all deps

chore: split hooks.js up into separate files and begin some related tests

test: add testing to useParagonTheme hooks (openedx#514)

* test: add testing to useParagonThemeCore
* test: add test to useThemeVariants hook
* fix: Paragon definition and remove onload mock
* test: change test message to be clear
@openedx-webhooks
Copy link

openedx-webhooks commented May 31, 2024

Thanks for the pull request, @PKulkoRaccoonGang! 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:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

This is currently a draft pull request. When it is ready for our review and all tests are green, click "Ready for Review", or remove "WIP" from the title, as appropriate.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label May 31, 2024
@PKulkoRaccoonGang PKulkoRaccoonGang marked this pull request as draft May 31, 2024 08:39
Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.64%. Comparing base (de09872) to head (cfc958a).
Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   83.50%   83.64%   +0.14%     
==========================================
  Files          40       48       +8     
  Lines        1073     1388     +315     
  Branches      197      290      +93     
==========================================
+ Hits          896     1161     +265     
- Misses        165      211      +46     
- Partials       12       16       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@openedx-webhooks
Copy link

@PKulkoRaccoonGang Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants