Support & Diagnostics Pipeline
The support pipeline is intentionally lightweight but diagnostic-rich. A report carries the user's words, the exact app version/device, the account/vehicle context, recent scans, and the last recorded user actions. It never carries passwords, payment secrets, or unconsented diagnostics.
App flow
- User opens Settings > Support (or the website support page).
- Chooses a category and writes the issue (10-4000 characters).
- Reviews the diagnostic bundle: app/build, platform, theme, account/plan, active vehicle, recent scans, and up to 45 recent actions.
- Can disable account details and can share the bundle instead of submitting.
- Explicitly consents before submission. The API receives
consent: trueonly after the checkbox is accepted.
App entry points:
lib/ui/screens/support/support_screen.dartlib/services/support_service.dartlib/services/support_event_log.dartassets/config/support_config.json
The event log is bounded (80 entries) and sanitized before persistence. Global Flutter/async errors are captured into the same log. Sensitive key names (password, token, secret, authorization, otp, card, cvv, pin, key) and common value patterns are redacted on the device. The server applies redaction again as defence in depth.
API
Public submission:
POST /v1/support/tickets
Content-Type: application/json
{
"category": "scan_issue",
"description": "...",
"consent": true,
"source": "android_app",
"diagnostics": {"schema": "fabrika_support_v1", "...": "..."}
}
Admin endpoints use X-Support-Token (FABRIKA_SUPPORT_TOKEN):
GET /v1/admin/support/tickets?status=&category=&q=GET /v1/admin/support/tickets/{id-or-reference}POST /v1/admin/support/tickets/{id}/replywithmessageandstatusGET /v1/admin/support.csvGET /supportsupport console
Statuses: open, in_progress, waiting_user, resolved, closed. A reply is stored and emailed to the ticket email when SMTP is configured. The audit fields are visible in the console.
Privacy rules
- Do not request or accept passwords, OTPs, card data, API keys, or session tokens.
- Account details are optional and shown to the user before submission.
- VIN is masked to the last four characters in diagnostics.
- Diagnostic bundles are for support triage, not automatic model training.
- The support service is pilot-grade and needs HTTPS, real IAM, backups, and retention policy before public scale.
Configuration
fabrika_ai_app/assets/config/support_config.json:
{
"enabled": true,
"baseUrl": "http://127.0.0.1:8800",
"supportEmail": "support@fabrika.ai",
"privacyVersion": "2026-11"
}
landing/assets/portal-config.js controls the website's portal/support API base. Replace localhost with the deployed HTTPS origin and rebuild the app when changing the app asset. If the server is unavailable, the app/website offers a copy/share fallback.