Skip to content

Confirm processStatus classification for KYC dfxApproval step (InProgress vs PendingReview) #3793

@joshuakrueger-dfx

Description

@joshuakrueger-dfx

Context

In the app (DFXswiss/realunit-app), an in-progress dfxApproval KYC step was rendering a blank white screen. PR #618 (realunit-app#618) is the defensive client-side fix — it renders the existing pending page instead of the silent Scaffold() fallback, and hardens the KycStep switch to be exhaustive.

That fix is correct at the render layer, but it surfaced an API-side classification question worth confirming here.

Question

After Wave 2.2 routing (realunit-app PR #494), the app derives its KYC view purely from processStatus:

  • PendingReviewKycPending(stepUnderReview) — already covers InternalReview / ManualReview / etc. per KycInfoMapper.computeProcessStatus
  • InProgressKycSuccess(currentStep) — intended for user-actionable steps

dfxApproval is currently reaching the client as KycSuccess(currentStep: dfxApproval), i.e. classified as InProgress.

If dfxApproval is a backend-side wait with no user action required, it semantically belongs under PendingReview (→ KycPending), not InProgress. In that case the client would route it correctly without relying on the defensive fallback.

Ask

Please confirm whether the processStatus mapping for dfxApproval is intentional:

  1. If dfxApproval requires user action → keeping it InProgress is correct; the app fix stands as-is.
  2. If dfxApproval is a backend wait → consider mapping it to PendingReview so it routes through the existing pending/under-review path by status, consistent with the other review states.

No app change is blocked on this — realunit-app#618 already prevents the blank screen for users on develop. This is purely to confirm the source-of-truth classification.

Filed as a follow-up to a review on realunit-app#618.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions