fix: resolve TypeScript check-types CI errors#1985
Conversation
Update types and imports to match @packrat-ai/nativewindui v2.0.0 API: - AlertRef -> AlertMethods (18 files) - LargeTitleSearchBarRef -> LargeTitleSearchBarMethods (4 files) - ContextMenuRef -> ContextMenuMethods (1 file) - Use SfSymbol names for context/dropdown menu icons - Switch useColorScheme import to local hook for files using colors.green/yellow - Replace rootStyle/rootClassName with style/className on List - Fix SearchInputRef usage with TextInput ref type - Fix invalid icon names (person-outline, backpack) - Remove unsupported namingScheme property - Add missing Share import from react-native
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Pull request overview
Resolves bun check-types CI failures in the Expo app after upgrading to @packrat-ai/nativewindui v2 by updating renamed method/ref types, aligning icon prop types, and switching theme hook imports where app-specific colors are required.
Changes:
- Replaced deprecated ref/method types (
AlertRef,LargeTitleSearchBarRef,ContextMenuRef) with the new*Methodsequivalents across screens/components. - Updated context menu / dropdown menu icon names to SF Symbol names and removed unsupported
namingSchemeusage. - Adjusted theming and component props to match v2 APIs (e.g., local
useColorSchemewherecolors.green/yelloware needed;ListrootStyle/rootClassName→style/className; corrected missing imports likeShare).
Reviewed changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| apps/expo/features/weather/screens/LocationSearchScreen.tsx | Updates SearchInput ref typing to match v2 API expectations. |
| apps/expo/features/weather/components/WeatherAlertsTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/trips/screens/TripListScreen.tsx | Updates LargeTitle search bar ref type to LargeTitleSearchBarMethods. |
| apps/expo/features/trips/screens/TripDetailScreen.tsx | Updates alert ref type and adds missing Share import used by share handler. |
| apps/expo/features/trips/components/UpcomingTripsTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/trips/components/TripCard.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/trips/components/TrailConditionsTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/packs/screens/PackListScreen.tsx | Updates LargeTitle search bar ref type to LargeTitleSearchBarMethods. |
| apps/expo/features/packs/components/WeightAnalysisTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/packs/components/PackStatsTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/packs/components/PackCategoriesTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/packs/components/HorizontalCatalogItemCard.tsx | Switches useColorScheme to app hook for app-specific colors. |
| apps/expo/features/packs/components/GearInventoryTile.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/packs/components/GapSuggestion.tsx | Switches useColorScheme to app hook for app-specific colors. |
| apps/expo/features/pack-templates/screens/PackTemplateListScreen.tsx | Updates LargeTitle search bar ref type to LargeTitleSearchBarMethods. |
| apps/expo/features/auth/components/DeleteAccountButton.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/features/ai/components/WebSearchGenerativeUI.tsx | Switches useColorScheme to app hook for app-specific colors. |
| apps/expo/features/ai-packs/screens/AIPacksScreen.tsx | Updates alert ref type and aligns alert icon naming with updated types. |
| apps/expo/app/auth/one-time-password.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/app/auth/index.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/app/auth/(login)/reset-password.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/app/auth/(login)/forgot-password.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/app/auth/(create-account)/credentials.tsx | Updates alert ref type to AlertMethods. |
| apps/expo/app/_layout.tsx | Updates global app alert ref type to AlertMethods. |
| apps/expo/app/(app)/settings/index.android.tsx | Updates List props to v2 (rootStyle/rootClassName → style/className). |
| apps/expo/app/(app)/messages/conversations.tsx | Updates dropdown/context menu icon names and removes namingScheme. |
| apps/expo/app/(app)/messages/conversations.android.tsx | Updates dropdown/toolbar icon names and removes namingScheme. |
| apps/expo/app/(app)/messages/chat.tsx | Updates ContextMenu ref type to ContextMenuMethods and icon names. |
| apps/expo/app/(app)/messages/chat.android.tsx | Updates dropdown icon names to SF Symbol names. |
| apps/expo/app/(app)/(tabs)/profile/name.tsx | Updates FormSection icon name to match updated icon typing. |
| apps/expo/app/(app)/(tabs)/profile/index.tsx | Updates alert ref type and switches useColorScheme to app hook for app-specific colors. |
| apps/expo/app/(app)/(tabs)/(home)/index.tsx | Updates LargeTitle search bar ref type to LargeTitleSearchBarMethods. |
You can also share your feedback on Copilot code review. Take the survey.
* development: (68 commits) apply safe area top inset only on iOS chore(expo): update android resource class to 'large' and adjust gradle and JVM options chore(e2e): update iOS E2E tests to run on macos-15 and use Xcode version 26.2 chore(e2e): update iOS E2E tests to run on macos-26-large chore(expo): correct resource class from 'm-medium' to 'medium' in eas.json chore(expo): use larger resource class and disable lint in eas builds chore(expo): increase JVM memory and set latest iOS image for builds Add itemCalculations tests - API: 24.51% → 25.4% (+0.89%) Add env-validation tests - API: 21.9% → 24.51% (+2.61%) Add comprehensive auth.ts tests - API: 19.59% → 21.9% chore: add workflow_dispatch trigger to E2E tests chore: update expo-glass-effect to SDK 54 compatible version chore: add workflow_dispatch trigger to E2E tests Exclude routes from API coverage & add auth middleware tests - API: 18.94% → 19.59% Add ImageCacheManager tests - Expo coverage: 53.45% → 70.93% Add middleware tests and more Expo utils - Expo: 31.91% → 53.45%, API: 5.12% → 5.24% Add comprehensive tests for Expo utilities - coverage 31.91% → 52.84% fix(expo/ai-chat): replace Toast with Burnt Add comprehensive unit test coverage POC for API and Expo layers Initial plan ...
* development: navigate to locationdetailscreen if location added and to locationscreen if not added add padding top ios fix: use correct relative paths for coverage report action fix: add coverage reports to PRs and fix workflow issues chore(ci): run unit tests with coverage to account for thresholds Add unit tests CI workflow refactor(api): remove comment on coverage thresholds in unit test config chore(expo): add test coverage threshold chore(api): improve unit test coverage to meet threshold chore(api): refactor tests and utility functions for improved accuracy Add testing strategy documentation and finalize coverage exclusions Add unit tests for services (weatherService, embeddingService, imageDetectionService) Add tests for remaining high-priority utils (embeddingHelper, openapi) Add unit tests for utils (itemCalculations, auth, csv-utils) Add unit tests for middleware (auth, apiKeyAuth, adminMiddleware) use platform specific padding remove static import of @react-native-ai/apple chore(expo): add unit tests for image and storage utilities
Coverage Report for Expo Unit Tests Coverage (./apps/expo)
File CoverageNo changed files found. |
Coverage Report for API Unit Tests Coverage (./packages/api)
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
fix: resolve TypeScript check-types CI errors
Summary
AlertRef→AlertMethods,LargeTitleSearchBarRef→LargeTitleSearchBarMethods,ContextMenuRef→ContextMenuMethodsuseColorSchemeimport to app-level hook (expo-app/lib/hooks/useColorScheme) wherecolors.green/colors.yelloware needed — no hardcoded RGB valuesrn-icon-mapper)namingSchemeprop from icon objectsListcomponent:rootStyle/rootClassName→style/classNameSearchInputRef→TextInputref typeShareimport in TripDetailScreen@packrat-ai/nativewinduirc.3 → 2.0.1CI Status
check-typespassesbiomepassesdevelopment— infra issue, not code)Supersedes #1984
🤖 Generated with Claude Code