Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .eslintrc.js

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ concurrency:
jobs:
lint-commits:
uses: dhis2/workflows-platform/.github/workflows/lint-commits.yml@v1
lint:
uses: dhis2/workflows-platform/.github/workflows/lint.yml@v1
test:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -25,6 +23,7 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn lint
- run: yarn test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import prettierConfig from '@dhis2/config-prettier'

/**
* @type {import("prettier").Config}
*/
const config = {
...prettierConfig,
}

export default config
65 changes: 24 additions & 41 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,121 +1,104 @@
# [100.5.0](https://github.com/dhis2/route-manager-app/compare/v100.4.3...v100.5.0) (2025-11-28)


### Features

* oauth2 support ([#33](https://github.com/dhis2/route-manager-app/issues/33)) ([bdb775d](https://github.com/dhis2/route-manager-app/commit/bdb775dcc414d9b20ecfd3f00a8206aac9a0cbb4))
- oauth2 support ([#33](https://github.com/dhis2/route-manager-app/issues/33)) ([bdb775d](https://github.com/dhis2/route-manager-app/commit/bdb775dcc414d9b20ecfd3f00a8206aac9a0cbb4))

## [100.4.3](https://github.com/dhis2/route-manager-app/compare/v100.4.2...v100.4.3) (2025-11-27)


### Bug Fixes

* route url validation (allow localhost and IPs) ([#32](https://github.com/dhis2/route-manager-app/issues/32)) ([689c3ce](https://github.com/dhis2/route-manager-app/commit/689c3ce6f66420672265947073b829ad2e723dd1))
- route url validation (allow localhost and IPs) ([#32](https://github.com/dhis2/route-manager-app/issues/32)) ([689c3ce](https://github.com/dhis2/route-manager-app/commit/689c3ce6f66420672265947073b829ad2e723dd1))

## [100.4.2](https://github.com/dhis2/route-manager-app/compare/v100.4.1...v100.4.2) (2025-06-02)


### Bug Fixes

* do not show permission error when user has ALL authority ([b47f0ef](https://github.com/dhis2/route-manager-app/commit/b47f0efadd902a621c676e60619da4332e972bda))
- do not show permission error when user has ALL authority ([b47f0ef](https://github.com/dhis2/route-manager-app/commit/b47f0efadd902a621c676e60619da4332e972bda))

## [100.4.1](https://github.com/dhis2/route-manager-app/compare/v100.4.0...v100.4.1) (2025-04-03)


### Bug Fixes

* use HashRouter to fix loading issue in DHIS instances ([66176e3](https://github.com/dhis2/route-manager-app/commit/66176e30620fe4051b5e46a7611780f973af7429))
- use HashRouter to fix loading issue in DHIS instances ([66176e3](https://github.com/dhis2/route-manager-app/commit/66176e30620fe4051b5e46a7611780f973af7429))

# [100.4.0](https://github.com/dhis2/route-manager-app/compare/v100.3.4...v100.4.0) (2025-03-25)


### Features

* allow defining custom static headers for routes ([1fd5237](https://github.com/dhis2/route-manager-app/commit/1fd5237e20c6a6a224617d1e8c6e9523dec9c76a))
- allow defining custom static headers for routes ([1fd5237](https://github.com/dhis2/route-manager-app/commit/1fd5237e20c6a6a224617d1e8c6e9523dec9c76a))

## [100.3.4](https://github.com/dhis2/route-manager-app/compare/v100.3.3...v100.3.4) (2025-02-13)


### Bug Fixes

* display warning when the user does not have permissions ([54b6f24](https://github.com/dhis2/route-manager-app/commit/54b6f24d5e6886524381edf1f681215d3c8a4ec0))
- display warning when the user does not have permissions ([54b6f24](https://github.com/dhis2/route-manager-app/commit/54b6f24d5e6886524381edf1f681215d3c8a4ec0))

## [100.3.3](https://github.com/dhis2/route-manager-app/compare/v100.3.2...v100.3.3) (2025-02-12)


### Bug Fixes

* **BETA-211:** add label to Enable route switch ([0b647b0](https://github.com/dhis2/route-manager-app/commit/0b647b0ce3ec319d2cfc54e20297d3766d8bf386))
* **BETA-215:** add Cancel button to Edit route modal ([3b174f1](https://github.com/dhis2/route-manager-app/commit/3b174f1972211e6470e87e928c9c032423712e70))
* **BETA-217:** disable Test button when route is disabled ([8cb2a24](https://github.com/dhis2/route-manager-app/commit/8cb2a2479d7fc9809779e45ff31c548ce81a8445))
* **BETA-218:** fix hover style for last cell in routes table ([9e48913](https://github.com/dhis2/route-manager-app/commit/9e48913cd7fd93847a9cdb9eb22833c61de21500))
* **BETA-220:** make sure buttons do not break on smaller screens ([9cd4cd2](https://github.com/dhis2/route-manager-app/commit/9cd4cd2bba668b41c1847d1d4c99469082ba4b6f))
* **BETA-244:** mask credential fields ([2c6e6b7](https://github.com/dhis2/route-manager-app/commit/2c6e6b78a275cdac79214d7bb4edb3ed3f7c18f9))
- **BETA-211:** add label to Enable route switch ([0b647b0](https://github.com/dhis2/route-manager-app/commit/0b647b0ce3ec319d2cfc54e20297d3766d8bf386))
- **BETA-215:** add Cancel button to Edit route modal ([3b174f1](https://github.com/dhis2/route-manager-app/commit/3b174f1972211e6470e87e928c9c032423712e70))
- **BETA-217:** disable Test button when route is disabled ([8cb2a24](https://github.com/dhis2/route-manager-app/commit/8cb2a2479d7fc9809779e45ff31c548ce81a8445))
- **BETA-218:** fix hover style for last cell in routes table ([9e48913](https://github.com/dhis2/route-manager-app/commit/9e48913cd7fd93847a9cdb9eb22833c61de21500))
- **BETA-220:** make sure buttons do not break on smaller screens ([9cd4cd2](https://github.com/dhis2/route-manager-app/commit/9cd4cd2bba668b41c1847d1d4c99469082ba4b6f))
- **BETA-244:** mask credential fields ([2c6e6b7](https://github.com/dhis2/route-manager-app/commit/2c6e6b78a275cdac79214d7bb4edb3ed3f7c18f9))

## [100.3.2](https://github.com/dhis2/route-manager-app/compare/v100.3.1...v100.3.2) (2025-02-11)


### Bug Fixes

* **app-platform:** upgrade platform tools to use vite and react 18 ([#20](https://github.com/dhis2/route-manager-app/issues/20)) ([0ca4a14](https://github.com/dhis2/route-manager-app/commit/0ca4a144cecbefaa3da3154abd334544c8c0ced3))
- **app-platform:** upgrade platform tools to use vite and react 18 ([#20](https://github.com/dhis2/route-manager-app/issues/20)) ([0ca4a14](https://github.com/dhis2/route-manager-app/commit/0ca4a144cecbefaa3da3154abd334544c8c0ced3))

## [100.3.1](https://github.com/dhis2/route-manager-app/compare/v100.3.0...v100.3.1) (2025-01-16)


### Bug Fixes

* add app icon ([#18](https://github.com/dhis2/route-manager-app/issues/18)) ([7324a60](https://github.com/dhis2/route-manager-app/commit/7324a6044715bce629ece1ce0edc07c8c8b8cb7a))
- add app icon ([#18](https://github.com/dhis2/route-manager-app/issues/18)) ([7324a60](https://github.com/dhis2/route-manager-app/commit/7324a6044715bce629ece1ce0edc07c8c8b8cb7a))

# [100.3.0](https://github.com/dhis2/route-manager-app/compare/v100.2.0...v100.3.0) (2024-11-11)


### Features

* add query params field for GET request routes ([49afe00](https://github.com/dhis2/route-manager-app/commit/49afe00896690754beb9723c7b3532a11aa076c8))
- add query params field for GET request routes ([49afe00](https://github.com/dhis2/route-manager-app/commit/49afe00896690754beb9723c7b3532a11aa076c8))

# [100.2.0](https://github.com/dhis2/route-manager-app/compare/v100.1.0...v100.2.0) (2024-10-21)


### Bug Fixes

* add delete confirmation alert ([6814f49](https://github.com/dhis2/route-manager-app/commit/6814f49a06b8133e2f254f6d3894add56c5d97f1))
* bug with auth config when creating rather than editing route ([04a63f0](https://github.com/dhis2/route-manager-app/commit/04a63f07bcfe938fc8db4064b8658920b5948f0b))
* show authorities in a MultiSelect rather than an input text field ([097dad9](https://github.com/dhis2/route-manager-app/commit/097dad96d8759cf86809dcfe3072f72e00fb9367))

- add delete confirmation alert ([6814f49](https://github.com/dhis2/route-manager-app/commit/6814f49a06b8133e2f254f6d3894add56c5d97f1))
- bug with auth config when creating rather than editing route ([04a63f0](https://github.com/dhis2/route-manager-app/commit/04a63f07bcfe938fc8db4064b8658920b5948f0b))
- show authorities in a MultiSelect rather than an input text field ([097dad9](https://github.com/dhis2/route-manager-app/commit/097dad96d8759cf86809dcfe3072f72e00fb9367))

### Features

* enable/disable routes ([41cdc0f](https://github.com/dhis2/route-manager-app/commit/41cdc0ff47b119331b1681e804c7da9fc547ddfb))
- enable/disable routes ([41cdc0f](https://github.com/dhis2/route-manager-app/commit/41cdc0ff47b119331b1681e804c7da9fc547ddfb))

# [100.1.0](https://github.com/dhis2/route-manager-app/compare/v100.0.2...v100.1.0) (2024-10-09)


### Features

* support configuring authentication and authorities ([#11](https://github.com/dhis2/route-manager-app/issues/11)) ([4038d3a](https://github.com/dhis2/route-manager-app/commit/4038d3a52d1953eadedb70ab8b13a0af45409251))
- support configuring authentication and authorities ([#11](https://github.com/dhis2/route-manager-app/issues/11)) ([4038d3a](https://github.com/dhis2/route-manager-app/commit/4038d3a52d1953eadedb70ab8b13a0af45409251))

## [100.0.2](https://github.com/dhis2/route-manager-app/compare/v100.0.1...v100.0.2) (2024-09-30)


### Bug Fixes

* **apphub:** update app id ([b982e6b](https://github.com/dhis2/route-manager-app/commit/b982e6b334e140c13828e5eeeb0c0307e6a2197a))
- **apphub:** update app id ([b982e6b](https://github.com/dhis2/route-manager-app/commit/b982e6b334e140c13828e5eeeb0c0307e6a2197a))

## [100.0.1](https://github.com/dhis2/route-manager-app/compare/v100.0.0...v100.0.1) (2024-09-30)


### Bug Fixes

* force a release to apphub ([65396bf](https://github.com/dhis2/route-manager-app/commit/65396bf5caf3ac28f1fb297216811613706504ed))
- force a release to apphub ([65396bf](https://github.com/dhis2/route-manager-app/commit/65396bf5caf3ac28f1fb297216811613706504ed))

# [100.0.0](https://github.com/dhis2/route-manager-app/compare/v99.9.9...v100.0.0) (2024-09-28)


### Bug Fixes

* update d2.config ([#8](https://github.com/dhis2/route-manager-app/issues/8)) ([3a82e21](https://github.com/dhis2/route-manager-app/commit/3a82e218c4e7fdce4e68c8ced3d44dd083888fd7))

- update d2.config ([#8](https://github.com/dhis2/route-manager-app/issues/8)) ([3a82e21](https://github.com/dhis2/route-manager-app/commit/3a82e218c4e7fdce4e68c8ced3d44dd083888fd7))

### BREAKING CHANGES

* publish v100 to apphub
- publish v100 to apphub
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## User

- [Route Manager app](user/route-manager-app.md)
- [Route Manager app](user/route-manager-app.md)
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import config from '@dhis2/config-eslint'
import { defineConfig } from 'eslint/config'

export default defineConfig([
{
extends: [config],
},
])
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,38 @@
"test": "d2-app-scripts test",
"deploy": "d2-app-scripts deploy",
"tsc": "tsc --noEmit",
"lint": "yarn tsc && d2-style check",
"lint:staged": "d2-style check --staged",
"format": "d2-style apply",
"format:staged": "d2-style apply --staged"
"lint": "yarn tsc && eslint && prettier -c .",
"format": "prettier . -w",
"prepare": "husky"
},
"devDependencies": {
"@dhis2/cli-app-scripts": "^12.3.0",
"@dhis2/cli-style": "^10.7.6",
"@dhis2/config-eslint": "^0.2.2",
"@dhis2/config-prettier": "^0.2.2",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@types/": "testing-library/jest-dom",
"@types/jest": "^29.5.14",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3"
"@types/react-dom": "^19.0.3",
"eslint": "^9.39.1",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.7.3"
},
"dependencies": {
"@dhis2/app-runtime": "^3.13.2",
"@dhis2/ui": "^10.1.11",
"react-router": "^7.2.0"
},
"lint-staged": {
"*": [
"yarn prettier . --write",
"yarn lint"
]
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
4 changes: 2 additions & 2 deletions src/TestRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const TestRoute: React.FC<TestRouteProps> = ({
wildcard
? `/${wildcard}`
: queryParams
? `${queryPrefix}${queryParams}`
: ''
? `${queryPrefix}${queryParams}`
: ''
}`

if (verb === 'GET') {
Expand Down
2 changes: 1 addition & 1 deletion src/types/RouteInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type Authority = {
export type WrapQueryResponse<
T,
S extends string = 'result',
R extends string = S
R extends string = S,
> = {
[K in S]: {
[K in R]: T
Expand Down
Loading