Skip to content

Add V2 UI packaging and Docker integration#20065

Merged
desertaxle merged 3 commits intomainfrom
ui-v2/v2-ui-packaging-and-docker
Dec 31, 2025
Merged

Add V2 UI packaging and Docker integration#20065
desertaxle merged 3 commits intomainfrom
ui-v2/v2-ui-packaging-and-docker

Conversation

@desertaxle
Copy link
Member

@desertaxle desertaxle commented Dec 31, 2025

Related to #15512

This PR adds support for building and serving the experimental V2 React UI alongside the existing V1 Vue UI in Docker images and Python packages.

The V2 UI can be enabled by setting PREFECT_SERVER_UI_V2_ENABLED=true when starting the server. V1 remains the default.

Changes:

  • Add base path placeholder support to V2 vite.config.ts for dynamic serving
  • Add new PREFECT_SERVER_UI_V2_ENABLED setting (default: false) to switch between UIs
  • Add V2 UI path constants (__ui_v2_static_path__, __ui_v2_static_subpath__)
  • Update Dockerfile with separate V2 UI builder stage using Node 22
  • Update pyproject.toml to include ui-v2 as a build artifact
  • Update create_ui_app() to serve the appropriate UI based on setting
  • Update GitHub Actions workflow to build V2 UI

🤖 Generated with Claude Code

Add support for building and serving the V2 React UI alongside V1:

- Add base path placeholder to V2 vite.config.ts for dynamic serving
- Add PREFECT_UI_V2_ENABLED setting to switch between UIs
- Add V2 UI path constants in prefect.__init__
- Update Dockerfile to build both UIs (V1 with Node 20, V2 with Node 22)
- Update pyproject.toml to include ui-v2 as build artifact
- Update server to serve V2 UI when setting enabled
- Update GitHub Actions workflow to build V2 UI

V1 remains the default. Enable V2 with PREFECT_UI_V2_ENABLED=true.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added enhancement An improvement of an existing feature ui-replatform Related to the React UI rewrite labels Dec 31, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 31, 2025

CodSpeed Performance Report

Merging #20065 will not alter performance

Comparing ui-v2/v2-ui-packaging-and-docker (2edad35) with main (bc25753)

Summary

✅ 2 untouched

@desertaxle desertaxle marked this pull request as ready for review December 31, 2025 18:44
Copy link
Collaborator

@zzstoatzz zzstoatzz left a comment

Choose a reason for hiding this comment

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

@desertaxle desertaxle merged commit 263b7e7 into main Dec 31, 2025
67 of 68 checks passed
@desertaxle desertaxle deleted the ui-v2/v2-ui-packaging-and-docker branch December 31, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement of an existing feature ui-replatform Related to the React UI rewrite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants