-
Notifications
You must be signed in to change notification settings - Fork 11.5k
feat(companion): component improvements, migrate to path aliases, expo-haptics, expo-image #26226
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ements - Extend tailwind.config.js with Cal.com brand color tokens (cal.text, cal.bg, cal.border, cal.accent, cal.brand) - Create theme/colors.ts for JS usage where Tailwind classes can't be used - Configure path aliases in tsconfig.json (@/components, @/hooks, @/utils, etc.) - Add expo-image and expo-haptics dependencies - Enhance AppPressable with Reanimated animations (opacity + scale) and haptic feedback - Extract shared logic from BookingListItem into useBookingListItemData hook and BookingListItemParts - Extract shared logic from EventTypeListItem into useEventTypeListItemData hook and EventTypeListItemParts - Extract shared logic from AvailabilityListItem into AvailabilityListItemParts - Update all list item components to use new theme tokens instead of hardcoded hex values
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
- Remove theme/colors.ts and theme/index.ts (defer dark mode to future PR) - Replace colors import with hardcoded hex values in components - Migrate all files to use path aliases (@/components/*, @/hooks/*, etc.) - Migrate SvgImage to use expo-image for better performance - Update tsconfig.json to remove @/theme/* alias
Add baseUrl and paths configuration to tsconfig.extension.json to support path aliases in shared types used by the extension build.
volnei
approved these changes
Dec 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR improves the Cal.com Companion App architecture by introducing path aliases and enhanced component patterns and implementation of expo-haptics, expo-image.
Key changes:
@/components/*,@/hooks/*, etc.) - fully migrated across all filesAppPressablewith Reanimated animations (opacity + scale) and haptic feedbackSvgImagecomponent to useexpo-imagefor better performance with cachingDependencies added:
expo-haptics- for tactile feedback on interactionsexpo-image- for better image performance (now utilized in SvgImage component)Link to Devin run: https://app.devin.ai/sessions/ed07ff383c604233ab0f6d039524eef9
Requested by: Dhairyashil Shinde (@dhairyashiil)
expo-imageinSvgImage.tsxwithcontentFit="contain"andtransition={200}for smooth loadingtsconfig.extension.jsonto fix extension typecheck errorsMandatory Tasks (DO NOT REMOVE)
How should this be tested?
@/imports correctly - app should build and run without module resolution errorsbun typecheck:allto verify both main app and extension typechecks passSvgImage- should see smooth 200ms transition on loadImportant notes:
enableHaptics={false}propChecklist
Human Review Checklist
@/imports)bun typecheck:extension)contentFitandtransitionprops in SvgImage