Skip to content

feat(compliance): show preferred phone-call time in the call queue - #1449

Draft
Blume1977 wants to merge 1 commit into
DFXswiss:developfrom
Blume1977:feat/call-queue-phone-times
Draft

feat(compliance): show preferred phone-call time in the call queue#1449
Blume1977 wants to merge 1 commit into
DFXswiss:developfrom
Blume1977:feat/call-queue-phone-times

Conversation

@Blume1977

Copy link
Copy Markdown
Contributor

Was

Neue Spalte «Anrufzeiten» am Ende der Call-Queue-Übersicht, nur in den zwei Telefon-Queues ManualCheckPhone und ManualCheckIpCountryPhone (die IP-Liste ManualCheckIpPhone bewusst ohne Spalte, so entschieden). Zeigt die vom Kunden gewählte bevorzugte Anrufzeit als Rohwert (semikolon-getrennte Slots, z.B. H9To10;H10To11); Leerwert → -.

Warum

Die Anrufzeit war bisher nur in der Detailansicht sichtbar. Beim Abtelefonieren einer Telefon-Queue musste Compliance jeden Eintrag einzeln öffnen. Die Spalte in der Übersicht spart diesen Schritt.

Wie

  • compliance-call-queue.screen.tsx: showPhoneCallTimes-Flag (zwei Queues), Header- und Zellen-Spalte, columnCount angepasst; gleiches Muster wie die bestehenden Spalten showIp/showCountry/showStatus.
  • i18n Phone Call Times in DE/FR/IT (Anrufzeiten / Heures d'appel / Orari di chiamata).
  • Der Wert kommt vom API-Feld CallQueueItem.phoneCallTimes. Bis @dfx.swiss/core das Feld trägt (feat(core): add phoneCallTimes to CallQueueItem packages#180), stellt eine kleine, klar dokumentierte Typ-Brücke in typings/ das Feld type-sicher bereit (idiomatisch wie typings/bitbox-webhid.d.ts). Die Brücke kann entfernt werden, sobald core das Feld published.

Abhängigkeit für echte Werte

Die Spalte rendert eigenständig (leer → -). Echte Werte erscheinen, sobald der API-Teil (DFXswiss/backend#3924, füllt phoneCallTimes im CallQueueItem-DTO) live ist. Reihenfolge unkritisch, da das Feld optional ist.

Tests

The customer's preferred phone-call time was only visible in the call-queue
detail view. Compliance staff calling through a phone queue could not see it in
the overview and had to open each entry.

A new "Anrufzeiten" column is shown at the end of the call-queue list, only in
the two queues where a call is scheduled from the customer's own phone details:
ManualCheckPhone and ManualCheckIpCountryPhone. The value is the raw,
semicolon-separated time slots the customer selected; an empty value shows "-".

The value is delivered by the API on CallQueueItem. Until @dfx.swiss/core carries
the field (DFXswiss/packages#180), a small typings bridge exposes phoneCallTimes
on CallQueueItem so the screen reads it type-safely; the bridge can be removed
once core publishes the field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant