Conversation
There was a problem hiding this comment.
I decided to generate the file in case new CRM apps get added CrmService files. Ex. Attio
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (03/04/25)1 reviewer was added to this PR based on Keith Williams's automation. |
E2E results are ready! |
| This file is autogenerated using the command `yarn app-store:build --watch`. | ||
| Don't modify this file manually. | ||
| **/ | ||
| export const CrmServiceMap = { |
There was a problem hiding this comment.
Can we not find a way to only load the exact 1 we need?
Something similar to what I was testing here? https://github.com/calcom/cal.com/pull/19520/files#diff-8d0187f3e8930f70c4a3baae2905502d659e5bbadcf136e011d792c4ea7487e9
Basically just a map of where to import the app from but don't import it until needed.
This map still imports 6 full CRM apps to load 1.
There was a problem hiding this comment.
Note: I know this means we'd need to update the app-store-cli so likely better as a follow up PR
* Generate crm apps map * Remove .tsx file * Use `CrmServiceMap` in `getCrm` * Remove unused types * Type fixes * Type fixes
What does this PR do?
While the app store is getting a refactor, we're introducing a map that only contains CRM apps so we don't import the whole app store.
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?