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

STRIPES-861: Setup module federation #1303

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

STRIPES-861: Setup module federation #1303

wants to merge 11 commits into from

Conversation

mkuklis
Copy link
Contributor

@mkuklis mkuklis commented Apr 25, 2023

@mkuklis mkuklis marked this pull request as draft April 25, 2023 13:56
@github-actions
Copy link

github-actions bot commented Apr 25, 2023

Jest Unit Test Statistics

56 tests  ±0   56 ✔️ ±0   6s ⏱️ +2s
  8 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit 01f3df8. ± Comparison against base commit 9cefa1d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Apr 25, 2023

BigTest Unit Test Statistics

    1 files  ±    0      1 suites  ±0   3m 43s ⏱️ + 3m 33s
160 tests  - 111    45 ✔️  - 221  4 💤  - 1  111 +111 
274 runs  ±    0  159 ✔️  - 110  4 💤  - 1  111 +111 

For more details on these failures, see this check.

Results for commit 01f3df8. ± Comparison against base commit 9cefa1d.

♻️ This comment has been updated with latest results.

@mkuklis mkuklis changed the title STRIPES-861: Setup federation STRIPES-861: Setup module federation Apr 25, 2023
mkuklis and others added 10 commits April 25, 2023 21:08
Draft: load translations when loading remote modules

Note: QueryClientProvider must be explicitly shared
See https://tanstack.com/query/v3/docs/react/reference/QueryClientProvider

Refs STCOR-718, STRIPES-861
Load remote icons, and clean up the translation loading a bit; it was
still very much in draft form, and still is, but at least it doesn't
throw lint errors everywhere now.

Refs STCOR-725, STRIPES-861
Correctly set each apps' localized `displayName` attribute. It isn't
totally clear to me why this doesn't work via `formattedMessage`. It
seems that something is happening asynchronously that we don't realize
is async, and therefore don't await, and then we end up calling
`formatMessage()` before the translations have been pushed to the store.
In any case, pulling the value straight from the translations array
works fine.

Refs STCOR-718
Correctly handle multiple icons per application.

Refs STCOR-725
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants