Skip to content

feat(core): add phoneCallTimes to CallQueueItem - #180

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

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

Conversation

@Blume1977

@Blume1977 Blume1977 commented Jun 18, 2026

Copy link
Copy Markdown

EN:
Add phoneCallTimes?: string to the CallQueueItem interface of @dfx.swiss/core. The API delivers the field with DFXswiss/backend#5542; this PR only aligns the shared type so the compliance call queue in DFXswiss/app#1449 can show the customer's preferred phone-call times in the list.

DE:
Ergänzt das CallQueueItem-Interface in @dfx.swiss/core um phoneCallTimes?: string. Die API liefert das Feld mit DFXswiss/backend#5542; hier wird nur der gemeinsame Typ nachgezogen, damit die Compliance-Call-Queue in DFXswiss/app#1449 die bevorzugte Anrufzeit des Kunden in der Liste zeigen kann.

Details

Type-only change, no runtime code. Merging to develop triggers lerna version --conventional-prerelease and a beta publish via CI; the Conventional Commit feat(core): … yields the correct beta bump, so no manual version change in this PR.

Rollout order: DFXswiss/backend#5542 (independently deployable) → this publish → DFXswiss/app#1449 (bumps @dfx.swiss/react and adds the column; until then the app carries a declared local type bridge).

@Blume1977
Blume1977 force-pushed the feat/core-call-queue-phone-times branch from 798b9bf to 964ca70 Compare August 3, 2026 13:52
Blume1977 added a commit to Blume1977/services that referenced this pull request Sep 14, 2026
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 "Phone Call Times" column is shown as the last column before Date, only
in the ManualCheckPhone and ManualCheckIpCountryPhone queues (deliberate
decision; the other phone queues keep the value in the detail view). The value
is the raw, semicolon-separated time slots the customer selected; an empty
value shows "-". The neighbouring column labels of the queue list get their
missing de/fr/it translations.

The value is delivered by the API on CallQueueItem (DFXswiss/backend#3924).
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 is removed once core publishes the field.

Tests: a unit test brings compliance-call-queue.screen.tsx to full coverage
(column visibility per queue, dash for empty values, cell rendering, empty
state, error and loading paths, row navigation). The full-stack compliance
cases assert the column in the phone queue and its absence in the IP queue;
the factory can seed user_data.phoneCallTimes. A visual spec and its handbook
metadata are added; the darwin baselines and the reality declarations for the
synthetic queue response and the seeded value are declared in the pull request.
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