Skip to content

Commit 68aa7cf

Browse files
authored
Merge pull request #286 from os2display/release/2.5.0
Release/2.5.0
2 parents 54e72e5 + cb05d47 commit 68aa7cf

Some content is hidden

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

50 files changed

+1715
-925
lines changed

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"plugins": ["react", "prettier", "only-warn"],
2+
"plugins": ["react", "prettier"],
33
"extends": [
44
"airbnb",
55
"prettier",
@@ -18,7 +18,9 @@
1818
"allowImportExportEverywhere": true
1919
},
2020
"rules": {
21+
"react/react-in-jsx-scope": "off",
2122
"react/require-default-props": "off",
23+
"react/prop-types": "off",
2224
"react/jsx-filename-extension": [
2325
"warn",
2426
{

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
21
# Changelog
32

43
All notable changes to this project will be documented in this file.
54

65
## [Unreleased]
76

7+
## [2.5.0] - 2025-05-09
8+
9+
- [#285](https://github.com/os2display/display-admin-client/pull/285)
10+
- Rewrite screen playlists get to use promises
11+
- Fix save screen and go to list
12+
- Disable eslint for proptypes
13+
- Disable eslint for react in scope
14+
- [#284](https://github.com/os2display/display-admin-client/pull/284)
15+
- Fixed spacer calculations for previews.
16+
- Added border to preview container
17+
- [#283](https://github.com/os2display/display-admin-client/pull/283)
18+
- Fixed preview issues.
19+
- [#275](https://github.com/os2display/display-admin-client/pull/275)
20+
- Added enhanced preview.
21+
- [#276](https://github.com/os2display/display-admin-client/pull/276)
22+
- Added Colibo feed type form.
23+
- Fixed feed type selector when unsupported type.
24+
825
## [2.4.0] - 2025-03-31
926

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

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,10 @@ setting are required than what is default.
3232
cp public/example-access-config.json public/access-config.json
3333
```
3434

35-
### Up the containers
35+
### Up the containers and install npm packages
3636

3737
```shell
3838
docker compose up --detach
39-
```
40-
41-
### Install npm packages
42-
43-
```shell
4439
docker compose run --rm node yarn install
4540
```
4641

e2e/feed-sources.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ test.describe("fest", () => {
219219

220220
test("It loads create datakilde page", async ({ page }) => {
221221
page.getByText("Opret ny datakilde").click();
222-
await expect(page.locator("#save_feed-source")).toBeVisible();
222+
await expect(page.locator("#save")).toBeVisible();
223223
});
224224

225225
test("It display error toast on save error", async ({ page }) => {
@@ -238,7 +238,7 @@ test.describe("fest", () => {
238238
await expect(
239239
page.locator(".Toastify").locator(".Toastify__toast--error")
240240
).not.toBeVisible();
241-
await page.locator("#save_feed-source").click();
241+
await page.locator("#save").click();
242242
await expect(
243243
page.locator(".Toastify").locator(".Toastify__toast--error")
244244
).toBeVisible();
@@ -253,9 +253,9 @@ test.describe("fest", () => {
253253
});
254254
test("Cancel create datakilde", async ({ page }) => {
255255
page.getByText("Opret ny datakilde").click();
256-
await expect(page.locator("#cancel_feed-source")).toBeVisible();
257-
await page.locator("#cancel_feed-source").click();
258-
await expect(page.locator("#cancel_feed-source")).not.toBeVisible();
256+
await expect(page.locator("#cancel")).toBeVisible();
257+
await page.locator("#cancel").click();
258+
await expect(page.locator("#cancel")).not.toBeVisible();
259259
});
260260
});
261261

e2e/playlist.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test.describe("Playlist create tests", () => {
5959
await expect(
6060
page.locator(".Toastify").locator(".Toastify__toast--success")
6161
).not.toBeVisible();
62-
await page.locator("#save_playlist").click();
62+
await page.locator("#save_slide_and_close").click();
6363
await expect(
6464
page
6565
.locator(".Toastify")

infrastructure/itkdev/etc/confd/templates/config.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"api": "{{ getenv "API_PATH" "/" }}",
33
"touchButtonRegions": "{{ getenv "APP_TOUCH_BUTTON_REGIONS" "false"}}",
4+
"previewClient": "{{ getenv "APP_PREVIEW_CLIENT" "null"}}",
45
"showScreenStatus": "{{ getenv "APP_SHOW_SCREEN_STATUS" "true"}}",
56
"rejseplanenApiKey": "{{ getenv "APP_REJSEPLANEN_API_KEY" "null"}}",
67
"loginMethods": [

infrastructure/os2display/etc/confd/templates/config.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"api": "{{ getenv "API_PATH" "/" }}",
33
"touchButtonRegions": "{{ getenv "APP_TOUCH_BUTTON_REGIONS" "false"}}",
4+
"previewClient": "{{ getenv "APP_PREVIEW_CLIENT" "null"}}",
45
"showScreenStatus": "{{ getenv "APP_SHOW_SCREEN_STATUS" "false"}}",
56
"rejseplanenApiKey": "{{ getenv "APP_REJSEPLANEN_API_KEY" "null"}}",
67
"loginMethods": [

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"eslint-plugin-import": "^2.23.4",
9090
"eslint-plugin-jsdoc": "^35.4.3",
9191
"eslint-plugin-jsx-a11y": "^6.4.1",
92-
"eslint-plugin-only-warn": "^1.0.2",
9392
"eslint-plugin-prettier": "3.4.0",
9493
"eslint-plugin-react": "^7.24.0",
9594
"eslint-plugin-react-hooks": "^4.2.0",

public/example_config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"api": "/",
33
"touchButtonRegions": false,
4+
"previewClient": null,
45
"showScreenStatus": false,
56
"rejseplanenApiKey": null,
67
"loginMethods": [

src/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function App() {
220220
<Col lg={9} xl={10}>
221221
<Topbar />
222222
{accessConfig && (
223-
<main className="col p-3">
223+
<main>
224224
<Routes>
225225
<Route path="campaign">
226226
<Route

0 commit comments

Comments
 (0)