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

Dcoa/design tokens support #7

Closed
wants to merge 8 commits into from
Closed

Commits on May 7, 2024

  1. feat: add ability to dynamically load theme overrides

    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]>
    2 people authored and dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    7cda070 View commit details
    Browse the repository at this point in the history
  2. fix: remove duplicate import

    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
    adamstankiewicz authored and dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    b687373 View commit details
    Browse the repository at this point in the history
  3. docs: update docs

    fix: rebase with master and update based on PARAGON changes
    
    chore: remove support for env vars config for paragon dynamic theming
    adamstankiewicz authored and dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    184da8e View commit details
    Browse the repository at this point in the history
  4. chore: clean up package-lock

    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
    adamstankiewicz authored and dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    90c3fb9 View commit details
    Browse the repository at this point in the history
  5. fix: brand overrides

    docs: fix code example
    
    docs: add missing comma
    
    docs: update how to
    adamstankiewicz authored and dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    5a1a253 View commit details
    Browse the repository at this point in the history
  6. feat: support dark mode

    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
    dcoa committed May 7, 2024
    Configuration menu
    Copy the full SHA
    383979d View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Configuration menu
    Copy the full SHA
    82b3df0 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Configuration menu
    Copy the full SHA
    4c50878 View commit details
    Browse the repository at this point in the history