Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

264 beslisboom rename to beslishulp #282

Merged
merged 4 commits into from
Dec 2, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

env:
REGISTRY: ghcr.io
IMAGE_NAME: "minbzk/ai-act-beslisboom"
IMAGE_NAME: "minbzk/ai-verordening-beslishulp"

jobs:
build:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Get GHCR package hash
id: get_package_hash
run: |
container_id=$(gh api --paginate -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/MinBZK/packages/container/ai-act-beslisboom/versions | jq -r '.[] | select(.metadata.container.tags | contains(["main"])) | .name')
container_id=$(gh api --paginate -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/MinBZK/packages/container/ai-verordening-beslishulp/versions | jq -r '.[] | select(.metadata.container.tags | contains(["main"])) | .name')
echo "container_id=$container_id" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,16 +43,16 @@ jobs:

- name: Make changes to the file
run: |
sed -i 's/newTag: .*$/newTag: main@${{ steps.get_package_hash.outputs.container_id }}/g' apps/ai-act-beslisboom/sandbox/kustomization.yaml
sed -i 's|minbzk.github.io/version: .*$|minbzk.github.io/version: main|g' apps/ai-act-beslisboom/sandbox/kustomization.yaml
git add apps/ai-act-beslisboom/sandbox/kustomization.yaml
sed -i 's/newTag: .*$/newTag: main@${{ steps.get_package_hash.outputs.container_id }}/g' apps/ai-verordening-beslishulp/sandbox/kustomization.yaml
sed -i 's|minbzk.github.io/version: .*$|minbzk.github.io/version: main|g' apps/ai-verordening-beslishulp/sandbox/kustomization.yaml
git add apps/ai-verordening-beslishulp/sandbox/kustomization.yaml

- name: show changes
run: git diff --staged

- name: push changes
run: |
git commit -m "Update ai-act-beslisboom sandbox tag ${{ steps.get_package_hash.outputs.container_id }}"
git commit -m "Update ai-verordening-beslishulp sandbox tag ${{ steps.get_package_hash.outputs.container_id }}"
git push --force-with-lease
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

Voor vragen of opmerkingen over de beslishulp mail je naar: [[email protected]](mailto::[email protected]).

# AI-act-beslishulp
# AI-Verordening-Beslishulp

