Skip to content

Conversation

@georginahalpern
Copy link
Contributor

@georginahalpern georginahalpern commented Jun 3, 2025

View shared-ui-components/src/fluent/readme.md for a complete overview of these changes and the plan for rolling them out!

The changes in this PR can be broken down into the below buckets, with several examples for each. Future PRs will be more incremental, can bring 1 control at a time.

  • shared-ui-components/src/fluent: contains new primitives and HOCs (including FluentToolWrapper, which wraps children in FluentProvider and ContextProvider<{useFluent=true}> if the 'newUX' string is present in the QSP or hash)
  • shared-ui-components/src/lines: existing shared components, updated to conditionally render above fluent components if anywhere upstream is wrapped in a FluentToolWrapper
  • examples enabling fluent in the below tools
    • packages/tools/nodeEditor/src/graphEditor.tsx (NME)
    • packages/dev/inspector/src/components/actionTabs/tabs/propertyGridTabComponent.tsx (inspectorV1 property panel)
    • shared-ui-components/src/fluent/tempInspectorV2 (temp folder to show usage before ryan's changes are merged - u can view them in PR history but won't be checked in with the final merge)

Miscellaneous:

  • eslint change to allow useFoo to be camelcased (since that is the standard w fluent)
  • generateDeclaration.ts change to cast fluent types to any in the d.ts files so that consumers don't need to declare fluent dependency (same thing we do for fontawesome)

NOTE that introducing fluent introduced some build issues in this PR, which were diagnosed/ resolved in this test PR and then checked in separately in this PR.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Reviewer - this PR has made changes to one or more package.json files.

@georginahalpern georginahalpern marked this pull request as ready for review June 3, 2025 16:00
@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Building or testing the sandbox has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Graph tools CI has failed you can find the test results at:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/TOOLS/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Building or testing the sandbox has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 3, 2025

Graph tools CI has failed you can find the test results at:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/TOOLS/refs/pull/16709/merge/testResults/

@georginahalpern georginahalpern marked this pull request as draft June 3, 2025 18:22
@bjsplat
Copy link
Collaborator

bjsplat commented Jun 4, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 4, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 4, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 4, 2025

Building or testing the sandbox has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16709/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 4, 2025

Graph tools CI has failed you can find the test results at:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/TOOLS/refs/pull/16709/merge/testResults/

deltakosh pushed a commit that referenced this pull request Jun 16, 2025
….json to point to minified bundle (#16759)

When introducing fluent dependency in [this
PR](#16709) we saw our build
agents running out of memory when running es6/UMD build steps, and we
also saw the importing of public inspector package causing heap
allocation error in the test app sceneWithInspector test.

After many attempts to solve (branching off onto another [smaller
PR](#16747) to isolate the
causes) the solution we are landing on is to reduce parallelization of
build steps (solving OOM during es6/UMD build, and confirmed that it
wont slow down our build) and to update the inspector and gui editor
package.json to point to the minified bundle (solving heap allocation
error, and confirmed via npm link + babylonjs-webpack-es6 test app that
inspector loads properly)

Co-authored-by: Georgina <[email protected]>
@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/?snapshot=refs/pull/16709/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16709/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 16, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 17, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16709/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 17, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16709/merge/?snapshot=refs/pull/16709/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 17, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 17, 2025

@georginahalpern georginahalpern marked this pull request as ready for review June 17, 2025 14:30
@deltakosh deltakosh enabled auto-merge (squash) June 17, 2025 14:41
@georginahalpern georginahalpern disabled auto-merge June 17, 2025 14:43
@georginahalpern georginahalpern enabled auto-merge (squash) June 17, 2025 14:43
@georginahalpern georginahalpern merged commit fd3d76f into BabylonJS:master Jun 17, 2025
20 checks passed
@georginahalpern georginahalpern deleted the freshSharedComponents branch June 17, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants