Skip to content

✨ app: add kyc review and failure states - #1291

Open
franm91 wants to merge 1 commit into
mainfrom
kyc
Open

✨ app: add kyc review and failure states#1291
franm91 wants to merge 1 commit into
mainfrom
kyc

Conversation

@franm91

@franm91 franm91 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added clearer identity-verification states, including pending review and failed verification.
    • Updated onboarding with ordered steps, status labels, descriptions, and relevant actions.
    • Added document-review messaging and customizable informational-alert icons.
  • Bug Fixes
    • Improved routing when verification is under review, blocked, or unsuccessful.
    • Verification flows now refresh status and complete navigation more reliably.
  • Localization
    • Added Spanish and Portuguese translations for new onboarding and verification messages.

@changeset-bot

changeset-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a0ef4e9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@exactly/mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The mobile app centralizes KYC status handling through useKYC, adds review and failure states to onboarding, routes blocked verification results to getting started, and adds related alerts, translations, and Maestro validation.

Changes

KYC review and failure flow

Layer / File(s) Summary
KYC status normalization and mutation results
src/utils/server.ts, src/utils/useKYC.ts, src/utils/persona.ts
KYC responses expose recognized status codes through shared fallback handling. useKYC maps them to structured states. Mutations return a blocked result when required.
Onboarding status model and screens
src/utils/useOnboardingSteps.ts, src/components/getting-started/*, src/components/home/GettingStarted.tsx, src/components/home/Home.tsx
Onboarding steps use pending, review, failed, and completed statuses. Screens render dynamic content, tags, icons, actions, and current-step routing.
Funding, card, swaps, and alerts
src/components/add-funds/AddFunds.tsx, src/components/card/Card.tsx, src/components/send-funds/SendFunds.tsx, src/components/swaps/Swaps.tsx, src/components/shared/*
Funding and verification flows use shared KYC flags. Review and blocked states route to getting started. Card and alert rendering accounts for KYC review.
Translations, release metadata, and validation
src/i18n/es.json, src/i18n/es-AR.json, src/i18n/pt.json, .changeset/six-peas-beg.md, .maestro/*
Spanish and Portuguese locales add KYC status and document-review strings. The mobile package receives a patch changeset. The local Maestro flow checks onboarding, card activation, and Swaps states.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Merge Risk: 🟡 Moderate · up to a0ef4

This change adds KYC review and failure experiences, but users may still be routed to inappropriate onboarding actions after verification, and the new states are not reliably covered by the local flow. Resolve the outstanding routing and validation issues before merging.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant AddFunds
  participant useKYC
  participant getKYCStatus
  participant startKYC
  participant GettingStarted
  User->>AddFunds: Start bank transfer
  AddFunds->>useKYC: Read KYC state
  useKYC->>getKYCStatus: Fetch status
  getKYCStatus-->>useKYC: Return status code
  AddFunds->>startKYC: Begin verification when required
  startKYC-->>AddFunds: Return complete or blocked
  AddFunds->>GettingStarted: Redirect for review or blocked state
Loading
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding KYC review and failure states across the app.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kyc
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch kyc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4bcac7d71b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .changeset/six-peas-beg.md Outdated
Comment thread src/utils/useKYC.ts Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/utils/persona.ts (1)

281-281: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Classify the post-inquiry status before returning complete.

When the refetch returns "processing" or "bad kyc", this returns "complete". src/components/add-funds/AddFunds.tsx routes that non-approved complete result to home instead of getting started. Apply the same blocked classification used before startKYC() to kyc.

Proposed fix
       const kyc = await queryClient.fetchQuery<KYCStatus>({ queryKey: ["kyc", "status"], staleTime: 0 });
+      const code = "code" in kyc ? kyc.code : undefined;
+      if (code !== "ok" && code !== "legacy kyc" && code !== "not started" && code !== "no kyc") {
+        return { status: "blocked", kyc };
+      }
       return { status: "complete", kyc };

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 1ceb862d-9310-47bd-92fd-8108dfc227d4

📥 Commits

Reviewing files that changed from the base of the PR and between f4fc241 and 4bcac7d.

📒 Files selected for processing (18)
  • .changeset/six-peas-beg.md
  • src/components/add-funds/AddFunds.tsx
  • src/components/card/Card.tsx
  • src/components/getting-started/GettingStarted.tsx
  • src/components/getting-started/Step.tsx
  • src/components/home/GettingStarted.tsx
  • src/components/home/Home.tsx
  • src/components/send-funds/SendFunds.tsx
  • src/components/shared/FundingAlert.tsx
  • src/components/shared/InfoAlert.tsx
  • src/components/swaps/Swaps.tsx
  • src/i18n/es-AR.json
  • src/i18n/es.json
  • src/i18n/pt.json
  • src/utils/persona.ts
  • src/utils/server.ts
  • src/utils/useKYC.ts
  • src/utils/useOnboardingSteps.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread src/components/swaps/Swaps.tsx
Comment thread src/utils/useOnboardingSteps.ts Outdated
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.65414% with 51 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.87%. Comparing base (7acdfff) to head (a0ef4e9).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/components/getting-started/GettingStarted.tsx 52.94% 16 Missing ⚠️
src/components/card/Card.tsx 53.57% 13 Missing ⚠️
src/components/send-funds/SendFunds.tsx 14.28% 6 Missing ⚠️
src/components/home/GettingStarted.tsx 50.00% 4 Missing ⚠️
src/utils/persona.ts 0.00% 4 Missing ⚠️
src/components/getting-started/Step.tsx 57.14% 3 Missing ⚠️
src/components/swaps/Swaps.tsx 62.50% 3 Missing ⚠️
src/utils/useKYC.ts 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1291      +/-   ##
==========================================
+ Coverage   73.40%   74.87%   +1.46%     
==========================================
  Files         276      279       +3     
  Lines       13463    13554      +91     
  Branches     4711     4759      +48     
==========================================
+ Hits         9883    10149     +266     
+ Misses       3241     3066     -175     
  Partials      339      339              
Flag Coverage Δ
e2e 74.87% <61.65%> (+1.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/utils/persona.ts (1)

274-281: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Classify the post-inquiry KYC status before returning success. After startKYC() resolves, the mutation fetches the status but always returns status: "complete". When the API returns processing or bad kyc, GettingStarted.tsx and Swaps.tsx route the user home instead of to blocked onboarding. Return blocked unless the fetched code is ok or legacy kyc.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 5be8df4f-194e-4a8b-9579-7da075bbcca4

📥 Commits

Reviewing files that changed from the base of the PR and between 4bcac7d and c6d8ec3.

📒 Files selected for processing (10)
  • .changeset/six-peas-beg.md
  • src/components/card/Card.tsx
  • src/components/getting-started/GettingStarted.tsx
  • src/components/home/GettingStarted.tsx
  • src/components/swaps/Swaps.tsx
  • src/i18n/es.json
  • src/i18n/pt.json
  • src/utils/server.ts
  • src/utils/useKYC.ts
  • src/utils/useOnboardingSteps.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread src/components/getting-started/GettingStarted.tsx
Comment thread src/utils/useKYC.ts Outdated
Comment thread src/utils/useKYC.ts
@franm91 franm91 changed the title ✨ app: kyc review and failure states ✨ app: add kyc review and failure states Sep 4, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 9b5fea01-0d4f-4d71-8997-1655394bc61e

📥 Commits

Reviewing files that changed from the base of the PR and between c6d8ec3 and 003b5d6.

📒 Files selected for processing (2)
  • src/components/getting-started/GettingStarted.tsx
  • src/utils/useKYC.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread src/components/getting-started/GettingStarted.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0ef4e95e0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1,16 @@
appId: ${APP_ID ?? "app.exactly"}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Rename the flow using kebab-case

The new assertOnboarding.yaml filename uses camelCase, although the repository’s YAML rules require lowercase kebab-case filenames. Rename it to assert-onboarding.yaml and update the reference in flows/local.yaml so the new flow follows the enforced convention. .agents/rules/yaml.mdL16-L19

Useful? React with 👍 / 👎.

Comment thread src/utils/useKYC.ts
const { data, error, isFetched, isFetching, refetch } = useQuery<KYCStatus>({ queryKey: ["kyc", "status"], enabled });
const code = data && "code" in data ? data.code : undefined;
const approved = code === "ok" || code === "legacy kyc";
const status: KYCState = approved

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Inline the one-use KYC state expression

The newly extracted status value is consumed only once, as the status property of the returned object. Inline this conditional at that property instead of adding a single-use binding, as required by the repository’s extraction convention.

AGENTS.md reference: AGENTS.md:L115-L115

Useful? React with 👍 / 👎.


export default function useOnboardingSteps({ hasKYC, isDeployed }: { hasKYC: boolean; isDeployed: boolean }) {
export default function useOnboardingSteps({ kyc, isDeployed }: { isDeployed: boolean; kyc: KYCState }) {
return useMemo(() => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Return the one-use steps array directly

The steps array introduced here is referenced only once by the final spread-and-sort expression. Inline the array at that return site rather than retaining a single-use intermediate binding, in accordance with the repository’s explicit extraction rule.

AGENTS.md reference: AGENTS.md:L115-L115

Useful? React with 👍 / 👎.

const { t } = useTranslation();
const toast = useToastController();
const { currentStep, completedSteps } = useOnboardingSteps({ hasKYC, isDeployed });
const steps = useOnboardingSteps({ kyc, isDeployed });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Derive the active step without an intermediate array

The steps binding is used only once to call find, so this new extraction adds an unnecessary layer of indirection. Inline useOnboardingSteps({ kyc, isDeployed }).find(...) into the step initializer to follow the repository’s single-use rule.

AGENTS.md reference: AGENTS.md:L115-L115

Useful? React with 👍 / 👎.

Comment thread src/utils/useKYC.ts
};
}

export type KYCState = "approved" | "failed" | "pending" | "review";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace the meaningless state suffix

The new KYCState type uses State, which the repository’s naming guidance explicitly identifies as a meaningless suffix. Rename this type to a precise description of the represented KYC classification and update its consumers so the new abstraction does not establish a prohibited naming pattern.

AGENTS.md reference: AGENTS.md:L43-L45

Useful? React with 👍 / 👎.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f523bf97-214c-44f0-b294-d0848db56fd8

📥 Commits

Reviewing files that changed from the base of the PR and between 5c86ad5 and a0ef4e9.

📒 Files selected for processing (2)
  • .maestro/flows/local.yaml
  • .maestro/subflows/assertOnboarding.yaml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread .maestro/flows/local.yaml
- runFlow:
file: ../subflows/mint.yaml
env: { asset: ETH, to: "${output.account}", amount: "0.1" }
- runFlow: ../subflows/assertOnboarding.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🤖 get_repo_knowledge executed:

get_repo_knowledge exactly/exa /tmp/coderabbit-repo-knowledge/exactly-exa-f26ca19b/learnings

Length of output: 25379


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- .maestro/flows/local.yaml ---'
cat -n .maestro/flows/local.yaml
printf '%s\n' '--- candidate subflows and references ---'
find .maestro -type f -name '*.yaml' -print | sort
printf '%s\n' '--- referenced flow definitions ---'
for f in .maestro/subflows/assertOnboarding.yaml .maestro/subflows/verifyIdentity.yaml .maestro/subflows/getAccount.yaml; do
  if [ -f "$f" ]; then
    echo "### $f"
    cat -n "$f"
  else
    echo "MISSING $f"
  fi
done
printf '%s\n' '--- references to account and KYC setup ---'
rg -n -i --glob '*.yaml' 'getAccount|verifyIdentity|assertOnboarding|kyc|unverified|approved|review|failed|reset|mock|awaiting-activation|View all steps' .maestro

Repository: exactly/exa

Length of output: 8589


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- .maestro/flows/local.yaml ---'
cat -n .maestro/flows/local.yaml
printf '%s\n' '--- direct subflow definitions ---'
for f in .maestro/subflows/assertOnboarding.yaml .maestro/subflows/verifyIdentity.yaml .maestro/subflows/getAccount.yaml; do
  if [ -f "$f" ]; then
    echo "### $f"
    cat -n "$f"
  else
    echo "MISSING $f"
  fi
done
printf '%s\n' '--- related Maestro references ---'
rg -n -i --glob '*.yaml' 'getAccount|verifyIdentity|assertOnboarding|kyc|unverified|approved|review|failed|reset|mock|awaiting-activation|View all steps' .maestro

Repository: exactly/exa

Length of output: 7678


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- account/KYC helper files ---'
git ls-files | rg '(^|/)(getAccount|approveKYC)\.(js|ts)$|(^|/)dist/|maestro'
printf '%s\n' '--- helper definitions and configuration ---'
for f in .maestro/dist/getAccount.js .maestro/dist/approveKYC.js .maestro/config.yaml; do
  if [ -f "$f" ]; then
    echo "### $f"
    cat -n "$f"
  fi
done
printf '%s\n' '--- all matching helper paths ---'
find . -type f \( -name 'getAccount.js' -o -name 'approveKYC.js' -o -name 'getAccount.ts' -o -name 'approveKYC.ts' \) -print

Repository: exactly/exa

Length of output: 1628


🏁 Script executed:

#!/bin/bash
set -eu
for f in .maestro/src/script/getAccount.ts .maestro/src/script/approveKYC.ts .maestro/src/server.ts .maestro/src/anvil.ts; do
  echo "### $f"
  cat -n "$f"
done
printf '%s\n' '--- helper imports and account/KYC endpoints ---'
rg -n -i 'getAccount|approveKYC|credential|kyc|panda|manteca|account' .maestro/src .maestro/package.json

Repository: exactly/exa

Length of output: 14589


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- local Maestro invocation and environment setup ---'
rg -n -i --glob '!node_modules/**' --glob '!dist/**' 'flows/local|E2E_MNEMONIC|maestro|clearState|anvil|reset.*(db|database|kyc)|persona' package.json pnpm-workspace.yaml .github .maestro README.md docs 2>/dev/null || true
printf '%s\n' '--- files containing local flow setup ---'
git ls-files | rg -i '(^|/)(readme|docker-compose|compose|package\.json|makefile|justfile|.*maestro.*|.*e2e.*|.*test.*)\.(md|yaml|yml|json|ts|js|sh)$' | head -200

Repository: exactly/exa

Length of output: 12899


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- README local E2E instructions ---'
sed -n '20,45p' README.md
printf '%s\n' '--- CI setup around E2E ---'
sed -n '55,115p' .github/workflows/test.yaml
printf '%s\n' '--- E2E server setup references ---'
rg -n -i 'reset|seed|database|docker|persona|kyc|mnemonic|e2e' server/script/e2e.ts server/test/e2e.ts server/test/docker-compose.yaml src/utils/e2e.ts

Repository: exactly/exa

Length of output: 5741


Establish the remote KYC precondition before this assertion flow.

getAccount.ts derives a deterministic account and does not reset KYC. getAccount.yaml only populates missing output values. Since assertOnboarding.yaml runs before verifyIdentity.yaml, a persisted KYC state can make the assertion fail. Reset/mock KYC or select a known unverified account before invoking assertOnboarding.yaml.

---
- tapOn: View all steps
- assertVisible: Remaining steps
- assertVisible: Verify your identity

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🔵 Trivial | 🏗️ Heavy lift

🔎 Supported by static analysis

🤖 get_repo_knowledge executed:

get_repo_knowledge exactly/exa /tmp/coderabbit-repo-knowledge/exactly-exa-f26ca19b/learnings /tmp/coderabbit-repo-knowledge/exactly-exa-f26ca19b/conventions

Length of output: 38773


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- target file ---'
cat -n .maestro/subflows/assertOnboarding.yaml
printf '%s\n' '--- related Maestro files ---'
find .maestro -maxdepth 3 -type f -print | sort
printf '%s\n' '--- identity/KYC references ---'
rg -n -i --glob '*.yaml' --glob '*.yml' 'verify your identity|identity|kyc|review|failed|failure' .maestro

Repository: exactly/exa

Length of output: 2768


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- verify identity subflow ---'
cat -n .maestro/subflows/verifyIdentity.yaml
printf '%s\n' '--- local flow ---'
cat -n .maestro/flows/local.yaml
printf '%s\n' '--- production flow ---'
cat -n .maestro/flows/production.yaml
printf '%s\n' '--- web flow ---'
cat -n .maestro/flows/web.yaml
printf '%s\n' '--- relevant source labels and state names ---'
rg -n -i 'verify your identity|identity verification|kyc|under review|review|failed|rejected|declined' src server .maestro --glob '*.{ts,tsx,yaml,yml,json}'

Repository: exactly/exa

Length of output: 50368


🏁 Script executed:

#!/bin/bash
set -eu
cat -n .maestro/subflows/verifyIdentity.yaml
cat -n .maestro/flows/local.yaml
cat -n .maestro/flows/production.yaml
cat -n .maestro/flows/web.yaml
rg -n -i 'verify your identity|identity verification|kyc|under review|review|failed|rejected|declined' src server .maestro --glob '*.{ts,tsx,yaml,yml,json}'

Repository: exactly/exa

Length of output: 50368


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- onboarding state mapping ---'
cat -n src/utils/useOnboardingSteps.ts
printf '%s\n' '--- onboarding rendering ---'
sed -n '1,190p' src/components/getting-started/GettingStarted.tsx
printf '%s\n' '--- KYC state mapping ---'
cat -n src/utils/useKYC.ts
printf '%s\n' '--- KYC approval helper ---'
cat -n .maestro/src/script/approveKYC.ts
printf '%s\n' '--- swap review/failure rendering ---'
sed -n '460,580p' src/components/swaps/Swaps.tsx
printf '%s\n' '--- changed-file summary ---'
git diff --stat

Repository: exactly/exa

Length of output: 14497


Cover the review and failed KYC states.

assertOnboarding.yaml checks only the pending Verify your identity state. Add deterministic setup and assertions for IN REVIEW and VERIFICATION FAILED, including their messages and actions. The local flow currently invokes only the approved-state helper, approveKYC.js.

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