+
{statusCode}
Oh nein! Ein Fehler ist aufgetreten.
@@ -27,3 +29,30 @@ export const Error = ({
);
};
+
+export const ErrorFallback = ({
+ error,
+ reset,
+}: {
+ error: Error & { digest?: string };
+ reset: () => void;
+}) => {
+ useEffect(() => {
+ // Log the error to an error reporting service
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
Something went wrong!
+
+
+ );
+};
diff --git a/apps/hub/app/_components/Nav.tsx b/apps/hub/app/_components/Nav.tsx
index 5b3e9017..9bb39c62 100644
--- a/apps/hub/app/_components/Nav.tsx
+++ b/apps/hub/app/_components/Nav.tsx
@@ -48,6 +48,9 @@ export const VerticalNav = () => {
Stationen
+
+ Stichworte
+
Events
diff --git a/apps/hub/package.json b/apps/hub/package.json
index 48326b01..06bd1c52 100644
--- a/apps/hub/package.json
+++ b/apps/hub/package.json
@@ -32,6 +32,7 @@
"react-datepicker": "^8.1.0",
"react-day-picker": "^9.6.2",
"react-dom": "^19.0.0",
+ "react-error-boundary": "^5.0.0",
"react-hook-form": "^7.54.2",
"react-hot-toast": "^2.5.1",
"react-select": "^5.10.0",
diff --git a/grafana/grafana.db b/grafana/grafana.db
index 8474221c..664833f9 100644
Binary files a/grafana/grafana.db and b/grafana/grafana.db differ
diff --git a/package-lock.json b/package-lock.json
index 7473ab52..466ddb76 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -133,6 +133,7 @@
"react-datepicker": "^8.1.0",
"react-day-picker": "^9.6.2",
"react-dom": "^19.0.0",
+ "react-error-boundary": "^5.0.0",
"react-hook-form": "^7.54.2",
"react-hot-toast": "^2.5.1",
"react-select": "^5.10.0",
@@ -14824,6 +14825,18 @@
"react": "^19.0.0"
}
},
+ "node_modules/react-error-boundary": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-5.0.0.tgz",
+ "integrity": "sha512-tnjAxG+IkpLephNcePNA7v6F/QpWLH8He65+DmedchDwg162JZqx4NmbXj0mlAYVVEd81OW7aFhmbsScYfiAFQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5"
+ },
+ "peerDependencies": {
+ "react": ">=16.13.1"
+ }
+ },
"node_modules/react-hook-form": {
"version": "7.54.2",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.54.2.tgz",
diff --git a/packages/database/prisma/schema/keyword.prisma b/packages/database/prisma/schema/keyword.prisma
index 9e022cbc..fcfd6bf5 100644
--- a/packages/database/prisma/schema/keyword.prisma
+++ b/packages/database/prisma/schema/keyword.prisma
@@ -1,10 +1,22 @@
enum KEYWORD_CATEGORY {
- AB_ATMUNG: "AB_ATMUNG",
+ AB_ATMUNG
+ C_KREISLAUF
+ D_NEUROLOGISCH
+ E_TRAUMA_SONSTIGES
+ K_KIND
+ M_BERGRETTUNG
+ P_PSYCHIATRISCH
+ V_VERLETZUNG
+ W_WASSERRETTUNG
+ Z_SONSTIGES
}
model Keyword {
- id Int @id @default(autoincrement())
- name String
- description String
+ id Int @id @default(autoincrement())
+ category KEYWORD_CATEGORY
+ abreviation String
+ name String
+ description String?
+ hpgMissionsType String[]
// relations:
}
diff --git a/packages/database/prisma/schema/user.prisma b/packages/database/prisma/schema/user.prisma
index 93fcf586..4188af8c 100644
--- a/packages/database/prisma/schema/user.prisma
+++ b/packages/database/prisma/schema/user.prisma
@@ -13,6 +13,7 @@ enum PERMISSION {
ADMIN_USER
AUDIO_ADMIN
ADMIN_STATION
+ ADMIN_KEYWORD
AUDIO
PILOT
DISPO