Commit graph

57 commits

Author SHA1 Message Date
b1aef74204 CI: drop the extra backend test job (not in the GitLab pipeline)
All checks were successful
ci / build-1 (push) Successful in 1m56s
ci / backend-docker (push) Successful in 0s
ci / frontend-docker (push) Successful in 0s
ci / build (push) Successful in 3m14s
ci / build-2 (push) Successful in 31s
ci / chart (push) Successful in 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 11:25:33 +01:00
1401ad0471 CI: add backend test job
All checks were successful
ci / build-1 (push) Successful in 1m39s
ci / frontend-docker (push) Successful in 0s
ci / build (push) Successful in 5m32s
ci / backend-docker (push) Successful in 0s
ci / backend-test (push) Successful in 6m55s
ci / build-2 (push) Successful in 36s
ci / chart (push) Successful in 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 11:03:27 +01:00
bb5d5331cc Port CI to Forgejo Actions
Some checks failed
ci / backend-docker (push) Has been cancelled
ci / frontend-docker (push) Has been cancelled
ci / chart (push) Has been cancelled
ci / build (push) Has been cancelled
ci / build-1 (push) Has been cancelled
ci / build-2 (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 10:53:26 +01:00
597e06ad92 switch to oci registry for helm chart 2026-11-17 22:02:56 +01:00
740adb1f5e fix routing of well known urlks for MCP registration 2026-10-20 20:13:23 +02:00
40397dfc28 show a more generic response on AI error 2026-10-13 21:33:25 +02:00
94fddc9916 make AI model selection easier 2026-10-13 21:26:16 +02:00
7e795c0761 make summary of a card shorter 2026-10-13 21:12:06 +02:00
930a114d54 allow klicking on title of message to open card 2026-10-13 21:10:47 +02:00
eacb11c099 fix disabling reasoning for gemma4 2026-10-13 20:38:21 +02:00
43401588c9 ui changes for generic openai API support 2026-10-13 20:27:11 +02:00
86b9577740 make AI endpoint compatible with generic openAI 2026-10-13 20:26:06 +02:00
e05e810520 allow enabling / disabling specific AI features 2026-10-13 20:15:54 +02:00
59d6b2787b fix bug when opening a incident from the chat 2026-10-12 23:26:52 +02:00
447acda002 optimize AI agent speed 2026-10-12 23:25:22 +02:00
cac6a8c3e4 add button to case close feature to generate AI summary 2026-10-12 23:19:38 +02:00
ac010f2f11 add chat like status messages on in progress items 2026-10-12 23:17:06 +02:00
3e19d63f35 add AI Integration 2026-10-12 23:10:05 +02:00
Jonas Leder
2a43dca4d4 update MCP SErver implementation 2026-10-12 13:50:00 +02:00
Jonas Leder
a73602d2a6 implement MCP server 2026-10-12 11:49:38 +02:00
Jonas Leder
fd0f9e4c70 make registration of dashboard easier 2026-10-12 11:44:48 +02:00
Jonas Leder
cb6d0dcb47 add more detailed logs on push registration error 2026-10-12 11:37:32 +02:00
Jonas Leder
f873c41dcd fix webpush 2026-10-12 10:58:22 +02:00
fade1f1178 implement push notifications 2026-10-11 20:11:06 +02:00
b1aafbd25e implement push notifications 2026-10-11 20:10:49 +02:00
81bfdeb55e add graphify instructions 2026-10-11 20:03:19 +02:00
81596697fc init graphify 2026-10-11 20:01:11 +02:00
1b64e0498f implement PWA and react router 2026-10-11 19:56:23 +02:00
bd96edccb6 make assignment selector nicer 2026-10-11 19:41:17 +02:00
9a94fb97d9 allow asigning user to a job and send mail to user if not assigned self 2026-10-11 19:38:58 +02:00
8f6ca097eb create repairorder as PDF 2026-10-11 19:30:07 +02:00
1e577d2bbf drop useless fields from mpfeuer 2026-10-11 19:16:25 +02:00
42c105d5e2 add some missing device types in mp feuer db 2026-10-11 18:09:22 +02:00
93fa31d5bb Only write details without an own column to MP-Feuer INFOTEXT
- Title, device, reporter, description, high priority and the report and
  close times are already stored in MANGEL columns and no longer repeated
- INFOTEXT keeps the report number, Verantwortlichkeit, Standort,
  low/medium priority, dashboard source, resolver name and Maßnahme
- Reporter and description are appended when their column is missing or
  too short (MANGEL_LANG holds 50, MANGEL_ERFASSER 30 characters)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 18:04:37 +02:00
43860ceec1 Map Standorte to MP-Feuer entities
- Admins search MP-Feuer (vehicles, device assignments, location texts,
  departments) and map entries to a Standort under Admin → Standorte;
  each entity can only belong to one Standort
- The barcode lookup returns the mapped Standort (assignment before
  location text before department), falling back to name matching that
  also handles MP-Feuer's "name | call sign" assignment format
- Mappings are removed when a Standort is deleted

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:51:30 +02:00
cec370441c Prefill new faults from MP-Feuer by barcode
- Read-only device lookup endpoints for the app and public dashboards
- Device lookup reads all available STAMM fields (number, name, type,
  manufacturer, call sign, inventory number, assignment, location)
- Entering or scanning a barcode looks it up after a short pause or on
  Enter (without submitting the form) and fills empty fields: Gerät and
  a Standort matching the MP-Feuer assignment or location by name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:45:02 +02:00
e5d8d36913 Set MP-Feuer defect status to Erledigt on hand-over
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:35:30 +02:00
cc40740624 Mark MP-Feuer defects as done on hand-over
Set MANGEL_OK, MANGEL_HDZ (Handzeichen of the closing user) and
MANGEL_TERMIN (close date) like MP-Feuer does when a defect is closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:32:56 +02:00
7a51755ca9 Hand over faults to MP-Feuer when finishing them
- Dedicated MP-Feuer SQL Server connection (MPFEUER_DB_* settings)
- Device lookup by barcode in BARCODE_NR/BARCODE_NR2 of the GEL, GFU,
  GHR, GMP, GSL and GSO _STAMM tables; the close dialog shows the match
- New <PREFIX>_MANGEL row referencing the device via _INDEX, with the
  fault's times, reporter, title, description and a full report;
  global Handzeichen (MPFEUER_HANDZEICHEN, default SM) and the user's
  MP-Feuer Handzeichen from the settings
- Inserts run in MP-Feuer transfer mode so its triggers keep these
  values; texts are truncated to the column lengths
- The fault is only resolved after a successful hand-over and stores
  the MP-Feuer reference
- Dry run test against a configured MP-Feuer database (rolled back)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:29:29 +02:00
dcd2f31372 Add barcode field to faults
- Optional barcode text to identify the affected device, shown on the
  fault cards, included in notification mails and matched by search

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:48:44 +02:00
f2e011613d Show only relevant OIDC groups in user settings
- GET /api/v1/me/groups returns the user's groups that grant the admin
  role, login access or a Verantwortlichkeit, with what each grants
- Settings list these instead of all groups from the identity provider

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:45:43 +02:00
930ed9fa17 Allow users to disable mail notifications
- New per user setting under Einstellungen → Benachrichtigungen,
  enabled by default for existing and new users
- PUT /api/v1/me/preferences only updates the fields that are sent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:33:08 +02:00
08f7abe2c9 Rename fault types to Verantwortlichkeit and manage groups in admin UI
- UI calls fault types Verantwortlichkeiten
- Admins maintain OIDC groups per Verantwortlichkeit
- Dashboard edit dialog selects which restricted history to show
- Settings show the user's OIDC groups
- Document SMTP and group behaviour, add SMTP settings to Helm chart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:31:30 +02:00
1d5a624200 Restrict history by responsibility groups and notify members by mail
- Fault types (Verantwortlichkeiten) get OIDC groups; the history of a
  restricted fault type is only visible to group members and admins
- Users' OIDC groups are stored on login
- Dashboards get an admin managed list of restricted fault types whose
  history they may show
- New faults send a mail to all known group members except the
  reporter; SMTP is configured via SMTP_* environment variables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:29:29 +02:00
ee09240681 Add per user default filter for the fault overview
- Users store a default filter (fault type, location, priority, status)
  via PUT /api/v1/me/preferences, returned as defaultFilter on the user
- The overview opens with the default filter applied; buttons switch
  between showing all faults and restoring the default filter
- Settings page gets a Standardfilter section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:23:33 +02:00
d3702b4a91 Use location dropdown instead of categories in the frontend
- Report form selects the location from the admin managed list,
  free text location field removed
- Admin tab Standorte replaces Kategorien (without color picker)
- Filters, fault cards and kiosk show the selected location

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:17:05 +02:00
d515c3758f Replace categories with admin managed locations
- New Location catalog (name, description, sort order, active) managed
  under /api/v1/admin/locations; faults reference a location instead of
  a category and a free text location
- Filter by locationId, search also matches the location name
- Legacy migration converts existing free text locations into Location
  entries and drops the category column, constraint and table

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:15:59 +02:00
24c859f3b4 Support HS256 signed ID tokens
Providers like Authentik sign ID tokens with HS256 using the client
secret when no signing key is configured. Verify HMAC algorithms with
OIDC_CLIENT_SECRET and all asymmetric algorithms via the provider JWKS.

Also run OIDC discovery with a background context, since go-oidc keeps
it for later JWKS refreshes and a request context gets cancelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:09:57 +02:00
a12f22b992 Format database package
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:08:41 +02:00
477a0c053e Fix OIDC discovery for issuers with trailing slash
go-oidc requires an exact issuer match. The configured issuer was
stripped of its trailing slash, which broke providers like Authentik.
Use the configured value as is and retry with the slash toggled.
Add an OIDC login flow test against a fake provider covering PKCE,
nonce, group based role mapping, single use state and logout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 15:08:36 +02:00