Skip to content

feat(ui, gateway): integrate admin dashboard with vite multi-app#4687

Merged
gustavosbarreto merged 1 commit intomasterfrom
feat/vite-multi-app
Mar 25, 2025
Merged

feat(ui, gateway): integrate admin dashboard with vite multi-app#4687
gustavosbarreto merged 1 commit intomasterfrom
feat/vite-multi-app

Conversation

@luannmoreira
Copy link
Copy Markdown
Member

Description

This PR introduces support for Enterprise Instance Dashboard in the project's original UI repository by integrating a multi-app setup using Vite. The changes ensure that both the standard and enterprise versions of the Admin Dashboard can coexist seamlessly.

Changes

  • Updated vite.config to support building two projects.
  • Modified vitest.config to unify test configurations for both projects.
  • Added the full source code for the instance administration dashboard.
  • Updated the gateway configuration to allow both UI instances to run simultaneously.

How to Test

Build & Run

  1. Verify that both UI instances build successfully using Vite.
  2. Ensure that the correct UI is served based on the URL.

e.g:

https://localhost/ will serve the community instance
https://localhost/admin will serve only routes to the Dashboard

Run Tests

  1. Execute tests with Vitest and confirm that they run without conflicts.

eg:

$ ./bin/docker-compose exec ui /bin/sh to enter the UI container
run $ npm run test

Validate Gateway Behavior

  1. Ensure that the gateway correctly routes requests to the appropriate UI instance.

Additional Notes

This update is critical for supporting enterprise deployments while maintaining compatibility with the existing UI and maintaining the same version of node modules.

@luannmoreira luannmoreira added kind/feature New feature or request area/ui javascript Pull requests that update Javascript code product/cloud Issue/PR related to Cloud Edition release/breaking-change status/ready-for-testing docker Pull requests that update Docker code product/enterprise Issue/PR related to Enterprise Edition area/gateway labels Mar 25, 2025
@luannmoreira luannmoreira requested review from a team as code owners March 25, 2025 12:59
@luannmoreira luannmoreira changed the title feat(ui, gateway): integration of Vite multi-app feat(ui, gateway): adding vite multi-app support to integrate admin dashboard to the UI repository Mar 25, 2025
@luannmoreira luannmoreira changed the title feat(ui, gateway): adding vite multi-app support to integrate admin dashboard to the UI repository feat(ui, gateway): adding Vite Multi-app support to integrate admin dashboard to the UI repository Mar 25, 2025
@luannmoreira luannmoreira changed the title feat(ui, gateway): adding Vite Multi-app support to integrate admin dashboard to the UI repository feat(ui, gateway): integrate admin dashboard with vite multi-app Mar 25, 2025
In this commit, the admin dashboard has been adapted for enterprise instances
in the project's original UI repository.

- Updated vite.config to support building two projects.

- Modified vitest.config to ensure tests for both projects use the same
configuration.

- Added the entire source code of the instance administration dashboard to
the project.

- Updated the gateway configuration to support both UI instances
simultaneously.
@gustavosbarreto gustavosbarreto merged commit 0548526 into master Mar 25, 2025
8 checks passed
@gustavosbarreto gustavosbarreto deleted the feat/vite-multi-app branch March 25, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/gateway area/ui docker Pull requests that update Docker code javascript Pull requests that update Javascript code kind/feature New feature or request product/cloud Issue/PR related to Cloud Edition product/enterprise Issue/PR related to Enterprise Edition release/breaking-change status/ready-for-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants