feat: integrate the frontend shared libraries #552
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related: #348
This pull request introduces several enhancements to the frontend workspace, focusing on enabling module federation, improving test configuration and reliability, and updating environment and dependency management. The changes modernize the build setup, enhance testability, and streamline the handling of shared modules and assets. These changes are heavily based on Model Registry frontend code so that both repositories are aligned.
Module Federation & Build System Updates:
@module-federation/enhanced
, including a newmoduleFederation.js
config and integration into the webpack build process. This enables sharing and exposing modules across different applications.Dependency and Asset Management:
package.json
to include new dependencies:@module-federation/enhanced
,mod-arch-core
,mod-arch-kubeflow
, andmod-arch-shared
.mod-arch-shared
and related packages.Testing Improvements:
NavBar
page object for namespace selection, and updated tests to use this abstraction for better maintainability.Environment and Configuration Updates:
IS_PROJECT_ROOT_DIR
,PORT
,MANDATORY_NAMESPACE
, etc.) and adjust URL prefixes for local development and testing.Jest Configuration:
transformIgnorePatterns
injest.config.js
to support new shared modules, ensuring they are properly transpiled during tests.These changes collectively improve the modularity, scalability, and testability of the frontend workspace, preparing it for more robust integration with other modules and future development.
Preview on KF Central Dashboard
Screen.Recording.2025-08-28.at.1.30.01.PM.mov