Skip to content

✨ app: scan pix qr codes - #1250

Open
franm91 wants to merge 1 commit into
mainfrom
qr-pix
Open

✨ app: scan pix qr codes#1250
franm91 wants to merge 1 commit into
mainfrom
qr-pix

Conversation

@franm91

@franm91 franm91 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added QR code scanning for sending funds to Brazilian recipients and supported asset addresses.
    • Supports PIX keys and BR Codes with automatic form filling, amount transfer, and contact creation.
    • Added validation and handling for invalid, unsupported, and one-time payment codes.
    • Added camera permission guidance, camera switching, scanner controls, and secure code visibility options.
  • Improvements
    • BRL transfers now show instant delivery when applicable.
    • Added Portuguese and Spanish translations for Brazilian payment and scanning flows.

@changeset-bot

changeset-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4983ca2

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 Aug 21, 2026

Copy link
Copy Markdown

Review 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5a786246-02d8-4839-97ae-10d0dc5609bf

📥 Commits

Reviewing files that changed from the base of the PR and between 27f1675 and cc7f52a.

📒 Files selected for processing (1)
  • cspell.json

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


Walkthrough

Adds Brazilian Pix and BR Code parsing, shared QR scanning, BRL recipient autofill, scanned amount propagation, validation, localized text, and a patch changeset.

Changes

Pix QR recipient flow

Layer / File(s) Summary
Pix parsing and validation
src/utils/pix.ts
Adds BR Code parsing, Pix key detection, and CPF/CNPJ validation schemas.
Shared QR scanner
src/components/send-funds/Scanner.tsx, src/components/send-funds/QR.tsx
Adds camera permission handling, QR scanning, camera switching, duplicate suppression, and scan navigation.
Brazilian recipient entry
src/components/send-funds/Recipients.tsx, src/components/send-funds/NewRecipient.tsx
Adds BRL QR entry, recipient autofill, BR Code normalization, Pix key hints, dynamic-code warnings, and masked BR Code input.
Scanned amount and localized text
src/components/send-funds/SendAmount.tsx, src/i18n/*.json, .changeset/silver-falcons-stick.md, cspell.json
Propagates scanned amounts, updates BRL delivery timing, adds Pix and QR translations, and records a patch release.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: 🟡 Moderate · up to cc7f5

The Pix scanning flow can carry amount, reference, and recipient details from one QR code after the recipient key changes, while valid scanned data cannot be corrected in place. This can create a misleading payment review and requires fixing or explicit owner acceptance before merge.

Sequence Diagram(s)

sequenceDiagram
  participant RecipientList
  participant NewRecipient
  participant Scanner
  participant PixParser
  participant SendAmount
  RecipientList->>NewRecipient: Open BRL flow with scan parameter
  NewRecipient->>Scanner: Start QR scanner
  Scanner-->>NewRecipient: Return scanned payload
  NewRecipient->>PixParser: Parse BR Code
  PixParser-->>NewRecipient: Return normalized recipient and amount
  NewRecipient->>SendAmount: Navigate with scanned amount
Loading

Suggested reviewers: cruzdanilo, dieguezguille

🚥 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 PIX QR code scanning to 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 qr-pix
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch qr-pix

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: 9579ce9e1a

ℹ️ 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 src/components/send-funds/NewRecipient.tsx Outdated
Comment thread src/components/send-funds/NewRecipient.tsx 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: 11


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1f19604b-a6dd-4cf8-9058-585a4c6ab24c

📥 Commits

Reviewing files that changed from the base of the PR and between 736c81b and 9579ce9.

📒 Files selected for processing (11)
  • .changeset/silver-falcons-stick.md
  • cspell.json
  • src/components/send-funds/NewRecipient.tsx
  • src/components/send-funds/QR.tsx
  • src/components/send-funds/Recipients.tsx
  • src/components/send-funds/Scanner.tsx
  • src/components/send-funds/SendAmount.tsx
  • src/i18n/es-AR.json
  • src/i18n/es.json
  • src/i18n/pt.json
  • src/utils/pix.ts

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

Comment thread cspell.json
Comment thread src/components/send-funds/NewRecipient.tsx Outdated
Comment thread src/components/send-funds/NewRecipient.tsx Outdated
Comment thread src/components/send-funds/NewRecipient.tsx Outdated
Comment thread src/components/send-funds/NewRecipient.tsx Outdated
Comment thread src/components/send-funds/Scanner.tsx Outdated
Comment thread src/components/send-funds/Scanner.tsx Outdated
Comment thread src/components/send-funds/Scanner.tsx
Comment thread src/utils/pix.ts
Comment thread src/utils/pix.ts Outdated
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.05%. Comparing base (8337797) to head (4983ca2).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1250      +/-   ##
==========================================
+ Coverage   72.51%   73.05%   +0.53%     
==========================================
  Files         275      276       +1     
  Lines       13256    13259       +3     
  Branches     4607     4613       +6     
==========================================
+ Hits         9613     9686      +73     
+ Misses       3306     3236      -70     
  Partials      337      337              
Flag Coverage Δ
e2e 73.04% <ø> (+0.53%) ⬆️

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.

@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: c62cc0ae5c

ℹ️ 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 src/components/send-funds/NewRecipient.tsx
Comment thread src/utils/pix.ts

@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: Pro Plus

Run ID: 83f77e64-7904-4630-91d1-196885b4684d

📥 Commits

Reviewing files that changed from the base of the PR and between 9579ce9 and 0b7dd62.

📒 Files selected for processing (5)
  • src/components/send-funds/NewRecipient.tsx
  • src/components/send-funds/Scanner.tsx
  • src/i18n/es.json
  • src/i18n/pt.json
  • src/utils/pix.ts

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

Comment thread src/components/send-funds/NewRecipient.tsx
Comment thread src/i18n/es.json Outdated
@franm91
franm91 force-pushed the qr-pix branch 2 times, most recently from b99ca6c to bc776c2 Compare August 24, 2026 14:25

@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: Pro Plus

Run ID: 4b3101b0-7f79-4c8f-92ad-f70c6534c4f5

📥 Commits

Reviewing files that changed from the base of the PR and between 0b7dd62 and bc776c2.

📒 Files selected for processing (4)
  • src/components/send-funds/NewRecipient.tsx
  • src/i18n/es.json
  • src/i18n/pt.json
  • src/utils/pix.ts

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

Comment thread src/components/send-funds/NewRecipient.tsx
Comment thread src/components/send-funds/NewRecipient.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: cc7f52ae26

ℹ️ 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 src/components/send-funds/NewRecipient.tsx
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