238 Commits

Author SHA1 Message Date
Matthias Hochmeister
4ec719ad0a feat(persoenliche-ausruestung): add quantity field and article-grouped replacement flow in order dialog 2026-04-24 12:36:28 +02:00
Matthias Hochmeister
c55ec55e1b feat(admin): move integration URLs and credentials to GUI settings 2026-04-20 16:29:12 +02:00
Matthias Hochmeister
752dfe474c change dat format in member overview, sync exams to atemschutz tool, rework member detail page 2026-04-20 10:32:20 +02:00
Matthias Hochmeister
d796fae978 feat(sync): fix exam sync pagination, add AGL/AT20-Theorie lehrgang variants with yellow checkmark 2026-04-19 19:28:22 +02:00
Matthias Hochmeister
8c25cb0d40 feat(admin): add reset-atemschutz option to data management tab 2026-04-19 17:43:48 +02:00
Matthias Hochmeister
0a5402a9e5 feat(admin): add system logs viewer, tabbed data management, fix AT20 sync 2026-04-18 18:31:22 +02:00
Matthias Hochmeister
26df8b427e fix(mitglieder): improve Fahrgenehmigungen labels, pagination, and AT20 sync 2026-04-18 18:00:54 +02:00
Matthias Hochmeister
fa9f50d982 fix(buchhaltung): show Übersicht tab first and count all booked transactions in budget overview 2026-04-18 16:16:50 +02:00
Matthias Hochmeister
219e5f1195 feat(geplante-nachrichten): show age in birthday list 2026-04-17 14:28:02 +02:00
Matthias Hochmeister
8ee2b9170d fix(geplante-nachrichten): resolve {{date_range}} template variable in content builders 2026-04-17 14:24:47 +02:00
Matthias Hochmeister
968b24156b fix(geplante-nachrichten): fix wrong column refs in content builders — abgesagt bool, join users for names, correct status values 2026-04-17 14:15:34 +02:00
Matthias Hochmeister
d44f53a8a9 fix(geplante-nachrichten): cache rooms response 60s and pass Nextcloud errors through to frontend 2026-04-17 13:33:07 +02:00
Matthias Hochmeister
53c8be0f6d add clear error message for bot api 2026-04-17 13:29:09 +02:00
Matthias Hochmeister
72b575478b add error handling for bad credentials 2026-04-17 13:24:40 +02:00
Matthias Hochmeister
68e4ed265f fix(geplante-nachrichten): use getAllConversations in getRooms to return full room list instead of top 3 2026-04-17 12:47:13 +02:00
Matthias Hochmeister
169d045e4c feat(ausruestungsanfrage): show vendor order status and delivery progress in request detail 2026-04-17 12:39:40 +02:00
Matthias Hochmeister
d8afcc1f63 fix(geplante-nachrichten): add /api prefix to all API paths, fix subscribe room token, unmask empty bot credentials, add Einzelnachrichten tab 2026-04-17 12:33:48 +02:00
Matthias Hochmeister
fcca04cc39 fix(bestellungen): automate delivery status transitions, enable received-qty input for creators, and add im_haus tracking to positionen 2026-04-17 11:42:12 +02:00
Matthias Hochmeister
b91cf88812 add: add feature to schedule messages 2026-04-17 10:41:00 +02:00
Matthias Hochmeister
5811ac201e fix(geplante-nachrichten): distinguish unconfigured bot from unreachable Nextcloud in room picker 2026-04-17 09:47:31 +02:00
Matthias Hochmeister
510b44e48c fix(tool-config): merge partial updates instead of replacing, mask bot_app_password 2026-04-17 09:30:13 +02:00
Matthias Hochmeister
7532a19326 fix(geplante-nachrichten): read bot credentials from tool_config_nextcloud, add manual trigger endpoint 2026-04-17 09:20:18 +02:00
Matthias Hochmeister
8a0c4200ff feat(geplante-nachrichten): scheduled message rule engine with bot delivery, admin UI, and manual trigger 2026-04-17 09:10:57 +02:00
Matthias Hochmeister
6614fbaa68 feat(admin): centralize tool & module settings in Werkzeuge tab with per-tool permissions, DB-backed config, connection tests, and cog-button navigation 2026-04-17 08:37:29 +02:00
Matthias Hochmeister
e56075f38a fix(issues): allow priority+status change for assignees, dynamic owner transitions, kanban droppable columns; feat(persoenliche-ausruestung): configurable zustand 2026-04-16 14:08:05 +02:00
Matthias Hochmeister
a6aeab80d4 feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable 2026-04-16 08:22:01 +02:00
Matthias Hochmeister
058ee721e8 feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable 2026-04-16 08:19:38 +02:00
Matthias Hochmeister
dac0b79b3b eat(ausruestung): allow create role to view full list, add Mitglieder pagination, add admin reset for persoenliche Ausruestung 2026-04-16 07:52:36 +02:00
Matthias Hochmeister
3f8c4d151d fix(persoenliche-ausruestung): save characteristics on create/edit and add editable eigenschaft fields to assignment page 2026-04-15 20:06:02 +02:00
Matthias Hochmeister
260b71baf8 refactor(mitglieder): replace legacy status values (passiv/anwärter/ausgetreten/…) with aktiv/kind/jugend/reserve across backend, frontend, and sync 2026-04-15 19:43:18 +02:00
Matthias Hochmeister
c1de8bd163 fix(dienstgrad): add ASB→Abschnittssachbearbeiter, remove non-existent ranks (FA/FF/BOI/BAM variants), sync DB constraint, TS types, and display map 2026-04-15 19:26:21 +02:00
Matthias Hochmeister
eb2342684e feat(bestellungen): add optional "Für Mitglied" field, auto-populated from internal request submitter 2026-04-15 18:17:54 +02:00
Matthias Hochmeister
67fd0878ce fix(sync): add Sachbearbeiter to dienstgrad constraint; add catalog browser dialog for external order position 2026-04-15 18:05:39 +02:00
Matthias Hochmeister
719b7bfcdb feat(sync): sync all FDISK members, auto-creating dashboard accounts for users not yet logged in 2026-04-15 14:36:57 +02:00
Matthias Hochmeister
50dbf6e9fd fix(multi): FDISK sync, order UX, Ausbildungen display, untracked items
FDISK sync:
- fix(sync): strip 'KFZ-Führerschein / ' prefix from license class select option text before whitelist validation
- fix(sync): fix navigateAndGetTableRows to pick date column with most matches (prevents sidebar tables from hijacking dateColIdx for Beförderungen)
- fix(sync): input.value fallback now falls through to textContent when value is empty
- feat(sync): expand Ausbildungen to capture Kursnummer, Kurz, Kurs (full name), Erfolgscode from FDISK table; add migration 086

