-
Notifications
You must be signed in to change notification settings - Fork 211
feat(flexible-disclosures): add first/last_name flags to SDKs #1652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughAdds optional Changes
Sequence Diagram(s)(omitted — changes are type additions, small control-flow export, and tests; no multi-component sequential flow requiring visualization) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
sdk/sdk-common/index.ts (1)
268-281: Multiple SDK packages have duplicate interface definitions that are already drifting.
SelfAppDisclosureConfigandSelfAppare duplicated incommon/src/utils/appType.ts,sdk/sdk-common/index.ts, andsdk/qrcode-angular/src/lib/common.ts. TheSelfAppinterface in both SDK packages is missing theselfDefinedDatafield that exists in the common package and is actively used in the proving logic. This drift creates maintenance overhead and risks breaking changes as new fields are added.Re-export these interfaces from the common package in SDK modules to maintain a single source of truth and prevent future inconsistencies.
🧹 Nitpick comments (1)
sdk/qrcode-angular/README.md (1)
157-158: Consider noting that these fields are not yet supported by the app.Per the PR description,
first_nameandlast_nameflags are not yet supported by the mobile app. Adding a note (e.g., "⚠️ Coming soon" or similar) would help developers avoid confusion when these fields don't produce expected behavior.
Description
This PR brings changes to our SDKs in order to be able to support
first_nameandlast_namedisclosure flags. This is not yet supported by the app.Tested
How to QA
Note
Adds optional
first_name/last_namefields toSelfAppDisclosureConfigacross common and SDKs, with corresponding docs updates and tests.getSelectorDg1Passport/getSelectorDg1IdCardand add guards to ignore unknown disclosure attributes when building DG1 selectorsfirst_name/last_nameqrcodeandqrcode-angulardocumenting the new disclosure optionsWritten by Cursor Bugbot for commit 04545c5. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
New Features
Public API
Documentation
Tests
✏️ Tip: You can customize this high-level summary in your review settings.