-
Notifications
You must be signed in to change notification settings - Fork 179
Clean stale ios refs and update / fix typescript config #739
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
Clean stale ios refs and update / fix typescript config #739
Conversation
WalkthroughThis update removes document scanning source files from the iOS Xcode project configuration and makes several TypeScript type refinements across the codebase. Adjustments include stricter typing for button props, event handlers, and refs, as well as TypeScript configuration tweaks such as disallowing JavaScript files and updating include paths. A new Node type definition dependency is also added. Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
✨ 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
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: 5
🧹 Nitpick comments (1)
sdk/core/tsconfig.json (1)
16-22: Fix Prettier formatting issues.The pipeline indicates formatting issues that need to be addressed.
Run Prettier to fix formatting:
npx prettier --write sdk/core/tsconfig.json
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (8)
app/ios/Self.xcodeproj/project.pbxproj(0 hunks)app/src/components/buttons/AbstractButton.tsx(1 hunks)app/src/components/native/RCTFragment.tsx(1 hunks)app/src/screens/passport/PassportNFCScanScreen.tsx(1 hunks)app/src/screens/prove/ProveScreen.tsx(1 hunks)app/tsconfig.json(1 hunks)common/package.json(1 hunks)sdk/core/tsconfig.json(1 hunks)
💤 Files with no reviewable changes (1)
- app/ios/Self.xcodeproj/project.pbxproj
🧰 Additional context used
📓 Path-based instructions (1)
`app/src/**/*.{ts,tsx,js,jsx}`: Review React Native TypeScript code for: - Compo...
app/src/**/*.{ts,tsx,js,jsx}: Review React Native TypeScript code for:
- Component architecture and reusability
- State management patterns
- Performance optimizations
- TypeScript type safety
- React hooks usage and dependencies
- Navigation patterns
⚙️ Source: CodeRabbit Configuration File
List of files the instruction was applied to:
app/src/screens/prove/ProveScreen.tsxapp/src/components/native/RCTFragment.tsxapp/src/screens/passport/PassportNFCScanScreen.tsxapp/src/components/buttons/AbstractButton.tsx
🪛 GitHub Actions: General Self CI
sdk/core/tsconfig.json
[warning] 1-1: Prettier warning: Code style issues found. Run Prettier with --write to fix.
app/tsconfig.json
[warning] 1-1: Prettier warning: Code style issues found. Run Prettier with --write to fix.
app/src/screens/passport/PassportNFCScanScreen.tsx
[warning] 287-287: Prettier warning: Replace formatting at line 287:50 to conform with prettier/prettier rule.
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
🔇 Additional comments (4)
app/tsconfig.json (2)
4-7: Array formatting improvement approved.The multi-line array formatting enhances readability and follows common TypeScript configuration patterns.
Also applies to: 10-12
14-14: No .js files detected—allowJs: falseis safeI ran a scan of app/src and found zero
.jsfiles, and yourexcludepatterns already omit node_modules and tests. With no JavaScript sources to compile, setting"allowJs": falsewon’t break the build. The formatting tweak is purely cosmetic.common/package.json (1)
81-81: @types/node Version Check Complete
- Verified that
@types/[email protected]has no known security vulnerabilities (Snyk).- The latest published version is
24.0.3(npmjs.com), but since this project targets Node.js v20 LTS, remaining on^20.11.19is appropriate.- No further action required—this addition is safe to merge.
app/src/components/buttons/AbstractButton.tsx (1)
22-22: Excellent type safety improvement!Refining the
onPresstype to removenull | undefinedwhile keeping it optional improves the API contract. This ensures that whenonPressis provided, it's guaranteed to be a valid function, while still allowing the prop to be omitted entirely.The implementation correctly handles the optional nature by checking
if (onPress)before invocation on line 55.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
|
@coderabbitai title |
|
Tip For best results, initiate chat on the files or code changes. @transphorm Here's a suggested title for your PR: Remove unused iOS DocumentScanner files and improve TypeScript configuration This title captures the two main aspects of your changes:
The title is clear, specific, and describes the actual work done rather than using generic terms like "clean" or "refs". |
Summary
@types/nodeto common package dev depsTesting
pod install(fails: command not found)yarn workspace @selfxyz/common run typesyarn workspace @selfxyz/core run typeshttps://chatgpt.com/codex/tasks/task_b_6867ee657d18832d8b9815ec4e72fe43
Summary by CodeRabbit
Chores
Refactor