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 12 commits into
base: master
Choose a base branch
from
Draft

STRIPES-861: Setup module federation #1303

wants to merge 12 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 12 commits December 4, 2024 12:33
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
Major refactoring in stripes-core between this branch's initial work and
the present lead to some discrepancies. The only change of note here, I
think, is the relocation of `<Suspense>` from ModuleRoutes down into
AppRoutes. It isn't clear to me why that was necessary or why it worked.
It was just a hunch that I tried ... and it worked.

Prior to that change, AppRoutes would get stuck in a render loop,
infinitely reloading (yes, even the memoized functions). I don't have a
good explanation for the bug or the fix.
Copy link

github-actions bot commented Dec 4, 2024

Jest Unit Test Results

0 files   -   1  0 suites   - 55   0s ⏱️ - 1m 35s
0 tests  - 349  0 ✅  - 349  0 💤 ±0  0 ❌ ±0 
0 runs   - 352  0 ✅  - 352  0 💤 ±0  0 ❌ ±0 

Results for commit 44bd6dd. ± Comparison against base commit 4868456.

Copy link

github-actions bot commented Dec 4, 2024

Bigtest Unit Test Results

0 tests   - 192   0 ✅  - 187   0s ⏱️ -6s
0 suites  -   1   0 💤  -   5 
0 files    -   1   0 ❌ ±  0 

Results for commit 44bd6dd. ± Comparison against base commit 4868456.

Copy link

sonarcloud bot commented Dec 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants