2.27.0 • Published 2 days ago

@temporalio/ui v2.27.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 days ago

Temporal UI

Prerequisites

Temporal must be running in development.

Temporal UI requires Temporal v1.16.0 or later.

Using Temporal CLI

You can install Temporal CLI using Homebrew:

brew install temporal

You can start a Temporal server in development using the following command:

temporal server start-dev

Development

Local Development

Setup

Once you have the prerequisites going, run the following:

pnpm install

Running pnpm install will attempt to download and install the most recent version of Temporal CLI into ./bin/cli/temporal. The development server will attempt to use use this version of this Temporal when starting up.

  • If that port is already in use, the UI will fallback to trying to talk to whatever process is running on that port.
  • If you do not have a version of Temporal CLI at ./bin/cli/temporal, the development server will look for a version of Temporal CLI in your path.
  • For Windows users, you will need to start Temporal using one of the methods listed above until we have sufficiently tested this functionality on Windows. (We would absolutely welcome a pull request.)
git submodule update

This clones the Temporal API Protos into the git submodule, which is required for local development of the UI when running against a local version of the UI server.

To run a local development version of the Svelte application via Vite, run pnpm dev. The application will run on http://localhost:3000 against a local ui-server running along with Temporal server from the temporal-cli.

pnpm dev

Alternatively, you can run pnpm dev:temporal-cli to run against the version of ui-server and Temporal server included temporal-cli.

pnpm dev:temporal-cli

Building the UI

The Temporal UI can be built for local preview. You must set the VITE_TEMPORAL_UI_BUILD_TARGET environment variable in order to build the assets. This will be set for you if you use either of the following pnpm scripts. The resulting assets will be placed in ./dist.

You can preview the built app with pnpm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

pnpm build:local

The Temporal UI can build assets for ui-server. The resulting assets will be placed in ./server/ui/assets.

pnpm build:server

Using Docker

After pulling down the lastest version of Temporal's docker-compose, you can access the UI by visiting http://localhost:8080.

If you want to point the development environment at the docker-compose version of Temporal, you can use the following command:

pnpm dev:docker
pnpn run build:docker
pnpn run preview:docker

Running UI and Temporal Server locally

  1. Build the ui-server image:

    cd server
    docker build -t my-ui-server .
  2. In temporal repo

    1. checkout feature branch or main
    2. edit ui-server image name in develop/docker-compose/docker-compose.yml

        temporal-ui:
          image: my-ui-server

    And start the server dependencies

    make start-dependencies
  3. Start the Temporal server

    make start
  4. Change Vite port due to Grafana being on port 3000

  server: {
    port: 3001,
  }

Testing

We use Playwright to interactively test the Temporal UI.

Running the E2E tests

The e2e tests run against the UI with workflows via the TypeScript SDK, a locally built version of the UI Server, a NodeJS/Express Codec Server, and a Temporal dev server via Temporal CLI

pnpm test:e2e

Running the Integration tests

The integration tests run against the UI using Mocks

pnpm test:integration

Both pnpm test:e2e and pnpm test:integration use the playwright.config.ts at the root of the repo. This file will run the UI via the vite development server with the correct configuration by running either pnpm serve:playwright:e2e or pnpm serve:playwright:integration. It will also invoke the default function in tests/globalSetup.ts, which instantiates all of the necessary dependencies (UI Server, Codec Server, Temporal Server, Temporl Workers, etc.) when running in e2e mode.

Configuration

Set these environment variables if you want to change their defaults

VariableDescriptionDefaultStage
VITE_APITemporal HTTP API address. Set to empty to use relative paths | http://localhost:8322 | Build
VITE_MODEBuild targetdevelopmentBuild

Releases