[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/MinBZK/ai-act-decisiontree/main.svg?badge_token=d3dKEK97RwC1II15_W-nng)](https://results.pre-commit.ci/latest/github/MinBZK/ai-act-decisiontree/main?badge_token=d3dKEK97RwC1II15_W-nng)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/MinBZK/ai-verordening-beslishulp/main.svg?badge_token=d3dKEK97RwC1II15_W-nng)](https://results.pre-commit.ci/latest/github/MinBZK/ai-verordening-beslishulp/main?badge_token=d3dKEK97RwC1II15_W-nng)

Deze git repository bevat de beslishulp op basis van de AI Verordening.
Het AI-validatie Team heeft deze tool ontwikkeld, maar is niet verantwoordelijk voor de juridische inhoud van de beslishulp. Voor meer informatie over het AI Validatie Team, bezoek de [site van het AI-validatieteam](https://minbzk.github.io/ai-validation/). Voor vragen over de juridische inhoud, neem contact op met de experts via [email protected].
Expand All @@ -22,7 +22,7 @@ Het project omvat de volgende 2 onderdelen:
1. De beslishulp: [decision-tree.yaml](decision-tree.yaml)
2. Een frontend voor de visualisatie van de beslishulp: [frontend](frontend/)

De Kubernetes deployment code staat bij [infra](https://github.com/MinBZK/ai-validation-infra/apps/ai-act-beslishulp)
De Kubernetes deployment code staat bij [infra](https://github.com/MinBZK/ai-validation-infra/apps/ai-verordening-beslishulp)

Door deze beslishulp te doorlopen, krijgt uw organisatie inzicht in de volgende vragen:

Expand Down Expand Up @@ -82,7 +82,7 @@ Naast de beslishulp is er ook een [definitions.yaml](definitions.yaml) bestand.

De beslishulp is schematisch weergegeven verschillende diagrammen:

1. [een doorklikbaar diagram](https://minbzk.github.io/ai-act-decisiontree/mermaid_graphs/decision-tree-main.html): in dit diagram is de beslishulp op een versimpelde manier weergeven. Dit diagram bevat de volgende componenten:
1. [een doorklikbaar diagram](https://minbzk.github.io/ai-verordening-beslishulp/mermaid_graphs/decision-tree-main.html): in dit diagram is de beslishulp op een versimpelde manier weergeven. Dit diagram bevat de volgende componenten:

- donkerblauwe rechthoeken: dit zijn doorklikbare componenten die doorverwijzen naar een volgende categorie uit de beslishulp.
- lichtblauwe rechthoeken: dit zijn de 'labels' uit de beslishulp. De labels geven de karakteristieken die u door de beslishulp te doorlopen kunt verzamelen weer.
Expand All @@ -91,14 +91,14 @@ De beslishulp is schematisch weergegeven verschillende diagrammen:

U kunt terug naar het vorige diagram door de vorige pagina-knop in uw browser te gebruiken.

2. een [overzichtsdiagram](https://minbzk.github.io/ai-act-decisiontree/mermaid_graphs/decision-tree-complete.html): in dit diagram is de gehele beslishulp gevat. Dit diagram is niet doorklikbaar. De vragen zijn gegroepeerd categorieen, weergeven in witte rechthoeken met groene randen.
2. een [overzichtsdiagram](https://minbzk.github.io/ai-verordening-beslishulp/mermaid_graphs/decision-tree-complete.html): in dit diagram is de gehele beslishulp gevat. Dit diagram is niet doorklikbaar. De vragen zijn gegroepeerd categorieen, weergeven in witte rechthoeken met groene randen.

Let op: de diagrammen kunnen het beste in Chrome, Safari of Microsoft Edge worden geopend.


## Frontend

Om door de beslishulp te lopen is een visualizatie tool gemaakt. Met deze tool kunt u door de vragen lopen. De frontend is beschikbaar op deze [website](https://ai-act-decisiontree.apps.digilab.network).
Om door de beslishulp te lopen is een visualizatie tool gemaakt. Met deze tool kunt u door de vragen lopen. De frontend is beschikbaar op deze [website](https://ai-verordening-beslishulp.apps.digilab.network).

### Frontend lokaal draaien

Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN npm run build

FROM nginx:$NGINX_VERSION

LABEL org.opencontainers.image.source=https://github.com/MinBZK/AI-act-beslisboom
LABEL org.opencontainers.image.source=https://github.com/MinBZK/ai-verordening-beslishulp

COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
Expand Down
2 changes: 1 addition & 1 deletion frontend/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ services:
context: .
dockerfile: Dockerfile

image: ghcr.io/minbzk/ai-act-beslisboom:main
image: ghcr.io/minbzk/ai-verordening-beslishulp:main
ports:
- '9090:80'
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="node_modules/@nl-rvo/assets/images/favicon/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Beslisboom</title>
<title>Beslishulp</title>
</head>

<body>
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ai-act-decision-tree",
"name": "ai-verordening-beslishulp",
"version": "0.0.5",
"private": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion frontend/script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

python script/inject_definitions_in_decision_tree.py

docker build . -t ghcr.io/minbzk/ai-act-beslisboom:main --platform linux/amd64
docker build . -t ghcr.io/minbzk/ai-verordening-beslishulp:main --platform linux/amd64
2 changes: 1 addition & 1 deletion frontend/script/push.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

docker push ghcr.io/minbzk/ai-act-beslisboom:main
docker push ghcr.io/minbzk/ai-verordening-beslishulp:main
4 changes: 2 additions & 2 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import BeslisboomForm from '@/components/BeslisboomForm.vue'
import BeslishulpForm from '@/components/BeslishulpForm.vue'
import '@nl-rvo/component-library-css/dist/index.css'
import '@nl-rvo/assets/fonts/index.css'
import '@nl-rvo/assets/icons/index.css'
Expand All @@ -8,5 +8,5 @@ import '@nl-rvo/design-tokens/dist/index.css'
</script>

<template>
<BeslisboomForm class="rvo-theme" />
<BeslishulpForm class="rvo-theme" />
</template>
2 changes: 1 addition & 1 deletion frontend/src/components/Conclusion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ defineEmits(['back'])
<div class="rvo-alert-text">
<div>
<div>
Mocht u vragen of opmerkingen hebben naar aanleiding van deze beslisboom, mail dan gerust naar
Mocht u vragen of opmerkingen hebben naar aanleiding van deze beslishulp, mail dan gerust naar
<a href="mailto:[email protected]" class="rvo-link rvo-link--logoblauw">[email protected]</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const emit = defineEmits(['acceptDisclaimer'])
</li>
<li>De beslishulp is geen check op jouw eigen kennis en inzichten en je blijft zelf verantwoordelijk voor de informatie die je gebruikt.</li>
<li>Wij adviseren de uitkomsten van de beslishulp met andere experts in jouw organisatie te delen en te bespreken.</li>
<li>De beslisboom is bedoeld voor overheden die AI-systemen
<li>De beslishulp is bedoeld voor overheden die AI-systemen
aanbieden, of gebruiken onder eigen
verantwoordelijkheid.
</li>
<li> Voor vragen of opmerkingen over de beslisboom mail je naar:
<li> Voor vragen of opmerkingen over de beslishulp mail je naar:
<a
class="rvo-link" href="mailto:[email protected]">
[email protected]</a>.
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/betaversion-label.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</summary>
<div class="rvo-expandable-text__details absolute"
style="margin-left: -38px; margin-top: 10px;padding: 16px; border-radius: 5px; background-color: var(--rvo-alert-warning-background-color); width: 220px; z-index: 2">
Deze beslisboom is in ontwikkeling. Alle versies ontstaan op een open manier.
<a class="rvo-link" href="https://github.com/MinBZK/ai-act-decisiontree">
Deze beslishulp is in ontwikkeling. Alle versies ontstaan op een open manier.
<a class="rvo-link" href="https://github.com/MinBZK/ai-verordening-beslishulp">
Iedereen
mag opmerkingen en suggesties doen.
</a>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/stores/QuestionStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useQuestionStore = defineStore('question', () => {
function updateLabelsAtConclusion() {
/**
* This function will change all the "nader te bepalen" labels to "niet van toepassing" when
* the conclusion of the decision tree has been reached.
* the conclusion of the beslishulp has been reached.
*/
for (let key in LabelsBySubCategory.value) {
if (JSON.stringify(LabelsBySubCategory.value[key]) === JSON.stringify(['nader te bepalen'])) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions schemas/schema_decision_tree.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/MinBZK/AI-act-beslisboom/main/schemas/base.schema",
"title": "Beslisboom schema",
"description": "Beslisboom schema",
"$id": "https://raw.githubusercontent.com/MinBZK/ai-verordening-beslishulp/main/schemas/base.schema",
"title": "Decision tree schema",
"description": "Decision tree schema",
"type": "object",
"properties": {
"name": {
Expand Down
2 changes: 1 addition & 1 deletion script/gen_mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def create_html(file_name: str, flowchart_script: str) -> None:
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Decision Tree</title>
<title>AI Act Beslishulp</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script src='https://unpkg.com/[email protected]/dist/mermaid.min.js'></script>

Expand Down