Files
dagu/ui
Yota Hamada a74d401388 feat(core): waiting status (#1554)
* **New Features**
* Added Human-In-The-Loop (HITL) approval workflow: pause DAGs at
designated steps awaiting manual approval or rejection.
* Introduced "Waiting for approval" and "Rejected" statuses for
workflows and steps.
* New approval and rejection APIs with optional input fields and
rejection reasons.
  * Added wait-status notifications and event handlers.
  * UI modals for approving/rejecting steps with dynamic configuration.
  * Dashboard now displays metrics for waiting and rejected DAG runs.
2026-01-04 18:22:00 +09:00
..
2026-01-04 18:22:00 +09:00

UI

Prerequisites

  • Node.js (latest stable version)
  • pnpm

Development Instructions

1. Starting the Backend Server

The Dagu UI relies on a backend server that provides the necessary data for the UI to function properly. To start the backend server, navigate to the project root directory and execute the following command:

git clone git@github.com:dagu-org/dagu.git
cd dagu
make server

This command will start the backend server at 127.0.0.1:8080 by default. If you need to use a different address or port, you can modify the appropriate settings in the backend configuration file.

2. Starting the Webpack Dev Server

Once the backend server is up and running, you can start the Webpack dev server to serve the frontend assets. To do this, navigate to the ui/ directory and execute the following commands:

cd ui/
pnpm install
pnpm dev

This command will start the Webpack dev server at 127.0.0.1:8081. You can access the UI by opening your web browser and navigating to http://localhost:8081.

3. Building the Bundle.js File

If you need to build the bundle.js file, which contains all the necessary frontend assets, you can do so using the following command:

cd ../
make ui

This command will build the bundle.js file and copy it to dagu/frontend/assets/js/bundle.js. This is necessary for the Go backend to include the JavaScript within the binary.