feat: implement incident reporting and management system
CI / Lint, typecheck, test, build (push) Canceled after 0s
CI / End-to-end tests (push) Canceled after 0s

- Add incident reporting routes and logic to handle creation, updating, and retrieval of incidents.
- Implement visibility rules for users based on roles (reporters, supervisors).
- Create tests for incident reporting functionality to ensure correctness and reliability.
- Introduce site and area management routes, including validation for area hierarchy.
- Establish user management routes with role-based access control for creating and updating users.
- Add setup routes for initializing the application with an organization and admin user.
- Implement shared enums and schemas for consistent validation and data handling across the application.
- Create a test helper for setting up an in-memory database and API client for testing.
- Add TypeScript configuration for server-side code with strict type checking and module resolution.
This commit is contained in:
jayjennings committed 2026-10-06 10:51:18 -07:00
1 parent a382fa904a
commit c69eccb5c1
47 files changed
+6297 -45

No files matched your search

+25 -10
View File
@@ -6,10 +6,13 @@
"private": true,
"type": "module",
"engines": {
"node": ">=22.12"
"node": ">=22.18"
},
"scripts": {
"dev": "vite",
"dev": "concurrently -k -n web,api -c cyan,magenta \"npm:dev:web\" \"npm:dev:server\"",
"dev:web": "vite",
"dev:server": "node --watch --env-file-if-exists=.env server/index.ts",
"start": "node server/index.ts",
"build": "vite build",
"preview": "vite preview",
"lint": "oxlint --deny-warnings",
@@ -17,30 +20,42 @@
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "playwright test",
"db:generate": "drizzle-kit generate",
"db:seed": "node --env-file-if-exists=.env server/db/seed.ts",
"check": "npm run lint && npm run typecheck && npm test && npm run build"
},
"dependencies": {
"@electric-sql/pglite": "^0.5.8",
"@hono/node-server": "^2.1.3",
"@hono/zod-validator": "^0.9.1",
"drizzle-orm": "^0.45.3",
"hono": "^4.13.13",
"pg": "^8.23.1",
"zod": "^4.6.5"
},
"devDependencies": {
"@fontsource-variable/dm-sans": "^5.3.0",
"@fontsource-variable/space-grotesk": "^5.3.0",
"@fontsource/dm-mono": "^5.3.0",
"@tailwindcss/vite": "^4.3.3",
"lucide-react": "^1.39.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-router-dom": "^7.18.3",
"tailwindcss": "^4.3.3"
},
"devDependencies": {
"@playwright/test": "^1.63.0",
"@tailwindcss/vite": "^4.3.3",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.7",
"@types/node": "^26.6.4",
"@types/pg": "^8.23.1",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.1.0",
"concurrently": "^10.0.5",
"drizzle-kit": "^0.31.11",
"jsdom": "^30.1.2",
"lucide-react": "^1.39.0",
"oxlint": "^1.79.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-router-dom": "^7.18.3",
"tailwindcss": "^4.3.3",
"typescript": "^7.0.2",
"vite": "^8.2.2",
"vitest": "^5.0.3"