Commit Graph

27 Commits

Author SHA1 Message Date
91f67f7dfc feat: Allow primary users to access user management and create sub-users
Frontend:
- Extend UserManagementPage for both ADMIN and primary users
- Admins see all primary users (excluding other admins)
- Primary users see only their sub-users
- Add create sub-user form for primary users
- Adjust UI text based on user role
- Fix table columns (hide company column for primary users)
2026-03-17 16:58:47 +01:00
d03dc94ad1 feat: Extend React/Java app to match Lua functionality
Backend:
- Add Pretreatment record for pre-treatment data
- Extend Sample with pretreatment, clinicalExamDate, internalNote
- Extend TherapyRecommendation with detail fields (count, duration, dosage, location)
- Add startvacVaccination and noAntibioticTreatment flags
- Add null-safety defaults for MongoDB compatibility

Frontend:
- Add pretreatment fields to SampleRegistrationPage
- Add special pathogens section to AnamnesisPage
- Add therapy detail pickers to TherapyPage
- Improve AntibiogramPage: full text labels, centered headers
- Fix AdminDashboardPage TypeScript error in chart tooltip

Styling:
- Enlarge matrix buttons for S/I/R text
- Add matrix-col class for centered table columns
2026-03-17 16:50:40 +01:00
7c59944646 feat: New users require admin approval
- Set active=false for newly registered users
- Return RegistrationResponse instead of SessionResponse after registration
- Show success message informing user that admin approval is pending
- Login check already filters for active users only
2026-03-17 09:28:14 +01:00
93f52f1ae1 style: Display invoice statistics in a table layout
- Replace stat cards with table layout
- Keep consistent text size with rest of UI
- Align values to the right for better readability
2026-03-17 09:00:19 +01:00
b9919828e4 Revert "style: Improve invoice statistics layout with vertical spacing"
This reverts commit ce76a29038.
2026-03-17 08:59:53 +01:00
ce76a29038 style: Improve invoice statistics layout with vertical spacing
- Change stats grid to vertical list layout
- Add more spacing between stat cards
- Display value and label horizontally aligned with proper gap
2026-03-17 08:59:08 +01:00
eb0f921464 feat: Add invoice management menu and template editor for admin
- Add 'Rechnung' menu with sub-items 'Verwalten' and 'Template' in admin sidebar
- Create InvoiceTemplatePage with drag-and-drop editor for invoice templates
  - Includes invoice-specific elements (header, customer data, issuer info,
    invoice items, totals, payment terms, bank details)
  - Supports PDF preview and download
  - API integration for saving/loading templates (/admin/invoice-template)
- Create InvoiceManagementPage as placeholder for invoice overview
- Add routes for /admin/rechnung/verwalten and /admin/rechnung/template
- Update page titles in AppShell for new routes
2026-03-16 20:30:45 +01:00
cbabe13162 Admin Dashboard: Verwaltungsmodul-Bereich entfernt 2026-03-16 20:19:26 +01:00
19fda276b0 Admin Dashboard mit Chart.js: Balkendiagramm zeigt Proben pro Tierarzt 2026-03-16 17:14:17 +01:00
1df2d8276c Admin Dashboard mit Statistiken: Tierärzte-Anzahl, Gesamtproben und Proben pro Tierarzt 2026-03-16 17:11:17 +01:00
2fd101565e Admin wird in der Benutzerverwaltung nicht mehr angezeigt 2026-03-16 17:04:27 +01:00
021730b90b UserManagementPage für Admin vereinfacht: Nur Hauptnutzer anzeigen mit Freigabe/Sperre-Funktion 2026-03-16 17:02:19 +01:00
2f9b12250f Admin Dashboard weiter reduziert: Statistik-Karten entfernt, nur noch Header und Benutzerverwaltung 2026-03-16 16:58:56 +01:00
89d6651af2 Admin Dashboard reduziert: Nur noch Statistiken und Benutzerverwaltung-Kachel 2026-03-16 16:56:55 +01:00
118e6431da Admin-Menü weiter reduziert: Nur noch Dashboard und Benutzerverwaltung (Freigabe/Sperre) 2026-03-16 16:54:57 +01:00
477fcb69c4 Admin-Menü reduziert: Nur noch Dashboard, Neue Probe, Benutzerverwaltung (Freigabe/Sperre) und Portal 2026-03-16 16:53:50 +01:00
40de46588e Admin Dashboard hinzugefügt: Modernes Dashboard für Administratoren mit Statistiken, Verwaltungsmodulen und Schnellzugriffen 2026-03-16 16:51:15 +01:00
c41cdad90d UI-Verbesserungen: Rechnungsmenü entfernt, TS zu Trockenstellerprobe, Auffällig statt ⚠, Erregerkacheln bereinigt, Layout-Abstände optimiert 2026-03-16 12:38:08 +01:00
e01afb9a10 Add report templates and unify template storage 2026-03-13 19:20:54 +01:00
5fd349dee2 Refine invoice template editor interactions 2026-03-13 16:59:14 +01:00
490be6a89b Add persistent invoice template management 2026-03-13 16:02:46 +01:00
ff237332e1 Add invoice template editor 2026-03-13 11:35:15 +01:00
c7362a553b Harden access control and restore customer admin pages 2026-03-13 08:52:04 +01:00
eb699666d9 Harden auth and improve user management 2026-03-12 20:28:06 +01:00
1a8e37bd36 Add customer search and navigation updates 2026-03-12 16:50:50 +01:00
8ebb4d06e5 Add customer registration and deployment updates 2026-03-12 16:02:16 +01:00
fb8e3c8ef6 Initial MUH app implementation 2026-03-12 11:43:27 +01:00