fix proof request perk logos and ineligible-document UX#2103
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR refactors perk display to use a shared PerkRail component, adds testID support for testability, implements an ineligible document state with user-facing reason labels and a "Change ID" helper row, and enables perks to display on eligible-but-inactive documents. Changes span SDK component updates, component refactoring, visibility logic, UI state, and screen-level wiring. ChangesIneligibility flow and perk rail integration
🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
Greptile SummaryThis PR fixes the proof-request screen so that perk logos are shown on all eligible documents (not just the currently active/selected one) and introduces an "ineligible" state that surfaces an amber "INELIGIBLE" pill and a tappable "Change ID" helper row in
Confidence Score: 4/5Safe to merge; all logic changes are well-tested and the only finding is a Unicode apostrophe in one display string. The perk-eligibility widening and ineligible-state wiring are both correctly implemented and covered by new tests. The only issue found is a Unicode curly apostrophe (U+2019) embedded in a single-quoted string literal in getIneligibleReasonLabel, which compiles fine but silently breaks plain-text search and copy-paste comparisons. app/src/screens/verification/DocumentSelectorForProvingScreen.tsx — the unsupported_id_type string literal with curly apostrophe. Important Files Changed
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d1ac07e5d
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
PerkRailso multi-perk logos fan out side-by-side instead of stacking inside one circle, and the dense vs minimal variant matches Figma.needs_nfc,unsupported_id_type) and a tap-to-change-ID helper row.PerkEligibilityRowstarted consumingPerkRail.Changes
React Native app
BottomActionBar: pin the selector to a rounded-60 pill (per Figma 26164:20557), drop the screen-height-dependent dynamic padding, and add anineligiblestate with helper row, reason label, andINELIGIBLEpill replacing the security label.PerkEligibilityRow: thin wrapper around the SDKPerkRail; picksminimalvsdensevariant from logo count and strips bottom radius for inline rows.IDSelectorSheet: show perk row on any eligible non-disabled doc (not just the active one) and apply the framed border whenever a row is active or carries perks.DocumentSelectorForProvingScreen: threadselectedIneligibleReasoninto the action bar and mapneeds_nfc/unsupported_id_typeto user-visible helper copy.SDK core
PerkRail: expose atestIDprop on both thePressableandViewbranches.Tests
BottomActionBar,PerkEligibilityRow, andPerkRailcovering the perk-row, ineligible-state, and logo-fanning behavior.IDSelectorSheettests with the cross-row perk eligibility cases and the framed-border path.DocumentSelectorForProvingScreentests with reason-to-helper-copy assertions and addPerkRailto the SDK component mock (fixes the broken suite).PerkRailfactory totests/__setup__/mocks/ui.js.Test Plan
yarn jest:run— 96 suites / 1083 tests passyarn lint🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Tests