Our ui repo releases page (https://github.com/temporalio/ui/releases) is for managing our npm package. The package includes a copy of /lib directory with types. Our ui-server repo releases page (https://github.com/temporalio/ui-server/releases) is for managing docker images for the entire front-end app.

2.27.0

2 days ago

2.26.7

4 days ago

2.26.6

5 days ago

2.26.5

10 days ago

2.26.4

11 days ago

2.26.3

12 days ago

2.26.2

12 days ago

2.26.1

12 days ago

2.26.0

12 days ago

2.25.4

23 days ago

2.25.6

18 days ago

2.25.5

18 days ago

2.25.3

24 days ago

2.25.0

26 days ago

2.25.2

25 days ago

2.25.1

26 days ago

2.24.5

1 month ago

2.24.4

1 month ago

2.24.3

1 month ago

2.24.1

2 months ago

2.24.2

2 months ago

2.23.6

2 months ago

2.24.0

2 months ago

2.23.5-sandbox.0

2 months ago

2.23.5

2 months ago

2.23.3-sandbox.1

2 months ago

2.23.4

3 months ago

2.23.3

3 months ago

2.23.3-theme.0

3 months ago

2.23.2

3 months ago

2.23.1

3 months ago

2.23.0

3 months ago

2.22.7

3 months ago

2.22.6

3 months ago

2.22.5-zeta.2

3 months ago

2.22.5-zeta.1

3 months ago

2.22.3

3 months ago

2.22.5

3 months ago

2.22.4

3 months ago

2.22.2

4 months ago

2.22.1

4 months ago

2.22.0

4 months ago

2.22.1-beta

4 months ago

2.21.10

5 months ago

2.22.0-north-star

5 months ago

2.21.8

5 months ago

2.21.7

5 months ago

2.21.9

5 months ago

2.22.1-north-star

5 months ago

2.19.0

7 months ago

2.18.9

7 months ago

2.18.7

7 months ago

2.18.8

7 months ago

2.18.5

8 months ago

2.18.6

8 months ago

2.18.3

8 months ago

2.18.4

8 months ago

2.18.1

9 months ago

2.18.2

8 months ago

2.18.0

9 months ago

2.21.0

6 months ago

2.16.11

10 months ago

2.16.10

10 months ago

2.21.2

6 months ago

2.21.1

6 months ago

2.21.4

6 months ago

2.21.3

6 months ago

2.21.6

6 months ago

2.21.5

6 months ago

2.17.8

9 months ago

2.17.9

9 months ago

2.17.6

9 months ago

2.17.7

9 months ago

2.17.4

9 months ago

2.17.5

9 months ago

2.17.2

9 months ago

2.17.3

9 months ago

2.17.0

10 months ago

2.17.1

9 months ago

2.20.2

6 months ago

2.20.0

6 months ago

2.20.1

6 months ago

2.17.3-beta.2

9 months ago

2.17.3-beta.1

9 months ago

2.16.9

10 months ago

2.16.7

10 months ago

2.16.8

10 months ago

2.17.10

9 months ago

2.16.5

11 months ago

2.16.6

11 months ago

2.16.3

11 months ago

2.16.4

11 months ago

2.16.1

11 months ago

2.16.2

11 months ago

2.16.0-beta.1

11 months ago

2.16.0

11 months ago

2.15.4-pathForApi.1

11 months ago

2.15.4

12 months ago

2.15.2

12 months ago

2.15.3

12 months ago

2.15.0

1 year ago

2.15.1

1 year ago

2.14.3

1 year ago

2.14.1

1 year ago

2.14.2

1 year ago

2.14.0

1 year ago

2.13.6

1 year ago

2.13.4

1 year ago

2.13.5

1 year ago

2.13.2

1 year ago

2.13.3

1 year ago

2.2.0-topNav.3

1 year ago

2.2.0-topNav.2

1 year ago

2.13.0

1 year ago

2.13.1

1 year ago

2.12.0

1 year ago

2.12.1

1 year ago

2.11.1

1 year ago

2.2.0-topNav.1

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.0-webUrl.2

1 year ago

2.2.0-webUrl.3

1 year ago

2.2.0-webUrl.0

1 year ago

2.2.0-webUrl.1

1 year ago

2.2.0-topNav.0

1 year ago

2.2.11

1 year ago

2.2.7

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.1.89

1 year ago

2.1.96

1 year ago

2.1.97

1 year ago

2.1.94

1 year ago

2.1.95

1 year ago

2.1.92

1 year ago

2.1.93

1 year ago

2.1.90

1 year ago

2.1.91

1 year ago

2.2.0-beta.0

1 year ago

2.2.0-beta.1

1 year ago

2.2.0-beta.2

1 year ago

2.2.0-beta.3

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.6

1 year ago

2.2.0-alpha.0

1 year ago

2.2.0-alpha.4

1 year ago

2.2.0-alpha.3

1 year ago

2.2.0-alpha.2

1 year ago

2.2.0-alpha.1

1 year ago

2.1.87

1 year ago

2.1.88

1 year ago

2.1.85

1 year ago

2.1.86

1 year ago

2.1.83

1 year ago

2.1.84

1 year ago

2.1.81

1 year ago

2.1.82

1 year ago

2.1.80

2 years ago

2.1.69

2 years ago

2.1.67

2 years ago

2.1.68

2 years ago

2.1.65

2 years ago

2.1.63

2 years ago

2.1.64

2 years ago

2.1.78

2 years ago

2.1.79

2 years ago

2.1.76

2 years ago

2.1.77

2 years ago

2.1.74

2 years ago

2.1.75

2 years ago

2.1.72

2 years ago

2.1.73

2 years ago

2.1.70

2 years ago

2.1.71

2 years ago

2.1.49

2 years ago

2.1.47

2 years ago

2.1.48

2 years ago

2.1.45

2 years ago

2.1.46

2 years ago

2.1.43

2 years ago

2.1.44

2 years ago

2.1.41

2 years ago

2.1.42

2 years ago

2.1.40

2 years ago

2.1.58

2 years ago

2.1.59

2 years ago

2.1.56

2 years ago

2.1.57

2 years ago

2.1.54

2 years ago

2.1.55

2 years ago

2.1.52

2 years ago

2.1.53

2 years ago

2.1.50

2 years ago

2.1.51

2 years ago

2.1.61

2 years ago

2.1.62

2 years ago

2.1.60

2 years ago

2.1.38

2 years ago

2.1.39

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.34

2 years ago

2.1.35

2 years ago

2.1.32

2 years ago

2.1.33

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago