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:
PendingReview → KycPending(stepUnderReview) — already covers InternalReview / ManualReview / etc. per KycInfoMapper.computeProcessStatus
InProgress → KycSuccess(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:
- If
dfxApproval requires user action → keeping it InProgress is correct; the app fix stands as-is.
- 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.
Context
In the app (
DFXswiss/realunit-app), an in-progressdfxApprovalKYC 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 silentScaffold()fallback, and hardens theKycStepswitch 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:PendingReview→KycPending(stepUnderReview)— already coversInternalReview/ManualReview/ etc. perKycInfoMapper.computeProcessStatusInProgress→KycSuccess(currentStep)— intended for user-actionable stepsdfxApprovalis currently reaching the client asKycSuccess(currentStep: dfxApproval), i.e. classified asInProgress.If
dfxApprovalis a backend-side wait with no user action required, it semantically belongs underPendingReview(→KycPending), notInProgress. In that case the client would route it correctly without relying on the defensive fallback.Ask
Please confirm whether the
processStatusmapping fordfxApprovalis intentional:dfxApprovalrequires user action → keeping itInProgressis correct; the app fix stands as-is.dfxApprovalis a backend wait → consider mapping it toPendingReviewso 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.