The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Move product URLs out of twenty-ui (#26908)
Raphaël Bosife835df1d354
diff --git a/packages/twenty-ui/src/primitives/navigation/Link/constants/Cal.ts b/packages/twenty-front/src/modules/onboarding/constants/CalLink.tssimilarity index 100%rename from packages/twenty-ui/src/primitives/navigation/Link/constants/Cal.tsrename to packages/twenty-front/src/modules/onboarding/constants/CalLink.tsdiff --git a/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx b/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsxindex 5f92629991c..5e4c365e051 100644--- a/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx+++ b/packages/twenty-front/src/pages/onboarding/UpgradeFreeTrial.tsx@@ -13,6 +13,7 @@ import { StyledOnboardingStepTitle } from '@/onboarding/components/StyledOnboardimport { OnboardingCreditsRewardTag } from '@/onboarding/components/import-contacts/OnboardingCreditsRewardTag';import { OnboardingPlanCard } from '@/onboarding/components/upgrade-free-trial/OnboardingPlanCard';import { OnboardingTrialExtensionTag } from '@/onboarding/components/upgrade-free-trial/OnboardingTrialExtensionTag';+import { CAL_LINK } from '@/onboarding/constants/CalLink';import { isOnboardingCheckoutPendingState } from '@/onboarding/states/isOnboardingCheckoutPendingState';import { useBaseLicensedPriceByPlanKeyAndInterval } from '@/settings/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval';import { useHandleCheckoutSession } from '@/settings/billing/hooks/useHandleCheckoutSession';@@ -30,7 +31,7 @@ import { isDefined } from 'twenty-shared/utils';import { Info, MainButton } from 'twenty-ui/components';import { Loader } from 'twenty-ui/primitives/feedback';import { RadioGroup } from 'twenty-ui/primitives/input';-import { CAL_LINK, ClickToActionLink } from 'twenty-ui/primitives/navigation';+import { ClickToActionLink } from 'twenty-ui/primitives/navigation';import { MOBILE_VIEWPORT, themeCssVariables } from 'twenty-ui/theme';import {type Billing,diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.mdindex 5f1ddff4ff3..244bffa1c49 100644--- a/packages/twenty-ui/CHANGELOG.md+++ b/packages/twenty-ui/CHANGELOG.md@@ -4,6 +4,7 @@### Breaking Changes+- Removed the product URL exports `CAL_LINK`, `GITHUB_LINK`, and `TWENTY_PRICING_LINK`. Applications own their destination URLs.- `Card` is now a compound component. Import `Card` from `twenty-ui/primitives/surfaces`, replace `<Card>` with `<Card.Root>`, and replace the removed `CardHeader`, `CardContent`, and `CardFooter` exports with `Card.Header`, `Card.Content`, and `Card.Footer`. Use `Card.Root` in styled wrappers and prop types. Rendering, styling, props, and independent use of the parts are unchanged. See the [Card migration guide](https://docs.twenty.com/ui/primitives/surfaces/card#migration).- The in-repo Slack app still uses the separately versioned `twenty-ui@^1.0.0-alpha.1` package. Migrate its `twenty-ui/surfaces` import and `<Card>` usage together with its UI dependency upgrade; that published version does not expose `Card.Root`.- Removed the unused `useScreenSize` export. `useIsMobile` and `useIsTouchDevice` remain available from `twenty-ui/utilities` and now subscribe to native `matchMedia` changes. Both return `false` during server rendering, initial hydration, and when `matchMedia` is unavailable. `react-responsive` context overrides no longer affect these hooks; use `overrideMediaQueryMatches` from `twenty-ui/testing` to force a result in stories.diff --git a/packages/twenty-ui/src/primitives/navigation/Link/constants/GithubLink.ts b/packages/twenty-ui/src/primitives/navigation/Link/constants/GithubLink.tsdeleted file mode 100644index 428859df52c..00000000000--- a/packages/twenty-ui/src/primitives/navigation/Link/constants/GithubLink.ts+++ /dev/null@@ -1 +0,0 @@-export const GITHUB_LINK = 'https://github.com/twentyhq/twenty';diff --git a/packages/twenty-ui/src/primitives/navigation/Link/constants/TwentyPricingLink.ts b/packages/twenty-ui/src/primitives/navigation/Link/constants/TwentyPricingLink.tsdeleted file mode 100644index 9edff66e846..00000000000--- a/packages/twenty-ui/src/primitives/navigation/Link/constants/TwentyPricingLink.ts+++ /dev/null@@ -1 +0,0 @@-export const TWENTY_PRICING_LINK = 'https://twenty.com/pricing';diff --git a/packages/twenty-ui/src/primitives/navigation/index.ts b/packages/twenty-ui/src/primitives/navigation/index.tsindex 58cd320ece0..41974a3f68e 100644--- a/packages/twenty-ui/src/primitives/navigation/index.ts+++ b/packages/twenty-ui/src/primitives/navigation/index.ts@@ -8,9 +8,6 @@*/export { ClickToActionLink } from './ClickToActionLink/ClickToActionLink';-export { CAL_LINK } from './Link/constants/Cal';-export { GITHUB_LINK } from './Link/constants/GithubLink';-export { TWENTY_PRICING_LINK } from './Link/constants/TwentyPricingLink';export { ListItem } from './ListItem/ListItem';export type { ListItemColor } from './ListItem/types/ListItemColor';export type { ListItemDescriptionPlacement } from './ListItem/types/ListItemDescriptionPlacement';