Commit Graph

3133 Commits

Author SHA1 Message Date
Justin Hernandez
a582e1b3cd fix tests (#1668) 2026-01-28 22:03:08 -08:00
Justin Hernandez
ec7ad1e66d SELF-1932: sumsub success screen (#1667)
* fix typos

* typo

* match screen design. fix tests
2026-01-28 21:27:22 -08:00
Justin Hernandez
c7c9985d91 SELF-1889: Initiate Sumsub during onboarding error flows (#1662)
* integrate sumsub into error flows

* formatting

* fix test

* format

* clean up

* udpate flows

* agent feedback

* updates

* save wip updates

* clean up design

* updates

* lint

* agent feedback

* formatting

* fix
2026-01-28 20:10:50 -08:00
Justin Hernandez
8da076cf0d Bump Babel, TypeScript, React Native and assorted dependencies; refresh lockfile (#1606)
* Update dependency versions

* Fix gesture handler Android dependency (#1611)

* Patch screens codegen type (#1609)

* Downgrade Sentry React Native (#1612)

* fix patches and packages

* downgrade versions for gesture handler and screens

* agent feedback

* fix ios building

* allow ios tets to pass

* formatting

* make cache more resilient

* Address CodeRabbitAI review comments

This commit addresses all 7 unresolved CodeRabbitAI comments on PR #1606:

Patch-package error handling (comments #1, #2, #3):
- stderr capture already implemented in both root and workspace patch runs
- Add CI warning when patches fail silently instead of exiting with 0
- Log completion status in CI mode for visibility

Critical Mixpanel dependency fix (comment #5):
- Add explicit Mixpanel-swift pod declaration to fix E2E build failures
- Ensures Mixpanel is available even when NFCPassportReader is skipped during E2E testing

React-native-web validation (comment #4):
- Verified no usage of deprecated findNodeHandle, pointerEvents: 'box-none', or createPortal
- Safe to upgrade from 0.19 to 0.21.2

CI workflow improvements (comments #6, #7):
- Create cache-sdk-build composite action for consistent SDK build artifact caching
- Replace all direct actions/cache@v4 usage with cache-yarn composite action
- Replace all direct actions/cache/restore@v4 and save@v4 with cache-sdk-build
- Add nested require() validation step before tests to fail fast on problematic patterns

All changes follow repository coding guidelines for CI caching and test memory optimization.

* Extend cache composite actions to all SDK workflows

This commit extends the caching standardization from PR #1606 to include
mobile-sdk-ci.yml and core-sdk-ci.yml workflows.

New composite actions created:
- cache-mobile-sdk-build: For mobile SDK build artifacts
- cache-core-sdk-build: For core SDK build artifacts

Workflow updates:
- mobile-sdk-ci.yml: Replaced 5 instances of direct actions/cache with cache-mobile-sdk-build
- core-sdk-ci.yml: Replaced 4 instances of direct actions/cache with cache-core-sdk-build

All SDK CI workflows now use consistent caching patterns via composite actions,
following the AGENTS.md guideline: "Use shared composite actions from .github/actions
for CI caching instead of calling actions/cache directly."

Benefits:
- Consistent caching across all SDK workflows (qrcode, mobile, core)
- Centralized cache configuration - easier to maintain
- Follows established patterns from qrcode-sdk-ci.yml

* downgrade react-native-svg

* update pod lock file

* sort
2026-01-28 12:47:32 -08:00
Nesopie
16c58906d9 chore: remove all instances of selfrica (#1665) 2026-01-28 15:46:49 +05:30
Javier Cortejoso
a7fb017a49 chore: increase build timeout to 12 hours in circuits-build.yml (#1664) 2026-01-28 13:55:13 +05:30
Leszek Stachowski
80d9e2d625 [SELF-1891] feat(kyc): Other IDs button (#1660)
* feat(kyc): Other IDs button

* trigger sumsub flow directly from event listener

* formatting

* formatting

* add todo

* add feature flag

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2026-01-27 14:03:36 -08:00
Nesopie
e0c0c37372 fix: kyc library (#1659) 2026-01-27 19:53:18 +05:30
Nesopie
41a4d9374d Ci/kyc (#1658)
* ci: add kyc to the workflow and rm new aadhaar nullifier logic

* fix: true spelling
2026-01-27 19:38:28 +05:30
Nesopie
9f7151be7a Feat/register input generation (#1657)
* feat: add helper function to generate register circuit inputs

* commit common
2026-01-27 17:14:13 +05:30
Evi Nova
3f8bb75d9a chore: bump QRcode version to 1.0.18 (#1656) 2026-01-27 21:32:47 +10:00
Nesopie
bcfd284ca8 Feat/sumsub (#1654)
* fix: circuits and contracts

* feat: add reverse ofac logic

* feat: add onlyRole modifiers to functions

* style: replace onlyOwner reference in comment code to role-based access

* test: unskip and update governance tests for access control

* test: fix PCR0 setup in kyc test

---------

Co-authored-by: Evi Nova <tranquil_flow@protonmail.com>
2026-01-27 14:49:34 +05:30
Justin Hernandez
ba856226d8 SELF-1812: integrate sumsub into mobile app (#1650)
* sumsub initial pass

* add sumsub tee url

* agent feedback and fixes

* update lock

* agent feedback

* fix types

* agnet feedback

* fix mock

* agent feedback

* lazy load sumsub screen

* white button color

* fix lint

* add debug url link

* allow us to see recordings

* debug maestro run

* disable e2e screen recording for now. don't load sumsub logic when running e2e test

* remove lazy loading

* skip installing sumsub plugin

* retest ios e2e

* get e2e tests passing

* clean up
2026-01-26 14:06:36 -08:00
Justin Hernandez
d708d85982 Unify local e2e logic (#1651)
* format

* pr feedback
2026-01-26 05:43:45 -08:00
Evi Nova
27d067c180 fix: implemented fix for skipped nfcScanner tests on ios and android (#1628)
* fix: implemented fix for skipped nfcScanner tests on ios and android

* chore: yarn prettier
2026-01-26 16:04:53 +10:00
Justin Hernandez
9d092e410b Include app version in release calendar PR titles (#1649)
* Include app version in release PR titles

* agent feedback

* agent feedback
2026-01-25 17:45:49 -08:00
github-actions[bot]
d69fda1e4d chore: bump mobile app version to 2.9.13 (#1645)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-22 15:12:01 -08:00
github-actions[bot]
859b8b1756 chore: bump mobile app version to 2.9.13 (#1643)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-21 21:27:46 -08:00
Justin Hernandez
57c7df4ae3 chore: downgrade react-native-screens to fix iOS deploy (#1641)
* match ios version for deploy

* download react-native-screens to fix ios deploy
2026-01-21 20:56:02 -08:00
github-actions[bot]
c77a7db3f9 chore: bump mobile app version to 2.9.13 (#1640)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-21 16:45:07 -08:00
Justin Hernandez
7e96ee5d94 match ios version for deploy (#1638) 2026-01-21 16:22:00 -08:00
Justin Hernandez
c5e0ca459f bump version to 2.9.13 (#1636) 2026-01-21 16:09:12 -08:00
Justin Hernandez
3f2fb1159c Update mobile sdk test config to fix test running (#1635)
* fix mobile sdk tests

* fix mobile sdk tests
2026-01-21 15:38:14 -08:00
Kartik Mehta
bebaebc872 QR code SDK Redesign (#1536)
* Refactor NFC scanner tests to use a global variable for platform OS, allowing dynamic switching between iOS and Android during tests. This change improves test isolation and avoids hoisting issues with jest.mock.

* Triggering GitHub workflows

* Add status animations and self logos

* Update utilities and styles for statuses

* Remove old LED implementation and occurences

* Update Self QR Code with new design

* Add status banner

* Remove console and use QRcodeSteps in styles

* Add ARIA and use Memo to prevent re-renders

* Add refs for success and error callbacks

* Use ref for self app in qrcode

* Use selfapp ref consistently

* Update connected state animtion

* Skip 'parses Android response' test in nfcScanner

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Javier Cortejoso <javier.cortejoso@gmail.com>
2026-01-21 23:07:24 +10:00
Justin Hernandez
a0c67458a9 update gitleaks ignore (#1632) 2026-01-20 13:17:45 -08:00
Justin Hernandez
04f67ed2df Always skip document selector for single valid document; remove toggle and info text (#1622)
* Remove skip info text

* prettier

* fix test
2026-01-20 13:11:36 -08:00
Seshanth.S
62f602a5e9 add debug logging switch to NFCMethodSelectionScreen (#1626) 2026-01-21 00:17:34 +05:30
Seshanth.S
e32a2a3cea hide not regsitered docs from DocumentSelectorForProvingScreen (#1619) 2026-01-21 00:17:15 +05:30
Seshanth.S
d5b843db5b SELF-1497: add keychain patch (#1607)
* add keychain patch - wip

* centralise useStrongbox flag usage

* set allowBackup to false

* bump to version 2.9.12

* bump android build for 2.9.12

* improve keychain error detection

* Disable Strongbox by default

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2026-01-20 23:35:41 +05:30
Nesopie
13d81c53bf fix: ecdsa (#1625) 2026-01-19 19:38:13 +05:30
Nesopie
e77247f372 Feat/kyc (#1623)
* feat: selfrica circuit and tests

* chore: remove unused code

* feat: test for ofac,date and olderthan

* fix: public signal constant

* feat: add contract tests

* feat: helper function to gen TEE input

* feat: gen circuit inputs with signature

* feat: seralized base64

* fix: DateIsLessFullYear componenet

* feat: register circuit for selfrica

* feat: selfrica disclose circuit and test

* fix: common module error

* feat: add more test and fix constant

* fix: commitment calculation

* feat: selfrica contracts

* test: selfrica register using unified circuit

* feat: register persona and selfrica circuit

* feat: selfrica circuit and tests

* chore: remove unused code

* feat: test for ofac,date and olderthan

* fix: public signal constant

* feat: add contract tests

* feat: helper function to gen TEE input

* feat: gen circuit inputs with signature

* feat: seralized base64

* fix: DateIsLessFullYear componenet

* feat: register circuit for selfrica

* feat: selfrica disclose circuit and test

* fix: common module error

* feat: add more test and fix constant

* fix: commitment calculation

* feat: selfrica contracts

* test: selfrica register using unified circuit

* feat: register persona and selfrica circuit

* refactor: contract size reduction for IdentityVerificationHubImplV2

export function logic to external libs, reduce compiler runs to 200, update deploy scripts to link new libs

* feat: disclose circuit for persona

* feat: update  persona ofac trees

* feat; register circuit for selfper

* feat: disclose test for selfper

* chore: refactor

* chore : remove unused circuits

* chore: rename selfper to kyc

* chore: update comments

* feat: constrain s to be 251 bit

* feat: add range check on majority ASCII and comments

* feat: range check on neg_r_inv

* chore: remove is pk zero constrain

* merge dev

* feat: add registerPubkey function to Selfrica with GCPJWT Verification

* test: add testing for GCPJWT verification on Selfrica

* fix: script that calls register_selfrica circuits (ptau:14 -> ptau:15)

* fix: get remaining Selfrica tests working with proper import paths

* refactor: store pubkeys as string

also add some comment code for registerPubkey function

* refactor: remove registerPubkeyCommitment function

some tests now skipped as awaiting changes to how pubkeys are stored (string instead of uint256)

* feat: use hex decoding for the pubkey commitment

* test: adjust tests for pubkey being string again

* fix: remove old references to registerPubkey

* docs: add full natspec for IdentityRegistrySelfricaImplV1

* docs: update files in rest of the repo for Selfrica attestation type

* test: fix broken tests

* fix: builds and move to kyc from selfrica

* fix: constrain r_inv, Rx, s, T

* feat: eddsa

* feat: add onlyTEE check to registerPubkeyCommitment

onlyOwner is able to change onlyTEE

* refactor: update gcpRootCAPubkeyHash to be changeable by owner

* feat: add events for update functions

* style: move functions to be near other similar functions

* fix: kyc happy flow

* fix: all contract tests passing

| fix: timestamp conversion with Date(), migrate to V2 for endToEnd test, scope formatting, fix register aadhaar issue by using block.timestamp instead of Date.now(), fix changed getter function name, enable MockGCPJWTVerifier with updated file paths, add missing LeanIMT import, fix user identifier format

* audit: bind key offset-value offset and ensure image_digest only occurs once in the payload

* fix: constrain bracket

* chore: update comment

* audit: hardcode attestation id

* audit: make sure R and pubkey are on the curve

* audit: ensure pubkey is within bounds

* fix: all contract tests passing

* feat: change max length to 99 from 74

* audit: don't check sha256 padding

* audit: check the last window as well

* audit: single occurance for eat_nonce and image_digest

* audit: check if the certs are expired

* audit: add the timestamp check to the contract

* audit: make sure the person is less than 255 years of age

* audit fixes

* chore: yarn.lock

* fix: build fixes

* fix: aadhaar timestamp

* lint

* fix: types

* format

---------

Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
Co-authored-by: Evi Nova <tranquil_flow@protonmail.com>
2026-01-19 15:54:37 +05:30
Justin Hernandez
5b5110925a [SELF-810] Edge-to-edge: add iOS-only SystemBars wrapper and update Android handling (#1610)
* Update edge-to-edge handling

* update lock file

* formatting

* agent feedback
2026-01-15 10:32:55 -08:00
Justin Hernandez
22c35dbb9d bump android build for 2.9.12 (#1615) 2026-01-15 09:13:34 -08:00
Justin Hernandez
544d60f860 Replace email support with Notion form (#1613)
* Replace email support with Discord

* Add Discord support prompts

* Remove command log

* formatting, agent feedback

* update strings

* save wip

* fix button color

* update text and change support from discord to notion support form

* remove settings support form text

* rename component and update feedback modal to redirect to users to notion form

* formatting

* update text
2026-01-14 18:14:27 -08:00
Justin Hernandez
f8179c92ba agent feedback (#1614) 2026-01-14 15:47:41 -08:00
github-actions[bot]
5d08ca40f0 chore: bump mobile app version to 2.9.11 (#1605)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-13 18:47:14 -08:00
Justin Hernandez
19735fb02b clean up dev settings (#1604) 2026-01-13 14:32:22 -08:00
Justin Hernandez
ac4921a458 Require real document for settings options (#1603) 2026-01-13 14:31:47 -08:00
Justin Hernandez
12f3262dbf chore: bump version to 2.9.11 (#1601)
* chore: bump version to 2.9.11

* fix linting
2026-01-13 14:08:50 -08:00
Justin Hernandez
2c0a03ac4b update text (#1600) 2026-01-13 13:51:01 -08:00
Seshanth.S
bcbb8affd4 SELF-1768: fix deeplink navigation (#1598)
* fix deeplink navigation

* fix tests

* fix typing

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2026-01-13 13:41:48 -08:00
Justin Hernandez
27672e52f6 Add document processor behavior tests (#1599)
* Add document processor integration tests

* fix types
2026-01-13 11:16:17 -08:00
Leszek Stachowski
2939926c82 fix: register document from ManageDocuments screen (#1597)
* fix: register document from ManageDocuments screen

* coderabbit suggestion
2026-01-14 00:32:33 +05:30
github-actions[bot]
8f0696149d chore: bump mobile app version to 2.9.10 (#1596)
Update build numbers and deployment timestamps after successful deployment.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-12 15:34:07 -08:00
Justin Hernandez
57acda6680 bump build (#1595) 2026-01-12 15:03:07 -08:00
Justin Hernandez
8c30720a29 allow os target labels (#1594) 2026-01-12 14:20:26 -08:00
Artur
ba8aace38a Feat add issue templates (#1557)
* Add issue templates for bug reports and feature requests

* Remove test script from PR (not needed for issue templates)
2026-01-12 13:23:40 -08:00
Justin Hernandez
9d83672920 Adjust cloud backup visibility (#1593) 2026-01-12 13:17:53 -08:00
Justin Hernandez
8eff3d030d Limit keychain modal to Android (#1591) 2026-01-12 12:42:34 -08:00
Justin Hernandez
9f5171f21e Add proving machine refactor guardrail tests (#1584)
* Add proving machine refactor tests

* Clarify refactor guardrail test intent

* Add Socket.IO status handler wiring tests for proving store (#1586)

* Add status handler listener tests

* Fix failure status test payload

* Add hello ack uuid test (#1588)

* formatting

* format, agent feedback

* delete mock mock tests
2026-01-12 11:29:57 -08:00