External orders (Bestellungen):
- fix(bestellungen): allow erhalten_menge editing in lieferung_pruefen status (resolves deadlock preventing order completion)
- fix(bestellungen): show cost/received warnings for bestellt/teillieferung/lieferung_pruefen, not just when abgeschlossen is next
- feat(bestellungen): rename status labels to Eingereicht, Genehmigt, Teilweise geliefert, Vollständig geliefert
- fix(bestellungen): remove duplicate Bestelldatum from PDF export
- feat(bestellungen): add catalog item autocomplete to creation form (auto-fills bezeichnung + artikelnummer)

Internal orders (Ausruestungsanfrage):
- fix(ausruestung): untracked items with zuweisung_typ='keine' now appear in Nicht-zugewiesen tab (frontend filter was too strict)
- feat(ausruestung): load user-specific personal items when ordering for another user
- feat(ausruestung): auto-set ist_ersatz=true for items from personal equipment list; add toggle for catalog/free-text items
- feat(ausruestung): load item eigenschaften when personal item with artikel_id is checked

Ausbildungen display:
- feat(mitglieder): show kursname (full), kurs_kurzbezeichnung chip, erfolgscode chip (color-coded) per Ausbildung entry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 13:22:04 +02:00
Matthias Hochmeister
4c01683c10 fix(ausruestung): show untracked assignments, item traits in order wizard, receipt
gate for completion, PDF phone + last-row line
2026-04-15 10:58:51 +02:00
Matthias Hochmeister
279cc03b6b feat(ausruestung): catalog-driven item tracking, im_haus in overview, order quantity override, fix stale queries 2026-04-15 10:20:36 +02:00
Matthias Hochmeister
633a75cb0b feat(ausruestungsanfrage): add personal item tracking, catalog enforcement, and detail pages 2026-04-14 16:49:20 +02:00
Matthias Hochmeister
e6b6639fe9 fix(buchhaltung): format transaction IDs as YYYY/NR and deduplicate dashboard widgets 2026-04-14 15:00:38 +02:00
Matthias Hochmeister
4fbea8af81 feat: widget icons, dark theme tables, breadcrumb removal, bookkeeping rework, personal equipment pages, PDF/order improvements 2026-04-14 10:35:40 +02:00
Matthias Hochmeister
4c4fb01e68 fix: correct table name ausbildung (not ausbildungen) in fdisk and purge handlers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:18:41 +02:00
Matthias Hochmeister
25d418539e fix(migration): make trigger creation idempotent with DROP IF EXISTS
Previous failed runs committed the CREATE TABLE/TRIGGER DDL outside a
transaction (pool.query BEGIN/ROLLBACK is not connection-pinned), leaving
the trigger in place. Re-runs then fail with 'already exists'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:15:29 +02:00
Matthias Hochmeister
67adc4f5aa fix(migration): add required label+sort_order columns to permissions INSERT
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:06:06 +02:00
Matthias Hochmeister
bb95a66ffe fix(migration): fix feature_groups column names (label, sort_order not name/maintenance_mode)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:04:10 +02:00
Matthias Hochmeister
1ad328edd3 fix(migration): use correct column name authentik_group in group_permissions seed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 20:01:20 +02:00
Matthias Hochmeister
1215e9ea70 feat: personal equipment tracking, order assignment, purge fix, widget consolidation
- Migration 084: new persoenliche_ausruestung table with catalog link, user
  assignment, soft delete; adds zuweisung_typ/ausruestung_id/persoenlich_id
  columns to ausruestung_anfrage_positionen; seeds feature group + 5 permissions

