Skip to content

[CORRUPTED] Synthetic Benchmark PR #20065 - Add V2 UI packaging and Docker integration#433

Open
ofir-frd wants to merge 4 commits intobase_pr_20065_20260120_5298from
corrupted_pr_20065_20260120_5298
Open

[CORRUPTED] Synthetic Benchmark PR #20065 - Add V2 UI packaging and Docker integration#433
ofir-frd wants to merge 4 commits intobase_pr_20065_20260120_5298from
corrupted_pr_20065_20260120_5298

Conversation

@ofir-frd
Copy link

Benchmark PR PrefectHQ#20065

Type: Corrupted (contains bugs)

Original PR Title: Add V2 UI packaging and Docker integration
Original PR Description: Related to PrefectHQ#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
Original PR URL: PrefectHQ#20065

Compliance Violation

  • Rule: Pydantic Models Must Use model_validator for Cross-Field Validation
  • Language: Python
  • File: src/prefect/settings/models/server/ui.py

desertaxle and others added 4 commits December 31, 2025 11:18
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>
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