feat(i18n): add internationalization support with English and Spanish translations
feat(kiosk): implement kiosk report submission functionality with offline support test(outbox): add tests for outbox functionality including report submission and error handling feat(outbox): create outbox management for queued reports with IndexedDB persistence feat(uuid): add UUID generation utility for client IDs feat(qr): implement QR code generation for reporting links by site and area feat(kiosk): create Kiosk page for reporting incidents without an account
This commit is contained in:
1 parent
3f6dff5f24
commit
3e964d1176
64 files changed
+10056
-267
No files matched your search
@@ -73,6 +73,28 @@ export interface Incident {
|
||||
immediateAction: string | null
|
||||
anonymous: boolean
|
||||
reporter: UserRef | null
|
||||
/** Name given by someone reporting without an account. */
|
||||
reporterName: string | null
|
||||
/** How the report arrived; `kiosk` covers kiosk tablets and QR codes on reporting links. */
|
||||
channel: 'web' | 'kiosk'
|
||||
kiosk: { id: string; name: string } | null
|
||||
}
|
||||
|
||||
export interface Kiosk {
|
||||
id: string
|
||||
name: string
|
||||
token: string
|
||||
site: { id: string; name: string } | null
|
||||
lastUsedAt: string | null
|
||||
revokedAt: string | null
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
/** What a reporting link may see: just enough to fill in the report form. */
|
||||
export interface KioskConfig {
|
||||
organization: { name: string }
|
||||
kiosk: { name: string }
|
||||
sites: Site[]
|
||||
}
|
||||
|
||||
export interface Investigation {
|
||||
|
||||
Reference in new issue
Block a user