fix(07): UAT fixes — SMTP test email, DKV routing, Exchange domain field
- SMTP: add test-to field, send real email via sendMail() instead of verify() - SMTP: fix no_auth warning shown as error for open-relay servers - DKV: register dkv-fleet in MODULE_REGISTRY (fixes "Modul nicht gefunden") - DKV: add dynamic [category]/[moduleSlug]/settings + vehicles sub-routes - DKV: settings/vehicles links use useParams for consistent URLs - DKV: add gear icon settings link to module main page - DKV: rename module to "DKV-Rechnung" in seed + translations - DKV: add optional domain field for Exchange (WebCredentials 3rd arg) - DKV: hide IMAP-only fields (Port/Verschlüsselung/Ordner) when Exchange selected - DKV: hide Exchange-only field (Domain) when IMAP selected - Prisma: add domain column to DkvModuleConfig Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,36 +9,40 @@ updated: 2026-06-27T15:20:00Z
|
||||
## Current Test
|
||||
<!-- OVERWRITE each test - shows where we are -->
|
||||
|
||||
[testing paused — 8 tests pending, 1 issue found]
|
||||
next: Test 2 — Settings-Sidebar Allgemein-Kategorie
|
||||
number: 7
|
||||
name: DKV Einstellungen — Posteingang-Konfiguration
|
||||
expected: |
|
||||
/modules/dkv-fleet/settings zeigt einen Tab "Posteingang" mit Formular für IMAP- oder Exchange-Zugangsdaten (Host, Port, Benutzername, Passwort). Formular kann ausgefüllt und gespeichert werden.
|
||||
awaiting: user response
|
||||
|
||||
## Tests
|
||||
|
||||
### 1. Cold Start Smoke Test
|
||||
expected: Kill any running services. Start fresh via docker compose up. API-Container startet ohne Fehler, Prisma-Verbindung gelingt, /api/health oder ein einfacher API-Call liefert eine Antwort zurück. Keine Crash-Logs in docker compose logs tessera-ctl-api-1.
|
||||
result: issue
|
||||
reported: "DB-Container nach Start nicht in docker compose ps sichtbar. API loggt wiederholt P1001: Can't reach database server at db:5432 bei Requests (ModuleRegistry, Dashboard, LdapSync, WidgetInstance). NestJS startete und Admin-Seed lief durch, aber DB-Verbindung bricht danach ab."
|
||||
severity: major
|
||||
result: pass
|
||||
note: "docker compose down && docker compose up -d: DB healthy → API healthy → Web up. Früheres P1001 war externaler SIGKILL auf DB-Container, kein Code-Defekt."
|
||||
|
||||
### 2. Settings-Sidebar: Allgemein-Kategorie
|
||||
expected: In der Settings-Seitenleiste (z.B. unter /settings/general/smtp) erscheint eine neue Kategorie "Allgemein" mit einem Link "SMTP" — platziert oberhalb der bestehenden "Dashboard"-Kategorie.
|
||||
result: [pending]
|
||||
result: pass
|
||||
|
||||
### 3. SMTP-Einstellungen-Seite aufrufen
|
||||
expected: /settings/general/smtp öffnet eine Seite mit einem Formular, das 6 Felder enthält: Host, Port, Verschlüsselung (Dropdown), Benutzername, Passwort (mit Show/Hide-Toggle), Absenderadresse. Das Passwort-Feld ist leer (niemals vorausgefüllt).
|
||||
result: [pending]
|
||||
result: pass
|
||||
|
||||
### 4. SMTP-Konfiguration speichern
|
||||
expected: Formularfelder ausfüllen und "Speichern" klicken → kurze Erfolgs-Meldung erscheint ("Gespeichert" o.ä.). Beim nächsten Laden der Seite sind Host, Port, Benutzername, Absenderadresse wieder befüllt — Passwort bleibt leer (nur hasPassword-Indikator).
|
||||
result: [pending]
|
||||
result: pass
|
||||
|
||||
### 5. SMTP-Verbindungstest
|
||||
expected: "Verbindung testen"-Button anklicken → inline Feedback erscheint (grün bei Erfolg, rot bei Fehler). Die Meldung verschwindet automatisch nach ca. 6 Sekunden.
|
||||
result: [pending]
|
||||
result: pass
|
||||
note: "Feld 'Test-E-Mail an' ergänzt. Echter Versand via sendMail(). Grüne Bestätigung erscheint korrekt."
|
||||
|
||||
### 6. DKV Fleet Modul — Hauptseite
|
||||
expected: /modules/dkv-fleet zeigt drei Bereiche: (1) Verarbeitungshistorie-Tabelle mit Spalten Datum/Rechnungsnummer/Status/Fahrzeuge, (2) Export-Dateiliste, (3) "Jetzt prüfen"-Button. Bei leerem System zeigt die Tabelle einen leeren Zustand (kein Crash).
|
||||
result: [pending]
|
||||
result: pass
|
||||
note: "MODULE_REGISTRY-Eintrag für dkv-fleet ergänzt. URL: /modules/fleet/dkv-fleet"
|
||||
|
||||
### 7. DKV Einstellungen — Posteingang-Konfiguration
|
||||
expected: /modules/dkv-fleet/settings zeigt einen Tab "Posteingang" mit Formular für IMAP- oder Exchange-Zugangsdaten (Host, Port, Benutzername, Passwort). Formular kann ausgefüllt und gespeichert werden.
|
||||
@@ -55,20 +59,12 @@ result: [pending]
|
||||
## Summary
|
||||
|
||||
total: 9
|
||||
passed: 0
|
||||
issues: 1
|
||||
pending: 8
|
||||
passed: 5
|
||||
issues: 0
|
||||
pending: 4
|
||||
skipped: 0
|
||||
blocked: 0
|
||||
|
||||
## Gaps
|
||||
|
||||
- truth: "API-Container startet clean, DB-Verbindung stabil nach compose up"
|
||||
status: failed
|
||||
reason: "User reported: DB-Container nicht in docker compose ps, API loggt P1001 Can't reach db:5432 bei Requests nach Start"
|
||||
severity: major
|
||||
test: 1
|
||||
root_cause: ""
|
||||
artifacts: []
|
||||
missing: []
|
||||
debug_session: ""
|
||||
[none yet]
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"Tauri 2 bundles: Linux AppImage via bundle targets ['appimage']. Windows NSIS (-setup.exe) recommended over MSI -- NSIS supports cross-compilation from Linux, MSI requires Windows. NSIS config: install modes (perMachine/both), languages, compression (LZMA default), custom hooks. Bundle output: target/release/bundle/appimage/ and target/release/bundle/nsis/.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-25T07:11:49.463Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"Tauri 2 plugins: @tauri-apps/plugin-store (2.4.3) for persistent KV storage, @tauri-apps/plugin-notification (2.3.3) for OS notifications, @tauri-apps/plugin-autostart (2.5.1) for system startup, @tauri-apps/plugin-window-state (2.4.1) for persisting window size/position. All from official tauri-apps/plugins-workspace. System tray via TrayIconBuilder with tray-icon feature flag. Close-to-tray: on_window_event CloseRequested -> prevent_close + hide. RunEvent::ExitRequested -> prevent_exit to keep alive.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-25T07:11:49.362Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"NestJS @nestjs/schedule v6: ScheduleModule.forRoot() in AppModule. Static: @Interval(ms) or @Cron(expression). Dynamic: inject SchedulerRegistry, use CronJob from 'cron', schedulerRegistry.addCronJob(name, job), job.start(). Update interval: stop + delete + recreate. Module uses cron package under the hood. For interval-in-minutes from DB config: compute cron expression or use setInterval pattern. ScheduleModule already in AppModule? Check app.module.ts - YES, @nestjs/schedule@^6.1.3 is in deps.","source":"web","provider":"websearch","confidence":"LOW","fetched_at":"2026-06-26T12:30:31.855Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"Tauri 2 project in pnpm monorepo: use 'npx tauri init' in apps/desktop. src-tauri goes inside apps/desktop/src-tauri. For URL wrapper: set frontendDist to external URL (e.g. http://server:3000). devUrl for dev server. tauri.conf.json is primary config. CLI: @tauri-apps/cli. Requires Rust toolchain + system deps (libwebkit2gtk-4.1-dev, libgtk-3-dev, etc).","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-25T07:11:49.268Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"imapflow: Modern IMAP client. Connect: new ImapFlow({ host, port, secure, tls, auth: { user, pass } }). Get mailbox lock: client.getMailboxLock('INBOX'). Search: client.search({ from: sender }, { uid: true }) returns UIDs. FetchAll: client.fetchAll(uids, { envelope: true, bodyStructure: true }, { uid: true }). Download part: client.download(uid, partId, { uid: true }) returns { content: Stream }. Use fetchAll() first, then process - avoids IMAP deadlock. STARTTLS: secure=false + tls={rejectUnauthorized: false} + port 587. TLS: secure=true + port 993. None: secure=false + tls.ignoreTLSErrors=true or disableCompression.","source":"web","provider":"websearch","confidence":"LOW","fetched_at":"2026-06-26T12:30:25.576Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"For Exchange calendar access: ews-javascript-api v0.15.3 (EWS/SOAP, last updated 2024-05) or @microsoft/microsoft-graph-client v3.0.7 (REST/Graph API, last updated 2023-09). MS Graph is the modern approach for Exchange Online/M365. EWS is needed for on-premises Exchange. Both support OAuth.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-23T12:25:14.344Z","ttl":86400000,"kind":"web"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"react-grid-layout v2.2.3 is a TypeScript rewrite with hooks API (useContainerWidth, useGridLayout, useResponsiveLayout). Layout items have i,x,y,w,h,minW,minH,maxW,maxH,static,isDraggable,isResizable. Key callbacks: onLayoutChange, onDragStop, onResizeStop, onBreakpointChange. Responsive via breakpoints/cols config. v2 requires width prop (use useContainerWidth hook). CSS imports needed: react-grid-layout/css/styles.css and react-resizable/css/styles.css.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-23T12:25:13.959Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"node-ical v0.26.1 is the leading ICS parser for Node.js with 190K weekly downloads. Provides sync/async parsing from strings, files, and URLs. Handles VEVENT, VTODO, VJOURNAL, recurring events, timezones.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-23T12:25:14.159Z","ttl":86400000,"kind":"web"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"@uiw/react-md-editor v4.1.1 is a lightweight Markdown editor with toolbar (bold, italic, lists, links, code), GFM support including task lists/checkboxes, dark mode via data-color-mode attribute, customizable toolbar via commands prop, live preview mode. ~4.6KB gzipped core. 774K weekly downloads.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-23T12:25:14.058Z","ttl":86400000,"kind":"web"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"SheetJS xlsx 0.18: XLSX.utils.book_new() creates workbook. XLSX.utils.aoa_to_sheet(rows) from array-of-arrays where rows[0] = headers. XLSX.utils.book_append_sheet(wb, ws, sheetName). XLSX.write(wb, { type:'buffer', bookType:'xlsx' }) returns Buffer. Date cells: pass JS Date objects, xlsx serializes to Excel date serial. Cell formatting: ws[cellAddr].z = 'DD.MM.YYYY' for display format. German date format 'TT.MM.JJJJ' in the data = string, not Date object, so just write as string. Numeric km: write as number, no unit.","source":"web","provider":"websearch","confidence":"LOW","fetched_at":"2026-06-26T12:30:47.031Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"pdf-parse v2.4.5: const pdfParse = require('pdf-parse'); const data = await pdfParse(buffer); data.text = full text extracted from all pages concatenated. data.numpages = page count. data.info = PDF metadata. The library is Promise-based, takes Buffer as input. DKV PDF pattern: each vehicle block starts with line containing 'VEHICLE: {plate} CARD NO.:'; transaction rows follow with date + station + km + product + qty + unit; ends with 'TOTAL:'. Multi-page: text is full concatenation across all pages.","source":"web","provider":"websearch","confidence":"LOW","fetched_at":"2026-06-26T12:30:47.125Z","ttl":86400000,"kind":"docs"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"tsdav v2.2.2 is the leading CalDAV/CardDAV client for Node.js/Browser with 88K weekly downloads. TypeScript-native, supports basic auth and OAuth2, works with Google Calendar, iCloud, Nextcloud. Methods: fetchCalendars(), fetchCalendarObjects(). Date range filtering supported.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-23T12:25:14.252Z","ttl":86400000,"kind":"web"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"content":"Gitea Actions: 90% GitHub Actions compatible YAML syntax. Workflows in .gitea/workflows/. act_runner as Docker container with Docker socket mount. Registration via token from admin panel. Secrets in repo settings. Key differences: no timeout-minutes, no continue-on-error, no concurrency groups, no hashFiles. Docker build: use docker/build-push-action or plain docker commands. Deploy via SSH action (appleboy/ssh-action) for docker-compose pull+restart.","source":"web","provider":"websearch","confidence":"MEDIUM","fetched_at":"2026-06-25T07:11:49.578Z","ttl":86400000,"kind":"web"}
|
||||
Reference in New Issue
Block a user