Skip to content

The open alternative to Salesforce, designed for AI.

Move RoundedLink to the frontend (#26991)

Raphaël Bosie707172b7227
diff --git a/packages/twenty-docs/docs.json b/packages/twenty-docs/docs.json
index e0954281e84..c9b638dd325 100644
--- a/packages/twenty-docs/docs.json
+++ b/packages/twenty-docs/docs.json
@@ -638,7 +638,6 @@
"ui/components/menu-picker",
"ui/components/navigation-bar",
"ui/components/notification-counter",
- "ui/components/rounded-link",
"ui/components/search-input",
"ui/components/tinted-icon-tile"
]
diff --git a/packages/twenty-docs/navigation/base-structure.json b/packages/twenty-docs/navigation/base-structure.json
index 649c087b6ab..4987449f15b 100644
--- a/packages/twenty-docs/navigation/base-structure.json
+++ b/packages/twenty-docs/navigation/base-structure.json
@@ -656,7 +656,6 @@
"ui/components/menu-picker",
"ui/components/navigation-bar",
"ui/components/notification-counter",
- "ui/components/rounded-link",
"ui/components/search-input",
"ui/components/tinted-icon-tile"
]
diff --git a/packages/twenty-docs/snippets/ui/generated/components/rounded-link.mdx b/packages/twenty-docs/snippets/ui/generated/components/rounded-link.mdx
deleted file mode 100644
index a517f651386..00000000000
--- a/packages/twenty-docs/snippets/ui/generated/components/rounded-link.mdx
+++ /dev/null
@@ -1,32 +0,0 @@
-{/*
- * _____ _
- *|_ _|_ _____ _ __ | |_ _ _
- * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
- * | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
- * |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
- * |___/
- *
- * This file is generated from the documentation data in packages/twenty-ui/generated.
- * To update it, edit the component prop types or design tokens in twenty-ui and run:
- * npx nx generate:ui twenty-docs
- */}
-
-<ParamField body="className" type="string">
- Class applied to the link.
-</ParamField>
-
-<ParamField body="color" type="&quot;primary&quot; | &quot;secondary&quot;" default="primary">
- Label text color: primary or secondary.
-</ParamField>
-
-<ParamField body="href" type="string" required>
- Destination URL, normalized by the safe-URL helper. Opens in a new tab.
-</ParamField>
-
-<ParamField body="label" type="string">
- Visible link text. An absent or empty label renders nothing.
-</ParamField>
-
-<ParamField body="onClick" type="((event: MouseEvent&lt;HTMLElement, MouseEvent&gt;) =&gt; void)">
- Click callback after propagation is stopped.
-</ParamField>
diff --git a/packages/twenty-docs/ui/components/overview.mdx b/packages/twenty-docs/ui/components/overview.mdx
index 7dc789c3eeb..7f315c50403 100644
--- a/packages/twenty-docs/ui/components/overview.mdx
+++ b/packages/twenty-docs/ui/components/overview.mdx
@@ -35,6 +35,5 @@ Import shared components from `twenty-ui/components`. The code editor has its ow
| [Menu rows](/ui/components/menu-items) | MenuItem, MenuItemAvatar, MenuItemDraggable, and MenuItemSuggestion. |
| [MenuPicker](/ui/components/menu-picker) | Compact icon toggles with tooltips. |
| [NavigationBar](/ui/components/navigation-bar) | Icon navigation with application-owned routing. |
-| [RoundedLink](/ui/components/rounded-link) | Rounded external links. |
Routing, record formatting, product placeholders, and application state belong to the host application. Shared components expose data, callback, and render props for those integrations.
diff --git a/packages/twenty-docs/ui/components/rounded-link.mdx b/packages/twenty-docs/ui/components/rounded-link.mdx
deleted file mode 100644
index 4f50b3a8511..00000000000
--- a/packages/twenty-docs/ui/components/rounded-link.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
----
-title: RoundedLink
-description: A rounded external link with a required visible label.
----
-
-import RoundedLinkReference from '/snippets/ui/generated/components/rounded-link.mdx';
-
-`RoundedLink` normalizes its destination and opens it in a new tab. Supply a non-empty `label`; otherwise the component renders nothing.
-
-```tsx
-import { RoundedLink } from 'twenty-ui/components';
-
-export const DocumentationLink = () => (
- <RoundedLink href="https://docs.twenty.com" label="Documentation" />
-);
-```
-
-Clicks stop propagation before calling `onClick`. Use that callback for application behavior without interfering with navigation. Only the listed props are forwarded; for router integration or configurable link attributes, use [Button](/ui/primitives/input/button#links-and-forms).
-
-## Props
-
-<RoundedLinkReference />
diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx
index f2f50e75f60..5eb29b30222 100644
--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx
+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-navigation-gallery.front-component.tsx
@@ -7,7 +7,6 @@ import {
MenuItemSuggestion,
MenuPicker,
NavigationBar,
- RoundedLink,
} from 'twenty-ui/components';
import { OverflowingTextWithTooltip } from 'twenty-ui/primitives/typography';
import { IconHome, IconUser } from 'twenty-ui/icon';
@@ -172,10 +171,6 @@ const NAVIGATION_ENTRIES: GalleryEntry[] = [
/>
),
},
- {
- name: 'RoundedLink',
- node: <RoundedLink href="https://twenty.com" label="Rounded link" />,
- },
];
const NavigationGallery = () => (
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx b/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx
index fec32d7fd2b..957c5bb08b7 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsTableLinkCell.tsx
@@ -1,7 +1,7 @@
import { styled } from '@linaria/react';
import { isNonEmptyString } from '@sniptt/guards';
import { getUrlHostnameOrThrow, isValidUrl } from 'twenty-shared/utils';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
import { Tooltip } from 'twenty-ui/primitives/surfaces';
import { TableCell } from '@/ui/layout/table/components/TableCell';
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/EmailsDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/EmailsDisplay.tsx
index 587811d02f2..034b24c78a2 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/EmailsDisplay.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/EmailsDisplay.tsx
@@ -4,7 +4,7 @@ import { type FieldEmailsValue } from '@/object-record/record-field/ui/types/Fie
import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList';
import { styled } from '@linaria/react';
import { isDefined } from 'twenty-shared/utils';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
type EmailsDisplayProps = {
value?: FieldEmailsValue;
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx
index 74117ac6ace..136c0a8475e 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx
@@ -1,7 +1,7 @@
import { SocialLink } from '@/ui/field/display/components/SocialLink/SocialLink';
import { isNonEmptyString } from '@sniptt/guards';
import { getSafeUrl } from 'twenty-shared/utils';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
import { checkUrlType } from '~/utils/checkUrlType';
import { isSocialLinkType } from '~/utils/isSocialLinkType';
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx
index 5d937040714..2b73e31302a 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx
@@ -9,7 +9,7 @@ import {
getUrlHostnameOrThrow,
isDefined,
} from 'twenty-shared/utils';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
import { checkUrlType } from '~/utils/checkUrlType';
import { isSocialLinkType } from '~/utils/isSocialLinkType';
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx
index e9898fa2b4e..b6fd15cc768 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx
@@ -5,7 +5,7 @@ import { styled } from '@linaria/react';
import { parsePhoneNumber } from 'libphonenumber-js';
import React, { useMemo } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
type PhonesDisplayProps = {
value?: FieldPhonesValue;
diff --git a/packages/twenty-front/src/modules/ui/field/display/components/SocialLink/SocialLink.tsx b/packages/twenty-front/src/modules/ui/field/display/components/SocialLink/SocialLink.tsx
index 035dd3f26ae..a60f9458f3b 100644
--- a/packages/twenty-front/src/modules/ui/field/display/components/SocialLink/SocialLink.tsx
+++ b/packages/twenty-front/src/modules/ui/field/display/components/SocialLink/SocialLink.tsx
@@ -4,7 +4,7 @@ import { isNonEmptyString } from '@sniptt/guards';
import { type LinkType } from '@/ui/field/display/components/SocialLink/LinkType';
import { getDisplayValueByUrlType } from '@/ui/field/display/utils/getDisplayValueByUrlType';
-import { RoundedLink } from 'twenty-ui/components';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
type SocialLinkProps = {
label?: string | null;
diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/RoundedLink.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/RoundedLink.tsx
new file mode 100644
index 00000000000..7402424f909
--- /dev/null
+++ b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/RoundedLink.tsx
@@ -0,0 +1,79 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { styled } from '@linaria/react';
+import { type MouseEvent } from 'react';
+
+import { getSafeUrl } from 'twenty-ui/utilities';
+
+const StyledLink = styled.a`
+ align-items: center;
+ background-color: var(--t-background-transparent-lighter);
+ border: 1px solid var(--t-border-color-strong);
+ border-radius: var(--t-border-radius-pill);
+ box-sizing: content-box;
+ color: var(--t-font-color-primary);
+ corner-shape: round;
+ cursor: pointer;
+ display: inline-flex;
+ font-weight: var(--t-font-size-md);
+ gap: var(--t-spacing-1);
+ height: 10px;
+ justify-content: center;
+ max-width: calc(100% - var(--t-spacing-multiplicator) * 2px);
+ min-width: fit-content;
+ overflow: hidden;
+ padding: var(--t-spacing-1) var(--t-spacing-2);
+ text-decoration: none;
+ text-overflow: ellipsis;
+ user-select: none;
+ white-space: nowrap;
+
+ &[data-color='secondary'] {
+ color: var(--t-font-color-secondary);
+ }
+
+ &:hover {
+ background-color: var(--t-background-transparent-light);
+ }
+
+ &:active {
+ background-color: var(--t-background-transparent-medium);
+ }
+`;
+
+type RoundedLinkProps = {
+ href: string;
+ label?: string;
+ color?: 'primary' | 'secondary';
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
+ className?: string;
+};
+
+export const RoundedLink = ({
+ label,
+ href,
+ color = 'primary',
+ onClick,
+ className,
+}: RoundedLinkProps) => {
+ if (!isNonEmptyString(label)) {
+ return <></>;
+ }
+
+ const handleClick = (event: MouseEvent<HTMLElement>) => {
+ event.stopPropagation();
+ onClick?.(event);
+ };
+
+ return (
+ <StyledLink
+ href={getSafeUrl(href)}
+ target="_blank"
+ rel="noreferrer"
+ onClick={handleClick}
+ data-color={color}
+ className={className}
+ >
+ {label}
+ </StyledLink>
+ );
+};
diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.interactions.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.interactions.stories.tsx
new file mode 100644
index 00000000000..ab4e70febbb
--- /dev/null
+++ b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.interactions.stories.tsx
@@ -0,0 +1,122 @@
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { type MouseEvent } from 'react';
+import { expect, fn, userEvent, within } from 'storybook/test';
+
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
+import { ComponentDecorator } from 'twenty-ui/testing';
+
+const meta: Meta<typeof RoundedLink> = {
+ title: 'UI/Navigation/Link/RoundedLink/Interactions',
+ component: RoundedLink,
+ decorators: [ComponentDecorator],
+};
+
+export default meta;
+type Story = StoryObj<typeof RoundedLink>;
+
+const DESTINATIONS = [
+ {
+ label: 'Website',
+ href: 'https://twenty.com',
+ expected: 'https://twenty.com',
+ },
+ {
+ label: 'Without scheme',
+ href: 'twenty.com',
+ expected: 'https://twenty.com',
+ },
+ { label: 'Settings', href: '/settings', expected: '/settings' },
+ {
+ label: 'Email',
+ href: 'mailto:[email protected]',
+ expected: 'mailto:[email protected]',
+ },
+ { label: 'Phone', href: 'tel:+33123456789', expected: 'tel:+33123456789' },
+];
+
+export const Destinations: Story = {
+ render: () => (
+ <>
+ {DESTINATIONS.map(({ label, href }) => (
+ <RoundedLink key={label} label={label} href={href} />
+ ))}
+ </>
+ ),
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ for (const { label, expected } of DESTINATIONS) {
+ const link = canvas.getByRole('link', { name: label });
+
+ await expect(link).toHaveAttribute('href', expected);
+ await expect(link).toHaveAttribute('target', '_blank');
+ await expect(link).toHaveAttribute('rel', 'noreferrer');
+ }
+ },
+};
+
+export const MissingLabels: Story = {
+ render: () => (
+ <>
+ <RoundedLink href="https://twenty.com" />
+ <RoundedLink href="https://twenty.com" label="" />
+ <RoundedLink href="https://twenty.com" label="Visible link" />
+ </>
+ ),
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await expect(canvas.getAllByRole('link')).toHaveLength(1);
+ await expect(
+ canvas.getByRole('link', { name: 'Visible link' }),
+ ).toBeVisible();
+ },
+};
+
+export const UnsafeDestination: Story = {
+ args: {
+ href: 'javascript:alert(1)',
+ label: 'Unavailable destination',
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await expect(
+ canvas.getByText('Unavailable destination'),
+ ).not.toHaveAttribute('href');
+ await expect(canvas.queryByRole('link')).not.toBeInTheDocument();
+ },
+};
+
+const handleParentClick = fn();
+const handleLinkClick = fn((event: MouseEvent<HTMLElement>) => {
+ expect(event.isPropagationStopped()).toBe(true);
+ event.preventDefault();
+});
+
+export const ClickAndKeyboard: Story = {
+ args: {
+ href: 'https://twenty.com',
+ label: 'Open website',
+ className: 'caller-link',
+ onClick: handleLinkClick,
+ },
+ render: (args) => (
+ <div onClick={handleParentClick}>
+ <RoundedLink {...args} />
+ </div>
+ ),
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const link = canvas.getByRole('link', { name: 'Open website' });
+
+ await expect(link).toHaveClass('caller-link');
+ await userEvent.tab();
+ await expect(link).toHaveFocus();
+ await userEvent.keyboard('{Enter}');
+ await expect(handleLinkClick).toHaveBeenCalledTimes(1);
+ await userEvent.click(link);
+ await expect(handleLinkClick).toHaveBeenCalledTimes(2);
+ await expect(handleParentClick).not.toHaveBeenCalled();
+ },
+};
diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.stories.tsx
new file mode 100644
index 00000000000..8dc9aac53bd
--- /dev/null
+++ b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink/__stories__/RoundedLink.stories.tsx
@@ -0,0 +1,48 @@
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { expect, within } from 'storybook/test';
+
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
+import { ComponentDecorator } from 'twenty-ui/testing';
+
+const meta: Meta<typeof RoundedLink> = {
+ title: 'UI/Navigation/Link/RoundedLink',
+ component: RoundedLink,
+ decorators: [ComponentDecorator],
+ args: {
+ href: '/test',
+ label: 'Rounded chip',
+ },
+};
+
+export default meta;
+type Story = StoryObj<typeof RoundedLink>;
+
+export const Default: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const link = canvas.getByRole('link', { name: 'Rounded chip' });
+ const linkStyle = getComputedStyle(link);
+ const primaryColor = linkStyle.getPropertyValue('--t-font-color-primary');
+ const backgroundColor = linkStyle.getPropertyValue(
+ '--t-background-transparent-lighter',
+ );
+
+ await expect(link).toHaveStyle({ color: primaryColor });
+ await expect(link).toHaveStyle({ 'background-color': backgroundColor });
+ },
+};
+
+export const Secondary: Story = {
+ args: {
+ color: 'secondary',
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const link = canvas.getByRole('link', { name: 'Rounded chip' });
+ const secondaryColor = getComputedStyle(link).getPropertyValue(
+ '--t-font-color-secondary',
+ );
+
+ await expect(link).toHaveStyle({ color: secondaryColor });
+ },
+};
diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
index 3aa9551f2d7..424914ea7be 100644
--- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
@@ -17,18 +17,14 @@ import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLay
import { NavigationButton } from '@/ui/input/components/NavigationButton';
import { ConfirmationDialog } from '@/ui/layout/dialog/components/ConfirmationDialog';
import { useDialog } from '@/ui/layout/dialog/hooks/useDialog';
+import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink/RoundedLink';
import { useMutation, useQuery } from '@apollo/client/react';
import { t } from '@lingui/core/macro';
import { useMemo, useState } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath, isDefined } from 'twenty-shared/utils';
-import {
- RoundedLink,
- SearchInput,
- Section,
- useToast,
-} from 'twenty-ui/components';
+import { SearchInput, Section, useToast } from 'twenty-ui/components';
import {
type IconComponent,
IconFlag,
diff --git a/packages/twenty-shared/src/constants/DocumentationPaths.ts b/packages/twenty-shared/src/constants/DocumentationPaths.ts
index 3e0210f48d5..3c7c095c0ca 100644
--- a/packages/twenty-shared/src/constants/DocumentationPaths.ts
+++ b/packages/twenty-shared/src/constants/DocumentationPaths.ts
@@ -147,7 +147,6 @@ export const DOCUMENTATION_PATHS = {
UI_COMPONENTS_NAVIGATION_BAR: '/ui/components/navigation-bar',
UI_COMPONENTS_NOTIFICATION_COUNTER: '/ui/components/notification-counter',
UI_COMPONENTS_OVERVIEW: '/ui/components/overview',
- UI_COMPONENTS_ROUNDED_LINK: '/ui/components/rounded-link',
UI_COMPONENTS_SEARCH_INPUT: '/ui/components/search-input',
UI_COMPONENTS_SECTION: '/ui/components/section',
UI_COMPONENTS_SETTINGS_ROW: '/ui/components/settings-row',
diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.md
index f5ff202d6b3..b45a02a5e8a 100644
--- a/packages/twenty-ui/CHANGELOG.md
+++ b/packages/twenty-ui/CHANGELOG.md
@@ -5,6 +5,7 @@
### Breaking Changes
- Removed `ColorSchemePicker`, `ColorSchemePickerProps`, and the app-specific `ColorScheme` type. Profile appearance settings now own the theme previews and preference choices, using `Radio` and `RadioGroup` for selection.
+- Removed `RoundedLink`. The Twenty frontend now owns the shared field and settings link adapter. Other applications can compose native anchors or use `Button` with `href`; `getSafeUrl` remains available from `twenty-ui/utilities`.
- Removed `CardPicker` and `CardPickerProps`. Use `Radio variant="card"` inside `RadioGroup` from `twenty-ui/primitives/input`. Card layout, selection, keyboard navigation, and form behavior are preserved.
- Removed `Info`, `InfoProps`, and `InfoAccent`. Use `InlineBanner` from `twenty-ui/components` with `variant="compact"`, `message`, and `color` to preserve wrapping and presentation. Its `button` supports native links through `href`, custom links through `render`, and button actions through `onClick`. The separately versioned Granola app must migrate its four Info-consuming files together with its `twenty-ui@^1.0.0-alpha.1` dependency upgrade.
diff --git a/packages/twenty-ui/docs/components.ts b/packages/twenty-ui/docs/components.ts
index c53a0685741..75ecff80973 100644
--- a/packages/twenty-ui/docs/components.ts
+++ b/packages/twenty-ui/docs/components.ts
@@ -16,7 +16,6 @@ import { MENU_ITEM_DRAGGABLE_PROP_DESCRIPTIONS } from './menuItemDraggablePropDe
import { MENU_ITEM_SUGGESTION_PROP_DESCRIPTIONS } from './menuItemSuggestionPropDescriptions';
import { MENU_PICKER_PROP_DESCRIPTIONS } from './menuPickerPropDescriptions';
import { NAVIGATION_BAR_PROP_DESCRIPTIONS } from './navigationBarPropDescriptions';
-import { ROUNDED_LINK_PROP_DESCRIPTIONS } from './roundedLinkPropDescriptions';
import { THEME_PROVIDER_PROP_DESCRIPTIONS } from './themeProviderPropDescriptions';
import { ICON_PROP_DESCRIPTIONS } from './iconPropDescriptions';
import { ICONS_PROVIDER_PROP_DESCRIPTIONS } from './iconsProviderPropDescriptions';
@@ -596,13 +595,6 @@ export const DOCUMENTED_COMPONENTS = [
slug: 'components/navigation-bar',
propDescriptions: NAVIGATION_BAR_PROP_DESCRIPTIONS,
},
- {
- name: 'RoundedLink',
- source: 'components/navigation/RoundedLink/RoundedLink.tsx',
- entryPoint: 'twenty-ui/components',
- slug: 'components/rounded-link',
- propDescriptions: ROUNDED_LINK_PROP_DESCRIPTIONS,
- },
{
name: 'ThemeProvider',
source: 'theme/ThemeProvider.tsx',
diff --git a/packages/twenty-ui/docs/label-ownership.md b/packages/twenty-ui/docs/label-ownership.md
index 69f640a8c53..c124abd78c9 100644
--- a/packages/twenty-ui/docs/label-ownership.md
+++ b/packages/twenty-ui/docs/label-ownership.md
@@ -17,5 +17,5 @@ This covers production exports under components, primitives, and icons, includin
| ResizeHandle and CodeEditor | ResizeHandle accepts native labels over `Resize`. CodeEditor exposes `resizeLabel` (default `Resize editor`) and Monaco `options`, including its editor accessible label. The loading indicator adds no text. Monaco owns its internal editor messages. |
| Input, Textarea, Select, Field, Slider, Radio, RadioGroup, Checkbox, Switch, SegmentedControl | Native attributes, compound label/description/error parts, options, and children belong to the caller. Browser validation messages remain browser-owned; Field.Error children or render content can replace them. |
| Dialog, AlertDialog, Popover, Tooltip, Tabs | Text belongs to title, description, close, trigger, tab, and popup parts. No built-in English action or status strings. |
-| Banner, InlineBanner, SettingsRow, Section, NavigationBar, RoundedLink, CommandBlock | Content and labels belong to supplied props or children. |
+| Banner, InlineBanner, SettingsRow, Section, NavigationBar, CommandBlock | Content and labels belong to supplied props or children. |
| Tag, Status, Pill, AvatarGroup, NotificationCounter, ColorSample, TintedIconTile, typography, layout and icon exports | Caller content, data values, native accessible attributes where supported, or decorative output. Loader and progress graphics add no built-in English loading message. |
diff --git a/packages/twenty-ui/docs/module-ownership.json b/packages/twenty-ui/docs/module-ownership.json
index db7c8dbee1b..e981c6aa2c3 100644
--- a/packages/twenty-ui/docs/module-ownership.json
+++ b/packages/twenty-ui/docs/module-ownership.json
@@ -60,7 +60,6 @@
"MenuPicker",
"NavigationBar",
"NotificationCounter",
- "RoundedLink",
"SearchInput",
"Section",
"SettingsRow",
diff --git a/packages/twenty-ui/docs/public-exports.json b/packages/twenty-ui/docs/public-exports.json
index 8255861cf01..c81c1ec24a4 100644
--- a/packages/twenty-ui/docs/public-exports.json
+++ b/packages/twenty-ui/docs/public-exports.json
@@ -32,7 +32,6 @@
"MenuPicker": "components/navigation/MenuPicker/MenuPicker",
"NavigationBar": "components/navigation/NavigationBar/NavigationBar",
"NotificationCounter": "components/data-display/NotificationCounter/NotificationCounter",
- "RoundedLink": "components/navigation/RoundedLink/RoundedLink",
"SearchInput": "components/input/SearchInput/SearchInput",
"Section": "components/layout/Section/Section",
"SettingsRow": "components/input/SettingsRow/SettingsRow",
diff --git a/packages/twenty-ui/docs/roundedLinkPropDescriptions.ts b/packages/twenty-ui/docs/roundedLinkPropDescriptions.ts
deleted file mode 100644
index 93d612e0195..00000000000
--- a/packages/twenty-ui/docs/roundedLinkPropDescriptions.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { type ComponentProps } from 'react';
-
-import { type RoundedLink } from '../src/components/navigation/RoundedLink/RoundedLink';
-
-export const ROUNDED_LINK_PROP_DESCRIPTIONS = {
- href: 'Destination URL, normalized by the safe-URL helper. Opens in a new tab.',
- label: 'Visible link text. An absent or empty label renders nothing.',
- color: 'Label text color: primary or secondary.',
- onClick: 'Click callback after propagation is stopped.',
- className: 'Class applied to the link.',
-} satisfies Partial<Record<keyof ComponentProps<typeof RoundedLink>, string>>;
diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.json
index ab827065582..cae5b3d429e 100644
--- a/packages/twenty-ui/generated/components.docs.json
+++ b/packages/twenty-ui/generated/components.docs.json
@@ -9123,48 +9123,6 @@
}
]
},
- {
- "name": "RoundedLink",
- "entryPoint": "twenty-ui/components",
- "slug": "components/rounded-link",
- "props": [
- {
- "name": "className",
- "type": "string",
- "required": false,
- "defaultValue": null,
- "description": "Class applied to the link."
- },
- {
- "name": "color",
- "type": "\"primary\" | \"secondary\"",
- "required": false,
- "defaultValue": "primary",
- "description": "Label text color: primary or secondary."
- },
- {
- "name": "href",
- "type": "string",
- "required": true,
- "defaultValue": null,
- "description": "Destination URL, normalized by the safe-URL helper. Opens in a new tab."
- },
- {
- "name": "label",
- "type": "string",
- "required": false,
- "defaultValue": null,
- "description": "Visible link text. An absent or empty label renders nothing."
- },
- {
- "name": "onClick",
- "type": "((event: MouseEvent<HTMLElement, MouseEvent>) => void)",
- "required": false,
- "defaultValue": null,
- "description": "Click callback after propagation is stopped."
- }
- ]
- },
{
"name": "ThemeProvider",
"entryPoint": "twenty-ui/theme",
diff --git a/packages/twenty-ui/src/components/index.ts b/packages/twenty-ui/src/components/index.ts
index 43edc9afde7..83875d40256 100644
--- a/packages/twenty-ui/src/components/index.ts
+++ b/packages/twenty-ui/src/components/index.ts
@@ -85,6 +85,5 @@ export type { MenuItemSuggestionProps } from './navigation/MenuItemSuggestion/ty
export { MenuPicker } from './navigation/MenuPicker/MenuPicker';
export type { MenuPickerProps } from './navigation/MenuPicker/types/MenuPickerProps';
export { NavigationBar } from './navigation/NavigationBar/NavigationBar';
-export { RoundedLink } from './navigation/RoundedLink/RoundedLink';
export { TabButton } from './navigation/TabButton/TabButton';
export type { TabButtonProps } from './navigation/TabButton/types/TabButtonProps';
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss
deleted file mode 100644
index c3b3ce2eece..00000000000
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-.root {
- align-items: center;
- background-color: var(--t-background-transparent-lighter);
- border: 1px solid var(--t-border-color-strong);
- border-radius: var(--t-border-radius-pill);
- corner-shape: round;
- // Height and max-width are sized against the content box.
- box-sizing: content-box;
- color: var(--t-font-color-primary);
- cursor: pointer;
- display: inline-flex;
- font-weight: var(--t-font-size-md);
- gap: var(--t-spacing-1);
- height: 10px;
- justify-content: center;
- max-width: calc(100% - var(--t-spacing-multiplicator) * 2px);
- min-width: fit-content;
- overflow: hidden;
- padding: var(--t-spacing-1) var(--t-spacing-2);
- text-decoration: none;
- text-overflow: ellipsis;
- user-select: none;
- white-space: nowrap;
-
- &[data-color='secondary'] {
- color: var(--t-font-color-secondary);
- }
-
- &:hover {
- background-color: var(--t-background-transparent-light);
- }
-
- &:active {
- background-color: var(--t-background-transparent-medium);
- }
-}
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss.d.ts b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss.d.ts
deleted file mode 100644
index 4d6743c3dcd..00000000000
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.module.scss.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare const classNames: {
- readonly root: 'root';
-};
-export default classNames;
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx b/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx
deleted file mode 100644
index 2708dfddc0c..00000000000
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/RoundedLink.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { isNonEmptyString } from '@sniptt/guards';
-import { clsx } from 'clsx';
-import { type MouseEvent } from 'react';
-
-import { getSafeUrl } from '@ui/utilities/utils/getSafeUrl';
-
-import styles from './RoundedLink.module.scss';
-
-type RoundedLinkProps = {
- href: string;
- label?: string;
- color?: 'primary' | 'secondary';
- onClick?: (event: React.MouseEvent<HTMLElement>) => void;
- className?: string;
-};
-
-export const RoundedLink = ({
- label,
- href,
- color = 'primary',
- onClick,
- className,
-}: RoundedLinkProps) => {
- if (!isNonEmptyString(label)) {
- return <></>;
- }
-
- const handleClick = (event: MouseEvent<HTMLElement>) => {
- event.stopPropagation();
- onClick?.(event);
- };
-
- return (
- <a
- href={getSafeUrl(href)}
- target="_blank"
- rel="noreferrer"
- onClick={handleClick}
- data-color={color}
- className={clsx(styles.root, className)}
- >
- {label}
- </a>
- );
-};
diff --git a/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx b/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx
deleted file mode 100644
index b1744ca1c87..00000000000
--- a/packages/twenty-ui/src/components/navigation/RoundedLink/__stories__/RoundedLink.stories.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { type MouseEvent } from 'react';
-import { type Meta, type StoryObj } from '@storybook/react-vite';
-import { expect, fn, userEvent, within } from 'storybook/test';
-
-import { RoundedLink } from '@ui/components/navigation/RoundedLink/RoundedLink';
-import { ComponentDecorator } from '@ui/testing';
-
-const meta: Meta<typeof RoundedLink> = {
- title: 'UI/Navigation/Link/RoundedLink',
- component: RoundedLink,
- decorators: [ComponentDecorator],
- args: {
- href: '/test',
- label: 'Rounded chip',
- },
-};
-
-export default meta;
-type Story = StoryObj<typeof RoundedLink>;
-const handleClick = fn((event: MouseEvent<HTMLElement>) => {
- event.preventDefault();
-});
-
-export const Default: Story = {
- args: {
- onClick: handleClick,
- },
- play: async ({ canvasElement }) => {
- const canvas = within(canvasElement);
-
- await expect(handleClick).toHaveBeenCalledTimes(0);
- const link = canvas.getByRole('link', { name: 'Rounded chip' });
-
- await expect(link).toHaveAttribute('href', '/test');
- await userEvent.click(link);
-
- await expect(handleClick).toHaveBeenCalledTimes(1);
- },
-};
-
-export const Secondary: Story = {
- args: {
- color: 'secondary',
- },
-};