Skip to content

fix(compliance, support): reviewer feedback#1087

Merged
bernd2022 merged 4 commits into
developfrom
fix/compliance-support-feedback
May 12, 2026
Merged

fix(compliance, support): reviewer feedback#1087
bernd2022 merged 4 commits into
developfrom
fix/compliance-support-feedback

Conversation

@bernd2022
Copy link
Copy Markdown
Collaborator

Summary

Ongoing fix branch addressing reviewer feedback for the Compliance and Support tools. New fixes will land as additional commits on this branch.

Replaces #1086 (auto-closed when the branch was renamed).

Current changes

  • Support dashboard issue: UserData ID is now a clickable link for all roles. Compliance/Admin → /compliance/user/:id, others → /support/user/:id. (support-dashboard-issue.screen.tsx)
  • Call queue user info: Added missing Phone Call Accepted row right under Phone Call Status — applies to all call queue overviews. (call-queue-user-info.tsx)
  • Call queue outcome form: Comment is now required. Label marked with *, placeholder updated, Save button stays disabled until a non-empty comment is entered. (call-queue-outcome-form.tsx)
  • Stammdaten AddressChange: Resolve country name via the loaded countries list. The AddressChange step result only stores { id } (see kyc-data.dto.ts), so the new country was always rendered as -. (stammdaten-panel.tsx)
  • Settings context: Expose the full countries list so consumers can resolve country references by id. (settings.context.tsx)

Reviewer feedback items already verified as fixed in develop (no code changes)

Test plan

  • Open a support issue as a SUPPORT user → UserData ID navigates to /support/user/:id
  • Open a support issue as ADMIN/COMPLIANCE → UserData ID still navigates to /compliance/user/:id
  • Open any Call Queue detail → "Phone Call Accepted" appears under "Phone Call Status"
  • Try to save a call outcome with empty comment → Save button is disabled
  • Compliance user with AddressChange step (where the persisted country is { id: N }) → "Land" right column shows the resolved country name
  • Tests (npm test), lint and typecheck remain green

- Support dashboard issue: link UserData ID to /support/user/:id when
  compliance access is not available (mirrors the existing compliance
  link for ADMIN/COMPLIANCE roles).
- Call queue user info: surface the Phone Call Accepted flag next to
  Phone Call Status (was missing from all queue overviews, noticed in
  ManualCheckIpCountryPhone).
- Call queue outcome form: make the comment required so every call
  decision is documented; mark the label with * and disable Save until
  a comment is entered.
- Stammdaten AddressChange comparison: resolve the new country name via
  the loaded countries list; AddressChange step results only persist
  { id } (see kyc-data.dto.ts), so 'Land' was always rendered as '-'.
- Settings context: expose the full countries list so consumers can
  resolve country references by id without re-fetching.
bernd2022 added 2 commits May 11, 2026 12:10
- Compliance review panel: clickable URL values in result table
  (OperationalActivity websiteUrl etc.); left-align check rows so
  wrapped labels do not center under the inherited text-center layout.
- Compliance review panel: resolve {legalEntity} placeholder via the
  LegalEntity KYC step result so the Handelsregister check label shows
  the real legal form (AG / GmbH / ...) instead of "-".
- Lock down compliance decision UI when a step or bank-data entry is in
  InternalReview status: hide accept/reject + save controls, show an
  inline notice. Applies to ComplianceReviewPanel, IdentPanel,
  StammdatenPanel and BankDataReviewPanel.
- Call queue outcome dropdown: remove Reset entry — not a real outcome
  for phone calls. CallOutcome.RESET removed from the enum and the
  now-unreachable RESET branch in saveCallOutcome cleaned up.
- Extract extractLegalEntity() into compliance-helpers and reuse it in
  both header and review panel.
- Ident panel: load birthday from the ident step result (with userData
  fallback). At Ident review time userData.birthday is typically not
  populated yet.
- Pending reviews list: one row per Type/Name with InternalReview and
  ManualReview counts side by side. Only the ManualReview list is
  expandable (InternalReview cases are still being processed by the
  API), columns reordered so InternalReview comes first.
- Pending reviews → user navigation: include the matching tab in the
  URL (?tab=...) so opening from the list lands on the correct tab
  instead of the default.
- Bank data review: filter out type='Ident' entries (created from KYC
  ident results, not relevant for compliance) and surface alternative
  approved bank data with the same IBAN, including two yes/no
  questions to support the decision.
- Bank data lockout: only ManualReview can be accepted/rejected by
  compliance; all other statuses show an inline notice.
- Compliance dashboard: new "Pending Transactions" section listing AML
  pending cases (amlReason=ManualCheck, amlCheck=Pending). Clicking a
  row opens the user's compliance review with the AML Pending tab
  pre-selected.
- Global layout: enable textStart on compliance review, compliance
  user, call queue detail and support dashboard issue screens so wrapped
  labels are left-aligned by default instead of inheriting text-center
  from the layout wrapper.
@bernd2022
Copy link
Copy Markdown
Collaborator Author

API-Seite (BankData alternatives + Pending Transactions endpoint) ist in DFXswiss/api#3689

- Reorder the review tabs to follow the customer onboarding flow.
  AML Pending, BankData Review and Stammdaten are now grouped on the
  left (transaction review / post-onboarding admin), visually separated
  from the KYC onboarding tabs on the right.
- Add tabs for the previously missing steps: Recommendation,
  SoleProprietorshipConfirmation, Statutes and RealUnitRegistration.
- Stronger visual separator (2px blue line, mx-4) between the two tab
  groups so it is obvious the left block is not part of KYC.
- Count badges on AML Pending / BankData Review now use dark blue
  background with white text for proper contrast in light mode.
@bernd2022 bernd2022 marked this pull request as ready for review May 12, 2026 14:07
@bernd2022 bernd2022 requested a review from TaprootFreak as a code owner May 12, 2026 14:07
@bernd2022 bernd2022 merged commit 9b56b15 into develop May 12, 2026
6 checks passed
@bernd2022 bernd2022 deleted the fix/compliance-support-feedback branch May 12, 2026 14:08
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.

2 participants