Skip to content

Keep the local UI development server connected to checkout files #315

Todo

Description

@coderabbitai

Summary

The bazel run //pipeline-ui:local-dev development flow runs from Bazel runfiles. In pipeline-ui/run_local_dev.sh, the symlink-dereferencing loop replaces source symlinks with copies. Vite can then serve those copies instead of the checkout files, so edits to UI source files may not appear in the running application.

Required changes

Update pipeline-ui/run_local_dev.sh so dependency installation, client generation, and the Vite development server run from the checkout's pipeline-ui directory, using BUILD_WORKSPACE_DIRECTORY for the Bazel launch. Remove the source symlink-copy loop for this development target. Preserve the existing local mock startup behavior.

Acceptance criteria

  • bazel run //pipeline-ui:local-dev starts the UI with the local mock configuration.
  • Editing a checkout file such as pipeline-ui/src/App.tsx is reflected in the running UI without restarting Bazel.
  • Installation and client generation use the checkout's pipeline-ui directory.
  • The development target does not replace source symlinks with copied files.

Requested by @Baibhab23.

PR: #283
Review comment: #283 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions