Skip to content

refactor(dashboards): use common util for federation component loading#1440

Merged
spike-rabbit merged 1 commit intomainfrom
refactor/dashboards/federation-loader
Feb 6, 2026
Merged

refactor(dashboards): use common util for federation component loading#1440
spike-rabbit merged 1 commit intomainfrom
refactor/dashboards/federation-loader

Conversation

@chintankavathia
Copy link
Member

Moves component creation and error handling logic from module-federation, native-federation, mf-bridge into common util.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully refactors the component creation and error handling logic into a common utility function, handleFederatedModuleLoad. This change significantly reduces code duplication across the module-federation, native-federation, and mf-bridge modules, leading to improved maintainability and consistency. The new utility function is well-designed, handling module loading, component instantiation, and error reporting effectively. The type definitions and error handling within the new utility file are appropriate for the dynamic nature of federated modules. Overall, this is a clean and valuable refactoring.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

@chintankavathia chintankavathia force-pushed the refactor/dashboards/federation-loader branch from dc937b6 to ed23f8b Compare February 4, 2026 11:45
@chintankavathia chintankavathia marked this pull request as ready for review February 4, 2026 12:12
@chintankavathia chintankavathia requested review from a team as code owners February 4, 2026 12:12
@chintankavathia chintankavathia force-pushed the refactor/dashboards/federation-loader branch 2 times, most recently from cd33d47 to ea4bd7c Compare February 6, 2026 12:07
Copy link
Member

@spike-rabbit spike-rabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Moves component creation and error handling logic from module-federation, native-federation, mf-bridge into common util.
@spike-rabbit spike-rabbit force-pushed the refactor/dashboards/federation-loader branch from ea4bd7c to 65aa56b Compare February 6, 2026 16:57
@spike-rabbit spike-rabbit enabled auto-merge (rebase) February 6, 2026 16:58
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Code Coverage

@spike-rabbit spike-rabbit merged commit d2d8588 into main Feb 6, 2026
10 checks passed
@spike-rabbit spike-rabbit deleted the refactor/dashboards/federation-loader branch February 6, 2026 17:12
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.

2 participants