Skip to content

Commit 2220239

Browse files
timfdevpboers1988
andauthored
render tool calls properly (#2304)
* render tool calls properly * lint * render search results * Added changeset --------- Co-authored-by: Peter Boers <[email protected]>
1 parent c52e10c commit 2220239

File tree

31 files changed

+9455
-17418
lines changed

31 files changed

+9455
-17418
lines changed

.changeset/twelve-tools-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@orchestrator-ui/orchestrator-ui-components': patch
3+
---
4+
5+
Added some changes for the loading of aggregations for the agent

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,38 @@ Using websockets is controlled by NEXT_PUBLIC_USE_WEBSOCKET, when set to 'true'
2727

2828
# Authentication
2929

30-
- set `AUTH_ACTIVE` env variable to false or use setup below with auth.
30+
- set `AUTH_ACTIVE` env variable to false or use setup below with auth.
3131

3232
## AUTH with NextAuth and keycloak
3333

3434
Setup auth with keycloak in docker.
3535

36-
- copy apps env: `cp apps/wfo-ui/.env.example apps/wfo-ui/.env`.
37-
- change `KEYCLOAK_ADMIN` and `KEYCLOAK_ADMIN_PASSWORD` to your own values.
38-
- `NEXTAUTH_SECRET`: is NextAuth internal for JWT encryption and easily created with command `openssl rand -base64 32`.
39-
- `NEXTAUTH_URL`: should be the base url to the auth page: `${FRONTEND_URL}/api/auth`.
40-
- `NEXTAUTH_ID`: name of the provider which is shown in the `Sign in with {NEXTAUTH_ID}`, default is `keycloak`.
41-
- run `docker compose up -d` to start keycloak.
42-
- log into keycloak at http://localhost:8085
43-
- keycloak setup (use the `apps/{folder}` env):
44-
- follow the [keycloak docs](https://www.keycloak.org/getting-started/getting-started-docker#_secure_the_first_application) to create a new realm and at least one user.
45-
- after creating the realm, copy paste the url of the realm `http://{YOUR_KEYCLOAK_DOMAIN}/realms/{YOUR_REALM}` in your env as variable `NEXTAUTH_ISSUER`.
46-
- Create a client.
47-
- first page: fill in a name for `ClientID`. (`.env.example` default is `orchestrator-client`)
48-
- second page: enable `Client authentication` and `Authorization`.
49-
- third page fill in `Valid redirect URIs` and `Web Origins`:
50-
- `Valid redirect URIs` with `{FRONTEND_URL}/api/auth/callback/{PROVIDER}`, with default provider its env variable `NEXTAUTH_ID`. (eg `http://localhost:3000/api/auth/callback/keycloak`)
51-
- `Web Origins` with `{FRONTEND_URL}`. (eg `http://localhost:3000/`)
52-
- go to the client details and go to tab `Credentials` and copy the Client secret and paste it into your env file. (`NEXTAUTH_CLIENT_SECRET`)
53-
- run the app with `turbo dev`.
54-
- keycloak backend setup:
55-
- Create another client in the same realm.
56-
- first page: fill in a name for `ClientID`. (set the client id in your env (`OAUTH2_RESOURCE_SERVER_ID`)).
57-
- second page: enable `Client authentication` and `Authorization`.
58-
- third page: does not need any config.
59-
- go to the client details and go to tab `Credentials` and copy the Client secret and pase it into your env file. (`OAUTH2_RESOURCE_SERVER_SECRET`)
60-
- if you don't use authorization and only use authentication set `OAUTH2_AUTHORIZATION_ACTIVE` to `False`. if you do have authentication, you should set `OAUTH2_TOKEN_URL` to the inspection endpoint of your auth provider.
61-
- run the backend.
36+
- copy apps env: `cp apps/wfo-ui/.env.example apps/wfo-ui/.env`.
37+
- change `KEYCLOAK_ADMIN` and `KEYCLOAK_ADMIN_PASSWORD` to your own values.
38+
- `NEXTAUTH_SECRET`: is NextAuth internal for JWT encryption and easily created with command `openssl rand -base64 32`.
39+
- `NEXTAUTH_URL`: should be the base url to the auth page: `${FRONTEND_URL}/api/auth`.
40+
- `NEXTAUTH_ID`: name of the provider which is shown in the `Sign in with {NEXTAUTH_ID}`, default is `keycloak`.
41+
- run `docker compose up -d` to start keycloak.
42+
- log into keycloak at http://localhost:8085
43+
- keycloak setup (use the `apps/{folder}` env):
44+
- follow the [keycloak docs](https://www.keycloak.org/getting-started/getting-started-docker#_secure_the_first_application) to create a new realm and at least one user.
45+
- after creating the realm, copy paste the url of the realm `http://{YOUR_KEYCLOAK_DOMAIN}/realms/{YOUR_REALM}` in your env as variable `NEXTAUTH_ISSUER`.
46+
- Create a client.
47+
- first page: fill in a name for `ClientID`. (`.env.example` default is `orchestrator-client`)
48+
- second page: enable `Client authentication` and `Authorization`.
49+
- third page fill in `Valid redirect URIs` and `Web Origins`:
50+
- `Valid redirect URIs` with `{FRONTEND_URL}/api/auth/callback/{PROVIDER}`, with default provider its env variable `NEXTAUTH_ID`. (eg `http://localhost:3000/api/auth/callback/keycloak`)
51+
- `Web Origins` with `{FRONTEND_URL}`. (eg `http://localhost:3000/`)
52+
- go to the client details and go to tab `Credentials` and copy the Client secret and paste it into your env file. (`NEXTAUTH_CLIENT_SECRET`)
53+
- run the app with `turbo dev`.
54+
- keycloak backend setup:
55+
- Create another client in the same realm.
56+
- first page: fill in a name for `ClientID`. (set the client id in your env (`OAUTH2_RESOURCE_SERVER_ID`)).
57+
- second page: enable `Client authentication` and `Authorization`.
58+
- third page: does not need any config.
59+
- go to the client details and go to tab `Credentials` and copy the Client secret and pase it into your env file. (`OAUTH2_RESOURCE_SERVER_SECRET`)
60+
- if you don't use authorization and only use authentication set `OAUTH2_AUTHORIZATION_ACTIVE` to `False`. if you do have authentication, you should set `OAUTH2_TOKEN_URL` to the inspection endpoint of your auth provider.
61+
- run the backend.
6262

6363
# Contributing
6464

@@ -72,11 +72,11 @@ Each PR, which typically addresses an existing ticket from the issue list, shoul
7272
npm run packages:changeset
7373
```
7474

75-
- Include the changes made by this command in pull requests to the main branch
76-
- Selecting packages that will get a version bump
77-
- Specifies per selected package the type of version bump (`major`, `minor` or `patch`)
78-
- Adds a description or release notes for the release
79-
- All entries will be saved in a `.md` file in the `.changeset` folder
75+
- Include the changes made by this command in pull requests to the main branch
76+
- Selecting packages that will get a version bump
77+
- Specifies per selected package the type of version bump (`major`, `minor` or `patch`)
78+
- Adds a description or release notes for the release
79+
- All entries will be saved in a `.md` file in the `.changeset` folder
8080

8181
Once the pull-request with a changeset file is merged to the main branch another PR is opened by the Changesets-bot to update the version numbers of the packages. When this pull request gets merged to main an automatic publish to NPM will be performed.
8282

apps/storybook/CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44

55
### Minor Changes
66

7-
- e732016: Updates depencencies to latest minor versions
7+
- e732016: Updates depencencies to latest minor versions
88

99
### Patch Changes
1010

11-
- Updated dependencies [e732016]
12-
- @orchestrator-ui/orchestrator-ui-components@5.9.0
11+
- Updated dependencies [e732016]
12+
- @orchestrator-ui/orchestrator-ui-components@5.9.0
1313

1414
## 0.1.0
1515

1616
### Minor Changes
1717

18-
- 85509b5: Updates to latest npm packages versions. Updates to eslint 9
18+
- 85509b5: Updates to latest npm packages versions. Updates to eslint 9
1919

2020
### Patch Changes
2121

22-
- Updated dependencies [85509b5]
23-
- @orchestrator-ui/orchestrator-ui-components@4.0.0
22+
- Updated dependencies [85509b5]
23+
- @orchestrator-ui/orchestrator-ui-components@4.0.0
2424

2525
## 0.0.1
2626

2727
### Patch Changes
2828

29-
- Storybook initial version
29+
- Storybook initial version
3030

3131
## 0.0.1
3232

3333
### Patch Changes
3434

35-
- Storybook init
35+
- Storybook init

0 commit comments

Comments
 (0)