Skip to content

Commit 8255ee4

Browse files
committed
Merge branch 'release/2.1.0'
2 parents 0207326 + 50daf04 commit 8255ee4

File tree

169 files changed

+7337
-22398
lines changed

Some content is hidden

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

169 files changed

+7337
-22398
lines changed

vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

.docker/vhost.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ server {
88
proxy_set_header Host $http_host;
99
proxy_pass http://node:3000;
1010
}
11+
12+
location /admin/ws {
13+
proxy_pass http://node:3000;
14+
proxy_http_version 1.1;
15+
proxy_set_header Upgrade $http_upgrade;
16+
proxy_set_header Connection "upgrade";
17+
}
1118
}

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"airbnb",
55
"prettier",
66
"plugin:jsdoc/recommended",
7-
"plugin:prettier/recommended",
8-
"plugin:cypress/recommended"
7+
"plugin:prettier/recommended"
98
],
109
"ignorePatterns": ["*.yml"],
1110
"parser": "babel-eslint",
@@ -14,6 +13,7 @@
1413
"allowImportExportEverywhere": true
1514
},
1615
"rules": {
16+
"react/require-default-props": "off",
1717
"react/jsx-filename-extension": [
1818
"warn",
1919
{

.github/workflows/pr.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ jobs:
3131
docker compose run --rm node yarn install
3232
docker compose run --rm node yarn check-coding-standards
3333
34-
cypress:
35-
name: Cypress
34+
playwright-tests:
35+
name: Playwright
3636
runs-on: ubuntu-latest
3737
strategy:
3838
fail-fast: false
39-
matrix:
40-
browser: ["chrome"]
4139
steps:
4240
- name: Checkout
4341
uses: actions/checkout@v3
@@ -48,16 +46,21 @@ jobs:
4846
- name: Install client
4947
run: docker compose run node yarn
5048

51-
- name: Cypress run
52-
run: docker compose run cypress run --browser ${{ matrix.browser }}
49+
- name: Run playwright
50+
env:
51+
CI: 'true'
52+
run: |
53+
docker compose run --rm node yarn install
54+
docker compose run --rm playwright npx playwright install --with-deps
55+
docker compose run --rm playwright npx playwright test --retries 3
56+
5357
54-
- name: Archive screenshots
55-
if: ${{ failure() }}
56-
uses: actions/upload-artifact@v2
58+
- uses: actions/upload-artifact@v3
59+
if: always()
5760
with:
58-
name: cypress-screenshots-${{ matrix.browser }}
59-
path: cypress/screenshots
60-
retention-days: 7
61+
name: playwright-report
62+
path: playwright-report/
63+
retention-days: 30
6164

6265
changelog:
6366
runs-on: ubuntu-latest

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ yarn-error.log*
2525
# Ignore VS-code
2626
.vscode
2727

28-
# Cypress
29-
cypress/videos/*
30-
cypress/screenshots/*
31-
3228
# Temp files
3329
temp/
3430

35-
# API mock
36-
json-server/
31+
# Playwright
32+
/test-results/
33+
/playwright-report/
34+
/blob-report/
35+
/playwright/.cache/
3736

37+
# Json files in public folder
3838
public/config.json
3939
public/access-config.json
4040
public/release.json

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,41 @@
1+
12
# Changelog
23

34
All notable changes to this project will be documented in this file.
45

56
## [Unreleased]
67

8+
## [2.1.0] - 2024-10-23
9+
10+
- [#258](https://github.com/os2display/display-admin-client/pull/258)
11+
- Fixed screen is vertical check.
12+
- [#257](https://github.com/os2display/display-admin-client/pull/257)
13+
- Update multiselect component
14+
- Change key in function from `id` to `@id`
15+
- [#256](https://github.com/os2display/display-admin-client/pull/256)
16+
- Fixed published from/to texts.
17+
- [#255](https://github.com/os2display/display-admin-client/pull/255)
18+
- Fixed rejseplanen component so it does not throw errors when searching for stops.
19+
- [#254](https://github.com/os2display/display-admin-client/pull/254)
20+
- Changed playlist.slides list columns.
21+
- Set published.to to now when creating new slides.
22+
- Added option to sort slides in playlist by published.to and status.
23+
- [#253](https://github.com/os2display/display-admin-client/pull/253)
24+
- Refactored scheduling to increase user experience.
25+
- Added interval and count to rrule inputs.
26+
- [#249](https://github.com/os2display/display-admin-client/pull/249)
27+
- Set infrastructure node version to 20.
28+
- Fixed base path to /admin in vite setup.
29+
- Changed from vite CJS to ESM.
30+
- Removed array spread.
31+
- Fixed HMR setup.
32+
- Upgraded @fortawesome/react-fontawesome, react-quill, react-toastify.
33+
- Removed unused react-dayjs.
34+
- Remove default props from the project.
35+
- Migrate from Cypress to playwright
36+
- Migrate from CRA to Vite
37+
- Upgrade node from 14 -> 20
38+
739
## [2.0.3] - 2024-08-14
840

941
- [#252](https://github.com/os2display/display-admin-client/pull/252)

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description of the admin.
88

99
### Create public/config file
1010

11-
By default the api that is requested is located at `/api/`.
11+
By default, the api that is requested is located at `/api/`.
1212
This can be configured by:
1313

1414
```shell
@@ -62,14 +62,20 @@ docker compose exec node npm --prefix src/redux/api install
6262
docker compose exec node npm --prefix src/redux/api start
6363
```
6464

65-
## Testing with cypress
65+
## Testing with playwright
6666

67-
We use [cypress](https://www.cypress.io/) for testing.
67+
We use [playwright](https://playwright.dev/) for testing.
6868

69-
To run cypress tests in the cypress container:
69+
To run playwright tests with docker:
7070

7171
```shell
72-
docker compose run --rm cypress run
72+
docker compose run --rm playwright npx playwright test
73+
```
74+
75+
To test with user interface, up the containers and change the baseUrl in playwright.config.ts, then:
76+
77+
```shell
78+
yarn playwright test --ui
7379
```
7480

7581
### Linting

config-overrides.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

cypress/fixtures/error.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

cypress/fixtures/groups/group-successful.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)