diff --git a/.github/workflows/deploy-docker-to-tst.yml b/.github/workflows/deploy-docker-to-tst.yml
index 8651236..9f06598 100644
--- a/.github/workflows/deploy-docker-to-tst.yml
+++ b/.github/workflows/deploy-docker-to-tst.yml
@@ -25,15 +25,21 @@ jobs:
name: version
path: version.txt
- name: Notify Mattermost via Bot
+ env:
+ VERSION: ${{ VERSION }}
+ REPO: ${{ gitea.repository }}
+ BRANCH: ${{ gitea.ref }}
+ MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }}
run: |
- curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
+ curl --fail -X POST -H "Authorization: Bearer $MATTERMOST_BOT_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
- "message": "@all \nš *Build gestart!* Een nieuwe build [${{VERSION}}-SNAPSHOT] is begonnen voor de repository *${{ gitea.repository }}* op branch *${{ gitea.ref }}*."
+ "message": "@all š *Build gestart!* Een nieuwe build ['"$VERSION"'-SNAPSHOT] is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*."
}' \
https://mattermost.melvanveen.nl/api/v4/posts
+
# Stap 3: Inloggen bij Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
@@ -94,11 +100,13 @@ jobs:
docker image prune -f
- name: Notify Mattermost via Bot
+ env:
+ VERSION: ${{ VERSION }}
run: |
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
-H 'Content-Type: application/json' \
-d '{
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
- "message": "@all \nā
*Build is geslaagd!* Er staat een nieuwe versie klaar op https://test-paypoint.melvanveen.nl"
+ "message": "@all ā
*Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl"
}' \
https://mattermost.melvanveen.nl/api/v4/posts
diff --git a/src/app/components/details/details.component.html b/src/app/components/details/details.component.html
index 9e1380a..fc0edc0 100644
--- a/src/app/components/details/details.component.html
+++ b/src/app/components/details/details.component.html
@@ -32,6 +32,7 @@
tuiButton
iconStart="@tui.pencil"
size="s"
+ id="bewerkAfspraak"
(click)="showEditModal = true"
type="button">
Bewerken
@@ -41,6 +42,7 @@
tuiButton
iconStart="@tui.trash-2"
size="s"
+ id="verwijderAfspraak"
(click)="showDeleteModal = true"
type="button">
Verwijderen
@@ -59,6 +61,7 @@
appearance="outline"
tuiButton
size="s"
+ id="bevestigAfspraakVerwijderen"
(click)="deleteAppointment()"
type="button">
Ja, afspraak verwijderen
@@ -67,6 +70,7 @@
appearance="outline"
tuiButton
size="s"
+ id="annuleerAfspraakVerwijderen"
(click)="showDeleteModal = false"
type="button">
Nee, ga terug
diff --git a/src/app/components/edit-item/edit-item.component.html b/src/app/components/edit-item/edit-item.component.html
index 1737078..b289940 100644
--- a/src/app/components/edit-item/edit-item.component.html
+++ b/src/app/components/edit-item/edit-item.component.html
@@ -5,6 +5,7 @@
tuiTextfieldLegacy
formControlName="title"
type="text"
+ id="titelBewerken"
/>
{{ action }}
@@ -27,6 +29,7 @@
Klant
@@ -53,6 +57,7 @@
formControlName="date"
tuiTextfieldSize="m"
class="tui-space_vertical-4"
+ id="datumBewerken"
[tuiTextfieldLabelOutside]="false"
>
Datum
@@ -63,6 +68,7 @@
formControlName="startTime"
tuiTextfieldSize="m"
class="tui-space_top-2"
+ id="vanBewerken"
[tuiTextfieldLabelOutside]="false">
Van
@@ -72,6 +78,7 @@
formControlName="endTime"
tuiTextfieldSize="m"
class="tui-space_top-2"
+ id="totBewerken"
[tuiTextfieldLabelOutside]="false"
>
Tot
@@ -79,12 +86,13 @@
- Notities
+ Notities
- {{ getDate() }}
+ {{ getDate() }}
@@ -30,6 +33,7 @@
appearance="secondary"
size="m"
tuiButton
+ id="vandaag"
(click)="setToday()"
type="button">
Vandaag
@@ -38,6 +42,7 @@
appearance="secondary"
size="m"
tuiButton
+ id="afspraakMaken"
(click)="isModalOpen = true"
type="button">
50) }"
[ngStyle]="getInlineStyles(appointment)">
diff --git a/src/app/pages/klanten/klanten.component.html b/src/app/pages/klanten/klanten.component.html
index 5186ace..41ec7ce 100644
--- a/src/app/pages/klanten/klanten.component.html
+++ b/src/app/pages/klanten/klanten.component.html
@@ -8,6 +8,7 @@
size="m"
tuiButton
appearance="secondary"
+ id="klantToevoegen"
type="button"
(click)="toggleCustomerModal()"
>
@@ -26,7 +27,7 @@
-
+
| {{ customer.firstName }} {{ customer.lastName }} |
{{ customer.email }} |
@@ -47,6 +48,7 @@
@@ -61,6 +63,7 @@
@@ -74,6 +77,7 @@
@@ -83,6 +87,7 @@
appearance="secondary"
size="m"
tuiButton
+ id="opslaanKlant"
(click)="saveCustomer()"
[disabled]="customerForm.invalid"
type="button">