Skip to content

Commit 32e2d1f

Browse files
authored
Merge pull request #31 from temporalio/ui-updates
UI Updates
2 parents 4c2b642 + 0976b54 commit 32e2d1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1943
-2554
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
# OMS Web Application
22

3-
This repository contains a web application that enables one to interact with the Order
4-
Management System (OMS) reference application. Code for the OMS is maintained in the
3+
This repository contains a web application that enables one to interact with the Order
4+
Management System (OMS) reference application. Code for the OMS is maintained in the
55
[reference-app-orders-go](https://github.com/temporalio/reference-app-orders-go)
6-
repository. Since this web application depends on services provided by the OMS, you will
7-
need code from both repositories to run it.
6+
repository. Since this web application depends on services provided by the OMS, you will
7+
need code from both repositories to run it.
88

9-
The steps below minimally cover how to run and build the web application. See the
10-
[other repository](https://github.com/temporalio/reference-app-orders-go)
11-
for detailed instructions on running and using the Order Management System.
9+
The steps below minimally cover how to run and build the web application. See the
10+
[other repository](https://github.com/temporalio/reference-app-orders-go)
11+
for detailed instructions on running and using the Order Management System.
1212

13+
Uses Svelte5 and Tailwind4
1314

1415
## Running the Web Application Locally
1516

16-
After you start the API servers and one or more Workers, as [described in the
17-
OMS instructions](https://github.com/temporalio/reference-app-orders-go?tab=readme-ov-file#quickstart),
17+
After you start the API servers and one or more Workers, as [described in the
18+
OMS instructions](https://github.com/temporalio/reference-app-orders-go?tab=readme-ov-file#quickstart),
1819
run the following [`pnpm`](https://pnpm.io/) commands from the root directory of this project:
1920

2021
```bash
2122
pnpm i
2223
pnpm dev
2324
```
2425

25-
This starts a local server. You can navigate to http://127.0.0.1:5173/ to view the web application.
26-
27-
NOTE: As a workaround for deployment to [GitPod](https://gitpod.io/), in which the domain of each application
28-
container is assigned dynamically, this application [disables the CSRF origin check](https://github.com/temporalio/reference-app-orders-web/blob/5a1044ddae5a5f110263b9c464f576384d533036/svelte.config.js#L10-L12). [Pull request #6](https://github.com/temporalio/reference-app-orders-web/pull/6) describes this in more detail, and we recommend reinstating this origin check for improved security in a
29-
real-world deployment.
26+
This starts a local server. You can navigate to http://127.0.0.1:5173/ to view the web application.
3027

28+
NOTE: As a workaround for deployment to [GitPod](https://gitpod.io/), in which the domain of each application
29+
container is assigned dynamically, this application [disables the CSRF origin check](https://github.com/temporalio/reference-app-orders-web/blob/5a1044ddae5a5f110263b9c464f576384d533036/svelte.config.js#L10-L12). [Pull request #6](https://github.com/temporalio/reference-app-orders-web/pull/6) describes this in more detail, and we recommend reinstating this origin check for improved security in a
30+
real-world deployment.
3131

3232
## Building the Web Application
3333

3434
Run `pnpm build` to create a production version of your app. You can then preview the production build by
3535
running `pnpm preview`.
3636

37-
The [`.github/workflows/docker-publish.yml`](https://github.com/temporalio/reference-app-orders-web/blob/main/.github/workflows/docker-publish.yml)
38-
file automates the creation and publication of Docker images in response to code changes.
37+
The [`.github/workflows/docker-publish.yml`](https://github.com/temporalio/reference-app-orders-web/blob/main/.github/workflows/docker-publish.yml)
38+
file automates the creation and publication of Docker images in response to code changes.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"format": "prettier --write ."
1212
},
1313
"devDependencies": {
14+
"@tailwindcss/postcss": "^4.1.4",
1415
"@types/eslint": "^8.56.0",
1516
"@typescript-eslint/eslint-plugin": "^7.0.0",
1617
"@typescript-eslint/parser": "^7.0.0",
@@ -22,7 +23,6 @@
2223
"prettier": "^3.1.1",
2324
"prettier-plugin-svelte": "^3.1.2",
2425
"svelte-check": "^3.6.0",
25-
"tailwindcss": "^3.4.10",
2626
"tslib": "^2.4.1",
2727
"typescript": "^5.0.2"
2828
},
@@ -32,10 +32,11 @@
3232
"@neoconfetti/svelte": "^1.0.0",
3333
"@sveltejs/adapter-node": "^5.0.1",
3434
"@sveltejs/kit": "^2.20.6",
35-
"@sveltejs/vite-plugin-svelte": "^3.0.0",
35+
"@sveltejs/vite-plugin-svelte": "^4.0.0-next.6",
36+
"@tailwindcss/vite": "^4.1.4",
3637
"chart.js": "^4.4.8",
37-
"svelte": "^4.2.19",
38-
"svelte-chartjs": "^3.1.5",
38+
"svelte": "^5.28.2",
39+
"tailwindcss": "^4.1.4",
3940
"vite": "^5.4.16"
4041
}
4142
}

0 commit comments

Comments
 (0)