- Fix user data purge: table was shop_anfragen, renamed to ausruestung_anfragen
  in mig 046 — caused full transaction rollback. Also keep mitglieder_profile
  row but NULL FDISK-synced fields (dienstgrad, geburtsdatum, etc.) instead of
  deleting the profile

- Personal equipment CRUD: backend service/controller/routes at
  /api/persoenliche-ausruestung; frontend page with DataTable, user filter,
  catalog Autocomplete, FAB create dialog; widget in Status group; sidebar
  entry (Checkroom icon); card in MitgliedDetail Tab 0

- Ausruestungsanfrage item assignment: when a request reaches erledigt,
  auto-opens ItemAssignmentDialog listing all delivered positions; each item
  can be assigned as general equipment (vehicle/storage), personal item (user,
  prefilled with requester), or not tracked; POST /requests/:id/assign backend

- StatCard refactored to use WidgetCard as outer shell for consistent header
  styling across all dashboard widget templates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 19:19:35 +02:00
Matthias Hochmeister
b477e5dbe0 feat: user data purge, breadcrumbs, first-login dialog, widget consolidation, bookkeeping cascade
- Admin can purge all personal data for a user (POST /api/admin/users/:userId/purge-data)
  while keeping the account; clears profile, notifications, bookings, ical tokens, preferences
- Add isNewUser flag to auth callback response; first-login dialog prompts for Standesbuchnummer
- Add PageBreadcrumbs component and apply to 18 sub-pages across the app
- Cascade budget_typ changes from parent pot to all children recursively, converting amounts
  (detailliert→einfach: sum into budget_gesamt; einfach→detailliert: zero all for redistribution)
- Migrate NextcloudTalkWidget to use shared WidgetCard template for consistent header styling

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 16:15:28 +02:00
Matthias Hochmeister
dd5cd71fd1 feat(dashboard,admin): widget group customization and FDISK data purge 2026-04-13 15:06:34 +02:00
Matthias Hochmeister
5acfd7cc4f feat(buchhaltung): add transfers, bank statements, Haushaltsplan, and PDF export 2026-03-30 17:05:18 +02:00
Matthias Hochmeister
d833b3c224 feat(buchhaltung): recurring job, budget alerts, audit endpoint, konto-typen CRUD 2026-03-30 15:04:06 +02:00