Skip to content

chore: sync dev with main#1876

Merged
18 commits merged into
devfrom
main
Apr 14, 2026
Merged

chore: sync dev with main#1876
18 commits merged into
devfrom
main

Conversation

@chip-peanut-bot

Copy link
Copy Markdown
Contributor

Branch Sync

main is 5 commits ahead of dev.

Commits to sync:

• fix: thread crossRegion flag for explicit cross-region KYC requests
• fix: only send crossRegion flag when true, omit for same-region
• feat: add REVERIFYING to approved statuses and SumsubKycStatus type
• fix: address review — REVERIFYING exclusion in status effect + token-less handling
• Merge pull request #1874 from peanutprotocol/fix/rail-enrollment-timing


Auto-generated by Chip 🐿️

kushagrasarathe and others added 8 commits April 6, 2026 21:04
pairs with backend fix that moves rail enrollment to webhook time.
cross-region moveToLevel now requires explicit crossRegion=true flag.
only set when user clicks "Verify now" on a different region —
automatic calls (fetchCurrentStatus, polling) never set it.
REVERIFYING is treated as approved for all access checks — user
retains existing provider access while re-verifying for a new region.
added to APPROVED_STATUSES set (single source of truth) so all
downstream readers (useKycStatus, useQrKycGate, useIdentityVerification,
KycStatusItem, etc.) automatically handle it correctly.
…less handling

1. add REVERIFYING to exclusion list in status-transition effect so it
   doesn't close the progress modal if received via websocket during
   SDK completion

2. handle REVERIFYING + no token same as APPROVED — call onKycSuccess
   instead of showing misleading "Could not initiate verification" error
fix: thread crossRegion flag for cross-region KYC
The 4 reward/surprise PostHog events (surprise_moment_shown,
reward_claim_shown, reward_claimed, reward_claim_dismissed) were
instrumented on PerkClaimModal but that component only renders for
"Card Pioneer" perks. The actual surprise moment perks (Rewards v2 -
Surprise 35c/65c) are claimed inline on the QR payment success screen,
which had zero PostHog instrumentation.

Added:
- REWARD_CLAIM_SHOWN + SURPRISE_MOMENT_SHOWN when perk UI appears
  after successful QR payment (useEffect with hasTrackedShow ref)
- REWARD_CLAIMED after successful mantecaApi.claimPerk()
- REWARD_CLAIM_DISMISSED on unmount if shown but not claimed

These events unblock KR2 measurement for Rewards v2.
CodeRabbit caught that hasTrackedPerkShown and perkClaimedRef survive
resetState(), so a second QR payment in the same session would skip
analytics tracking. Move refs before resetState and clear them there.
fix: instrument reward analytics on QR payment page
@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
peanut-wallet Ready Ready Preview, Comment Apr 14, 2026 1:57pm

Request Review

kushagrasarathe and others added 4 commits April 10, 2026 20:16
- add actionType to InitiateSumsubKycResponse type
- handle bridge-direct: skip SDK, show preparing modal, backend handles submission
- handle manteca action: open SDK with action token (questionnaire only)
- add isActionFlow flag to disable multi-level for action flows
  (cross-region LATAM uses action, not multi-level workflow)

pairs with backend feat/applicant-actions branch.
Brave identifies as Chrome in its User-Agent string, causing PostHog to
misclassify Brave users. Given our crypto-native audience, Brave usage
is likely 5-15% of traffic — currently invisible in analytics.

Uses navigator.brave.isBrave() API to detect Brave and sets a
browser_override person property in PostHog for accurate breakdowns.
…ection

feat(analytics): detect Brave browser in PostHog
kushagrasarathe and others added 6 commits April 13, 2026 20:58
- revert animations submodule to main (accidental change from worktree init)
- reset isActionFlow in bridge-direct early-return to prevent stale state
only close SDK when onApplicantActionStatusChanged fires with
reviewStatus === 'completed', preventing premature closure on
intermediate action events
feat: handle applicant action responses for cross-region KYC
@jjramirezn jjramirezn closed this pull request by merging all changes into dev in 26a5252 Apr 14, 2026
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.

3 participants