The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Rework website PipelineVisual to match twenty-front kanban (#21989)
Abdullah.c98620e14cef
diff --git a/packages/twenty-website/src/app-preview/pages/dashboard/DashboardCharts.tsx b/packages/twenty-website/src/app-preview/pages/dashboard/DashboardCharts.tsxindex a131bd66576..3289b90e63a 100644--- a/packages/twenty-website/src/app-preview/pages/dashboard/DashboardCharts.tsx+++ b/packages/twenty-website/src/app-preview/pages/dashboard/DashboardCharts.tsx@@ -25,7 +25,7 @@ const ChartFrame = styled.div`const AxisLabel = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 10px;line-height: 1;overflow: hidden;@@ -299,7 +299,7 @@ const DonutCenter = styled.div`const DonutValue = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 22px;font-weight: ${THEME_LIGHT.font.weight.semiBold};line-height: 1;@@ -307,7 +307,7 @@ const DonutValue = styled.span`const DonutLabel = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 11px;line-height: 1.4;`;@@ -337,7 +337,7 @@ const LegendDot = styled.span<{ $color: string }>`const LegendLabel = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;overflow: hidden;text-overflow: ellipsis;diff --git a/packages/twenty-website/src/app-preview/pages/dashboard/DashboardPage.tsx b/packages/twenty-website/src/app-preview/pages/dashboard/DashboardPage.tsxindex b9b73d35586..922c4056ce1 100644--- a/packages/twenty-website/src/app-preview/pages/dashboard/DashboardPage.tsx+++ b/packages/twenty-website/src/app-preview/pages/dashboard/DashboardPage.tsx@@ -67,7 +67,7 @@ const WidgetCard = styled.div`const WidgetTitle = styled.span`color: ${THEME_LIGHT.font.color.primary};flex-shrink: 0;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -102,7 +102,7 @@ const KpiValueRow = styled.div`const KpiValue = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 25px;font-weight: ${THEME_LIGHT.font.weight.semiBold};line-height: 1.1;@@ -116,7 +116,7 @@ const KpiTrend = styled.span<{ $up: boolean }>`: APP_PREVIEW_TONES.dashboardChart.trendDown};display: inline-flex;flex-shrink: 0;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: ${THEME_LIGHT.font.weight.medium};gap: 2px;diff --git a/packages/twenty-website/src/app-preview/pages/kanban/KanbanCard.tsx b/packages/twenty-website/src/app-preview/pages/kanban/KanbanCard.tsxindex 2a0619dae93..3b30b5cb055 100644--- a/packages/twenty-website/src/app-preview/pages/kanban/KanbanCard.tsx+++ b/packages/twenty-website/src/app-preview/pages/kanban/KanbanCard.tsx@@ -147,7 +147,7 @@ const FieldValueWrap = styled.div`const FieldText = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/pages/kanban/KanbanLane.tsx b/packages/twenty-website/src/app-preview/pages/kanban/KanbanLane.tsxindex 98b84ee5d0f..bd398a074db 100644--- a/packages/twenty-website/src/app-preview/pages/kanban/KanbanLane.tsx+++ b/packages/twenty-website/src/app-preview/pages/kanban/KanbanLane.tsx@@ -50,7 +50,7 @@ const LaneTag = styled.span`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.tag.text.gray};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};height: 20px;@@ -78,7 +78,7 @@ const LaneTag = styled.span`const LaneCount = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};line-height: 1.4;@@ -98,7 +98,7 @@ const AddCardButton = styled.div`align-items: center;color: ${THEME_LIGHT.font.color.tertiary};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};gap: 4px;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordCalendar.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordCalendar.tsxindex e93a325ae16..eabf297066b 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordCalendar.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordCalendar.tsx@@ -40,7 +40,7 @@ const DayBadge = styled.div`const WeekDay = styled.div`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 10px;font-weight: 600;letter-spacing: 0.04em;@@ -49,7 +49,7 @@ const WeekDay = styled.div`const MonthDay = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 14px;font-weight: 500;`;@@ -91,14 +91,14 @@ const CalTime = styled.div`color: ${THEME_LIGHT.font.color.tertiary};display: flex;flex-shrink: 0;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;gap: 4px;`;const CalTitle = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;overflow: hidden;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordEmails.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordEmails.tsxindex 8db22f76ea6..3fb8be3067a 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordEmails.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordEmails.tsx@@ -16,7 +16,7 @@ const EmailHeading = styled.div`const SenderNames = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;margin: 0 6px;overflow: hidden;@@ -26,7 +26,7 @@ const SenderNames = styled.span`const ThreadCount = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;`;@@ -40,7 +40,7 @@ const SubjectBody = styled.div`const EmailSubject = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;overflow: hidden;text-overflow: ellipsis;@@ -50,7 +50,7 @@ const EmailSubject = styled.span`const EmailBody = styled.span`color: ${THEME_LIGHT.font.color.tertiary};flex: 1;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;overflow: hidden;text-overflow: ellipsis;@@ -60,7 +60,7 @@ const EmailBody = styled.span`const ReceivedAt = styled.span`color: ${THEME_LIGHT.font.color.tertiary};flex-shrink: 0;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;padding: 0 4px;white-space: nowrap;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordFieldValue.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordFieldValue.tsxindex 53c4ee452b2..69ead9d802f 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordFieldValue.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordFieldValue.tsx@@ -25,7 +25,7 @@ const FieldValueSlot = styled.div`const FieldValue = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.4;min-width: 0;@@ -38,7 +38,7 @@ const FieldValuePerson = styled.span`align-items: center;color: ${THEME_LIGHT.font.color.primary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;gap: 4px;line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordFiles.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordFiles.tsxindex 687eb48a7aa..2efa9e5cbfe 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordFiles.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordFiles.tsx@@ -38,7 +38,7 @@ const FileIconChip = styled.span<{ $color: string }>`const FileName = styled.span`color: ${THEME_LIGHT.font.color.primary};flex: 1;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;overflow: hidden;text-overflow: ellipsis;@@ -56,7 +56,7 @@ const FileDate = styled.span`const FileDateText = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;white-space: nowrap;`;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordNotes.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordNotes.tsxindex 1bf973bbcda..fae17a4c7a7 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordNotes.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordNotes.tsx@@ -17,14 +17,14 @@ const NotesHeader = styled.div`const NotesCount = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 600;`;const AddNoteButton = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.4;`;@@ -99,7 +99,7 @@ const NoteContent = styled.div`const NoteTitle = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 14px;font-weight: 500;line-height: 1.35;@@ -107,7 +107,7 @@ const NoteTitle = styled.div`const NoteBody = styled.div`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.5;overflow: hidden;@@ -133,14 +133,14 @@ const NoteRelationArrow = styled.svg`const NoteRelationLabel = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;line-height: 1.4;`;const NoteRelationName = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;line-height: 1.4;`;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordPage.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordPage.tsxindex 996d42653a1..8ab7821a061 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordPage.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordPage.tsx@@ -66,7 +66,7 @@ const RecordHeader = styled.div``;const RecordName = styled.div`- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 20px;font-weight: 600;color: ${THEME_LIGHT.font.color.primary};@@ -76,7 +76,7 @@ const RecordName = styled.div`const RecordMeta = styled.div`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.4;`;@@ -135,7 +135,7 @@ const FieldIcon = styled.span`const FieldLabel = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.4;overflow: hidden;@@ -149,7 +149,7 @@ const MoreToggle = styled.div`color: ${THEME_LIGHT.font.color.tertiary};cursor: default;display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;gap: 4px;line-height: 1.4;@@ -182,7 +182,7 @@ const RelationSection = styled.div`const RelationTitle = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: 500;line-height: 1.4;@@ -215,7 +215,7 @@ const RelationItem = styled.div<{ $highlighted?: boolean; $muted?: boolean }>`const RelationName = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;line-height: 1.4;overflow: hidden;@@ -290,7 +290,7 @@ const Tab = styled.div<{ $active?: boolean; $clickable?: boolean }>`const TabInner = styled.span`display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;gap: 4px;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordPanelChrome.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordPanelChrome.tsxindex 388b7648bc0..199d8623fc5 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordPanelChrome.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordPanelChrome.tsx@@ -29,14 +29,14 @@ const TabHeaderLabel = styled.span`const TabHeaderTitle = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 600;`;const TabHeaderCount = styled.span`color: ${THEME_LIGHT.font.color.light};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;margin-left: 8px;`;@@ -47,7 +47,7 @@ const TabAddButton = styled.span`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.font.color.secondary};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;gap: 4px;height: 26px;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordTasks.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordTasks.tsxindex ae3aa148425..1b0efb18fe5 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordTasks.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordTasks.tsx@@ -32,7 +32,7 @@ const TaskCheckbox = styled.span<{ $done?: boolean }>`const TaskTitle = styled.span<{ $done?: boolean }>`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;overflow: hidden;@@ -44,7 +44,7 @@ const TaskTitle = styled.span<{ $done?: boolean }>`const TaskBody = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;overflow: hidden;text-overflow: ellipsis;@@ -63,7 +63,7 @@ const DueDate = styled.span`align-items: center;color: ${THEME_LIGHT.font.color.secondary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;gap: 4px;white-space: nowrap;@@ -76,7 +76,7 @@ const TargetChip = styled.span`border-radius: 50px;color: ${THEME_LIGHT.font.color.primary};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;gap: 4px;max-width: 160px;diff --git a/packages/twenty-website/src/app-preview/pages/record/RecordTimeline.tsx b/packages/twenty-website/src/app-preview/pages/record/RecordTimeline.tsxindex 9101745483c..9711ced0856 100644--- a/packages/twenty-website/src/app-preview/pages/record/RecordTimeline.tsx+++ b/packages/twenty-website/src/app-preview/pages/record/RecordTimeline.tsx@@ -30,7 +30,7 @@ const MonthSeparator = styled.div`align-items: center;color: ${THEME_LIGHT.font.color.light};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: 600;gap: 16px;@@ -135,7 +135,7 @@ const TimelineSummaryLeft = styled.div`const TimelineActor = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;white-space: nowrap;@@ -143,14 +143,14 @@ const TimelineActor = styled.span`const TimelineAction = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;white-space: nowrap;`;const TimelineSubject = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;white-space: nowrap;@@ -158,20 +158,20 @@ const TimelineSubject = styled.span`const TimelineDiffLabel = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;white-space: nowrap;`;const TimelineArrow = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;`;const TimelineValueText = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;white-space: nowrap;`;@@ -184,7 +184,7 @@ const TimelineDiffPerson = styled.span`const TimelineLinkedTitle = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;overflow: hidden;text-decoration: underline;@@ -195,7 +195,7 @@ const TimelineLinkedTitle = styled.span`const TimelineTime = styled.span`color: ${THEME_LIGHT.font.color.tertiary};flex-shrink: 0;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;padding-left: 8px;white-space: nowrap;@@ -238,14 +238,14 @@ const TimelineDiffRow = styled.div`const TimelineCardTitle = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;`;const TimelineCardText = styled.div`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;line-height: 1.4;`;diff --git a/packages/twenty-website/src/app-preview/pages/table/TableCellValue.tsx b/packages/twenty-website/src/app-preview/pages/table/TableCellValue.tsxindex 33d1ffda5c5..bdcaad9760e 100644--- a/packages/twenty-website/src/app-preview/pages/table/TableCellValue.tsx+++ b/packages/twenty-website/src/app-preview/pages/table/TableCellValue.tsx@@ -52,7 +52,7 @@ const CellHoverAnchor = styled.div`const InlineText = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/pages/table/TablePage.tsx b/packages/twenty-website/src/app-preview/pages/table/TablePage.tsxindex 2e3a61003e5..8b1d37e12fc 100644--- a/packages/twenty-website/src/app-preview/pages/table/TablePage.tsx+++ b/packages/twenty-website/src/app-preview/pages/table/TablePage.tsx@@ -174,7 +174,7 @@ const HeaderCellContent = styled.div`const HeaderLabel = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -186,7 +186,7 @@ const HeaderLabel = styled.span`const MutedText = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowBranchLabel.tsx b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowBranchLabel.tsxindex b33b9bd9cda..c1cae391ad9 100644--- a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowBranchLabel.tsx+++ b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowBranchLabel.tsx@@ -17,7 +17,7 @@ const BranchLabelPill = styled.div<{ $centered?: boolean }>`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${colors.textLight};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 11px;font-weight: ${THEME_LIGHT.font.weight.semiBold};height: 20px;diff --git a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowNode.tsx b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowNode.tsxindex 9c0f914fc89..21c351ff6c1 100644--- a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowNode.tsx+++ b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowNode.tsx@@ -114,7 +114,7 @@ const NodeContent = styled.div`const NodeLabel = styled.div`color: ${colors.textLight};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 11px;font-weight: ${THEME_LIGHT.font.weight.semiBold};line-height: 1;@@ -122,7 +122,7 @@ const NodeLabel = styled.div`const NodeTitle = styled.div`color: ${colors.textPrimary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowPage.tsx b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowPage.tsxindex daa894cd005..e099da6f2ff 100644--- a/packages/twenty-website/src/app-preview/pages/workflow/WorkflowPage.tsx+++ b/packages/twenty-website/src/app-preview/pages/workflow/WorkflowPage.tsx@@ -78,7 +78,7 @@ const ActiveBadgeLabel = styled.span`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${colors.activeBadgeText};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};height: 20px;diff --git a/packages/twenty-website/src/app-preview/primitives/Chip.tsx b/packages/twenty-website/src/app-preview/primitives/Chip.tsxindex 83df9442764..839fafdc691 100644--- a/packages/twenty-website/src/app-preview/primitives/Chip.tsx+++ b/packages/twenty-website/src/app-preview/primitives/Chip.tsx@@ -44,7 +44,7 @@ const StyledContainer = styled.div<{ $maxWidth?: number }>`color: ${THEME_LIGHT.font.color.primary};cursor: inherit;display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};gap: ${THEME_LIGHT.spacing(1)};diff --git a/packages/twenty-website/src/app-preview/primitives/FaviconLogo.tsx b/packages/twenty-website/src/app-preview/primitives/FaviconLogo.tsxindex eaf28f607c9..9408a06af60 100644--- a/packages/twenty-website/src/app-preview/primitives/FaviconLogo.tsx+++ b/packages/twenty-website/src/app-preview/primitives/FaviconLogo.tsx@@ -16,7 +16,7 @@ const FaviconFrame = styled.div<{ $size: number }>`border-radius: ${THEME_LIGHT.border.radius.xs};display: flex;flex: 0 0 auto;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${({ $size }) => ($size <= 14 ? '8px' : '9px')};font-weight: ${THEME_LIGHT.font.weight.semiBold};height: ${({ $size }) => `${$size}px`};diff --git a/packages/twenty-website/src/app-preview/primitives/PreviewAvatar.tsx b/packages/twenty-website/src/app-preview/primitives/PreviewAvatar.tsxindex e42090fe5a6..2f79aee79c5 100644--- a/packages/twenty-website/src/app-preview/primitives/PreviewAvatar.tsx+++ b/packages/twenty-website/src/app-preview/primitives/PreviewAvatar.tsx@@ -13,7 +13,7 @@ const AvatarFrame = styled.div<{ $size: number }>`color: ${THEME_LIGHT.color.gray12};display: flex;flex: 0 0 auto;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${({ $size }) =>$size <= 12 ? '8px' : $size <= 14 ? '10px' : '12px'};font-weight: ${THEME_LIGHT.font.weight.medium};diff --git a/packages/twenty-website/src/app-preview/primitives/PreviewIcon.tsx b/packages/twenty-website/src/app-preview/primitives/PreviewIcon.tsxindex 9fd242a232e..17f0c1f84f6 100644--- a/packages/twenty-website/src/app-preview/primitives/PreviewIcon.tsx+++ b/packages/twenty-website/src/app-preview/primitives/PreviewIcon.tsx@@ -102,7 +102,7 @@ const SidebarAvatar = styled.div<{color: ${({ $color }) => $color};display: flex;flex: 0 0 auto;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 10px;font-weight: ${THEME_LIGHT.font.weight.medium};height: 16px;diff --git a/packages/twenty-website/src/app-preview/primitives/PreviewRoundedLink.tsx b/packages/twenty-website/src/app-preview/primitives/PreviewRoundedLink.tsxindex d90bb520d04..58024d17719 100644--- a/packages/twenty-website/src/app-preview/primitives/PreviewRoundedLink.tsx+++ b/packages/twenty-website/src/app-preview/primitives/PreviewRoundedLink.tsx@@ -11,7 +11,7 @@ const LinkPill = styled.span`border-radius: ${THEME_LIGHT.border.radius.pill};color: ${THEME_LIGHT.font.color.primary};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};gap: ${APP_PREVIEW_CHROME.spacingBasePx}px;diff --git a/packages/twenty-website/src/app-preview/primitives/PreviewTag.tsx b/packages/twenty-website/src/app-preview/primitives/PreviewTag.tsxindex f58fad7ceb2..9a1acda2f86 100644--- a/packages/twenty-website/src/app-preview/primitives/PreviewTag.tsx+++ b/packages/twenty-website/src/app-preview/primitives/PreviewTag.tsx@@ -10,7 +10,7 @@ const TagPill = styled.span<{ $background: string; $color: string }>`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${({ $color }) => $color};display: inline-flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};height: ${THEME_LIGHT.spacing(5)};diff --git a/packages/twenty-website/src/app-preview/product-visual/AiPanel.tsx b/packages/twenty-website/src/app-preview/product-visual/AiPanel.tsxindex 0cdce75679f..04e072b9386 100644--- a/packages/twenty-website/src/app-preview/product-visual/AiPanel.tsx+++ b/packages/twenty-website/src/app-preview/product-visual/AiPanel.tsx@@ -59,7 +59,7 @@ const HeaderButton = styled.span`const PanelTitle = styled.span`color: ${THEME_LIGHT.font.color.primary};flex: 1;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 600;text-align: left;@@ -79,7 +79,7 @@ const UserMessage = styled.div`background: ${inks.userMessageBackground};border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;line-height: 1.5;@@ -89,7 +89,7 @@ const UserMessage = styled.div`const AnswerText = styled.div`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 400;line-height: 1.5;@@ -141,7 +141,7 @@ const EntityChipIcon = styled.img`const EntityChipName = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 400;line-height: 1.4;@@ -154,7 +154,7 @@ const EntityOverflowChip = styled.div`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.font.color.secondary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 500;line-height: 1.4;@@ -163,7 +163,7 @@ const EntityOverflowChip = styled.div`const ThinkingText = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: 500;`;@@ -190,7 +190,7 @@ const InputBox = styled.div`const InputPlaceholder = styled.span`color: ${THEME_LIGHT.font.color.light};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 13px;font-weight: 400;padding: 4px 0;@@ -221,7 +221,7 @@ const ModelChip = styled.span`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.font.color.primary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;gap: 4px;padding: 4px 8px;diff --git a/packages/twenty-website/src/app-preview/product-visual/AiSteps.tsx b/packages/twenty-website/src/app-preview/product-visual/AiSteps.tsxindex dd15cddec92..f7793279156 100644--- a/packages/twenty-website/src/app-preview/product-visual/AiSteps.tsx+++ b/packages/twenty-website/src/app-preview/product-visual/AiSteps.tsx@@ -69,7 +69,7 @@ const SummaryButton = styled.button`color: ${THEME_LIGHT.font.color.tertiary};cursor: pointer;display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;gap: 8px;min-height: 18px;padding: 0;@@ -122,7 +122,7 @@ const StepLoaderIcon = styled.span`const StepLabel = styled.span`color: ${THEME_LIGHT.font.color.tertiary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: 400;line-height: 18px;diff --git a/packages/twenty-website/src/app-preview/shell/PreviewNavbar.tsx b/packages/twenty-website/src/app-preview/shell/PreviewNavbar.tsxindex 18c43a31d4f..f845e352c3a 100644--- a/packages/twenty-website/src/app-preview/shell/PreviewNavbar.tsx+++ b/packages/twenty-website/src/app-preview/shell/PreviewNavbar.tsx@@ -81,7 +81,7 @@ const BreadcrumbIconSlot = styled.span`const CrumbLabel = styled.span`color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -119,7 +119,7 @@ const ActionButton = styled.div<{ $iconOnly?: boolean }>`border-radius: ${THEME_LIGHT.border.radius.sm};display: inline-flex;flex: 0 1 auto;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};gap: ${APP_PREVIEW_CHROME.spacingBasePx}px;diff --git a/packages/twenty-website/src/app-preview/shell/PreviewSidebar.tsx b/packages/twenty-website/src/app-preview/shell/PreviewSidebar.tsxindex 19cf358c6c8..c652533b6b7 100644--- a/packages/twenty-website/src/app-preview/shell/PreviewSidebar.tsx+++ b/packages/twenty-website/src/app-preview/shell/PreviewSidebar.tsx@@ -77,7 +77,7 @@ const WorkspaceName = styled.span`[data-desktop-mode='expanded'] & {display: block;color: ${THEME_LIGHT.font.color.primary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -119,7 +119,7 @@ const SectionLabelRow = styled.div`const SectionLabel = styled.span`color: ${THEME_LIGHT.font.color.light};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 11px;font-weight: ${THEME_LIGHT.font.weight.semiBold};line-height: 1;diff --git a/packages/twenty-website/src/app-preview/shell/PreviewViewbar.tsx b/packages/twenty-website/src/app-preview/shell/PreviewViewbar.tsxindex fdc091e35a4..85643a79925 100644--- a/packages/twenty-website/src/app-preview/shell/PreviewViewbar.tsx+++ b/packages/twenty-website/src/app-preview/shell/PreviewViewbar.tsx@@ -40,7 +40,7 @@ const ViewSwitcher = styled.div<{ $tableAligned?: boolean }>`const ViewName = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -49,7 +49,7 @@ const ViewName = styled.span`const ViewCount = styled.span`color: ${THEME_LIGHT.font.color.light};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -82,7 +82,7 @@ const ViewAction = styled.span`border-radius: ${THEME_LIGHT.border.radius.sm};color: ${THEME_LIGHT.font.color.secondary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.regular};height: 24px;diff --git a/packages/twenty-website/src/app-preview/shell/SidebarControls.tsx b/packages/twenty-website/src/app-preview/shell/SidebarControls.tsxindex d1db4f3c7a1..f83dda62ce8 100644--- a/packages/twenty-website/src/app-preview/shell/SidebarControls.tsx+++ b/packages/twenty-website/src/app-preview/shell/SidebarControls.tsx@@ -74,7 +74,7 @@ const NewChatLabel = styled.span`${mediaUp('md')} {display: block;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/shell/SidebarFolder.tsx b/packages/twenty-website/src/app-preview/shell/SidebarFolder.tsxindex 73e52320b91..2b2e1da2f7e 100644--- a/packages/twenty-website/src/app-preview/shell/SidebarFolder.tsx+++ b/packages/twenty-website/src/app-preview/shell/SidebarFolder.tsx@@ -44,7 +44,7 @@ const FolderRowMain = styled.div`const FolderText = styled.span`color: ${THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/shell/SidebarItem.tsx b/packages/twenty-website/src/app-preview/shell/SidebarItem.tsxindex 8985f6b5bad..bd2c7754442 100644--- a/packages/twenty-website/src/app-preview/shell/SidebarItem.tsx+++ b/packages/twenty-website/src/app-preview/shell/SidebarItem.tsx@@ -94,7 +94,7 @@ const ItemLabel = styled.span<{ $active?: boolean }>`$active? THEME_LIGHT.font.color.primary: THEME_LIGHT.font.color.secondary};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;@@ -106,7 +106,7 @@ const ItemLabel = styled.span<{ $active?: boolean }>`const ItemMeta = styled.span`color: ${THEME_LIGHT.font.color.light};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};font-weight: ${THEME_LIGHT.font.weight.medium};line-height: 1.4;diff --git a/packages/twenty-website/src/app-preview/stage/WindowBar.tsx b/packages/twenty-website/src/app-preview/stage/WindowBar.tsxindex b7b649c64bf..d2abb3de6e4 100644--- a/packages/twenty-website/src/app-preview/stage/WindowBar.tsx+++ b/packages/twenty-website/src/app-preview/stage/WindowBar.tsx@@ -25,7 +25,7 @@ const BarRoot = styled.div<{ $grabbable?: boolean; $isDragging?: boolean }>`const Title = styled.span`color: ${stage.titleColor};- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;font-size: 12px;font-weight: ${THEME_LIGHT.font.weight.medium};justify-self: center;diff --git a/packages/twenty-website/src/app/[locale]/layout.tsx b/packages/twenty-website/src/app/[locale]/layout.tsxindex dd1bbbea88a..692fca6678b 100644--- a/packages/twenty-website/src/app/[locale]/layout.tsx+++ b/packages/twenty-website/src/app/[locale]/layout.tsx@@ -1,5 +1,6 @@import { css } from '@linaria/core';import { Aleo, Azeret_Mono, Host_Grotesk, VT323 } from 'next/font/google';+import localFont from 'next/font/local';import { type ReactNode } from 'react';import { getLocaleMessages } from '@/platform/i18n/get-locale-messages';@@ -42,6 +43,32 @@ const vt323 = VT323({display: 'swap',});+// Inter is twenty-front's product font; the app-preview/CRM mockups render in it+// (exposed as --font-product so the preview surfaces can rebind to it). Pinned to+// the exact classic Inter (v12, weights 400/500/600) twenty-front self-hosts, so+// the mockups match the product pixel-for-pixel rather than Google's current Inter.+const inter = localFont({+ src: [+ {+ path: '../../fonts/inter-latin-400.woff2',+ weight: '400',+ style: 'normal',+ },+ {+ path: '../../fonts/inter-latin-500.woff2',+ weight: '500',+ style: 'normal',+ },+ {+ path: '../../fonts/inter-latin-600.woff2',+ weight: '600',+ style: 'normal',+ },+ ],+ variable: '--font-product',+ display: 'swap',+});+const globalStyles = css`/* One root rule instead of per-component guards: motion collapses toinstant for users who prefer reduced motion. State still applies;@@ -93,7 +120,7 @@ const LocaleLayout = async ({return (<html lang={locale}><body- className={`${tokenCssVariables} ${globalStyles} ${hostGrotesk.variable} ${aleo.variable} ${azeretMono.variable} ${vt323.variable}`}+ className={`${tokenCssVariables} ${globalStyles} ${hostGrotesk.variable} ${aleo.variable} ${azeretMono.variable} ${vt323.variable} ${inter.variable}`}><I18nProvider locale={locale} messages={getLocaleMessages(locale)}><ContactCalModalRoot>{children}</ContactCalModalRoot>diff --git a/packages/twenty-website/src/fonts/inter-latin-400.woff2 b/packages/twenty-website/src/fonts/inter-latin-400.woff2new file mode 100644index 00000000000..c659f5e4a12Binary files /dev/null and b/packages/twenty-website/src/fonts/inter-latin-400.woff2 differdiff --git a/packages/twenty-website/src/fonts/inter-latin-500.woff2 b/packages/twenty-website/src/fonts/inter-latin-500.woff2new file mode 100644index 00000000000..6fc94ad0ccdBinary files /dev/null and b/packages/twenty-website/src/fonts/inter-latin-500.woff2 differdiff --git a/packages/twenty-website/src/fonts/inter-latin-600.woff2 b/packages/twenty-website/src/fonts/inter-latin-600.woff2new file mode 100644index 00000000000..bc76d107f6fBinary files /dev/null and b/packages/twenty-website/src/fonts/inter-latin-600.woff2 differdiff --git a/packages/twenty-website/src/sections/feature-cards/live-data/LiveDataTable.tsx b/packages/twenty-website/src/sections/feature-cards/live-data/LiveDataTable.tsxindex bd991b6f8b6..f3e5a8e2831 100644--- a/packages/twenty-website/src/sections/feature-cards/live-data/LiveDataTable.tsx+++ b/packages/twenty-website/src/sections/feature-cards/live-data/LiveDataTable.tsx@@ -23,7 +23,7 @@ import { LIVE_DATA_SCENE } from '@/tokens/feature-scenes/live-data-scene';// scene's own.const theme = THEME_LIGHT;const SCENE = LIVE_DATA_SCENE;-const APP_FONT = theme.font.family;+const APP_FONT = 'var(--font-product), sans-serif';const TABLE_CELL_HORIZONTAL_PADDING = 8;const TABLER_STROKE = 1.6;const DEFAULT_TABLE_WIDTH = 520;diff --git a/packages/twenty-website/src/sections/product-feature/ContactsVisual.tsx b/packages/twenty-website/src/sections/product-feature/ContactsVisual.tsxindex 598910b01cf..44ff83f67f0 100644--- a/packages/twenty-website/src/sections/product-feature/ContactsVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/ContactsVisual.tsx@@ -35,7 +35,7 @@ const Root = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;flex-direction: column;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;overflow: hidden;width: 100%;diff --git a/packages/twenty-website/src/sections/product-feature/DashboardVisual.tsx b/packages/twenty-website/src/sections/product-feature/DashboardVisual.tsxindex 6c43bc2b513..542f7deeb74 100644--- a/packages/twenty-website/src/sections/product-feature/DashboardVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/DashboardVisual.tsx@@ -19,7 +19,7 @@ const Window = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;flex-direction: column;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;overflow: hidden;width: 100%;diff --git a/packages/twenty-website/src/sections/product-feature/EmailsVisual.tsx b/packages/twenty-website/src/sections/product-feature/EmailsVisual.tsxindex 7238fcab24c..a7cfd7c22fc 100644--- a/packages/twenty-website/src/sections/product-feature/EmailsVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/EmailsVisual.tsx@@ -54,7 +54,7 @@ const Root = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;flex-direction: column;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;overflow: hidden;width: 100%;diff --git a/packages/twenty-website/src/sections/product-feature/FilesVisual.tsx b/packages/twenty-website/src/sections/product-feature/FilesVisual.tsxindex be65cbf878b..c49ad776207 100644--- a/packages/twenty-website/src/sections/product-feature/FilesVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/FilesVisual.tsx@@ -42,7 +42,7 @@ const Root = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;flex-direction: column;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;overflow: hidden;width: 100%;diff --git a/packages/twenty-website/src/sections/product-feature/ImportVisual.tsx b/packages/twenty-website/src/sections/product-feature/ImportVisual.tsxindex e865dfbb3f3..2c307c58e0a 100644--- a/packages/twenty-website/src/sections/product-feature/ImportVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/ImportVisual.tsx@@ -47,7 +47,7 @@ const MAPPINGS: {const Root = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;justify-content: center;overflow: hidden;diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual.tsxdeleted file mode 100644index 98f8e84888e..00000000000--- a/packages/twenty-website/src/sections/product-feature/PipelineVisual.tsx+++ /dev/null@@ -1,774 +0,0 @@-'use client';--import { styled } from '@linaria/react';-import {- IconBuildingSkyscraper,- IconCalendarEvent,- IconCurrencyDollar,- IconId,- IconLayoutKanban,- IconPlus,- IconStar,- IconUser,- IconUserCircle,-} from '@tabler/icons-react';-import {- type ComponentType,- type ReactNode,- type PointerEvent as ReactPointerEvent,- useEffect,- useLayoutEffect,- useRef,- useState,-} from 'react';-import { THEME_LIGHT } from 'twenty-ui/theme';--import { sharedAssetUrls } from '@/app-preview/data/shared-asset-urls';-import { previewFontSize } from '@/app-preview/preview-font-size';-import { Chip } from '@/app-preview/primitives/Chip';-import { FaviconLogo } from '@/app-preview/primitives/FaviconLogo';-import { PersonAvatar } from '@/app-preview/primitives/PersonAvatar';-import { PreviewTag } from '@/app-preview/primitives/PreviewTag';-import { type CellSelectColor } from '@/app-preview/types';-import { RatingStar } from '@/icons';-import { clampToRange } from '@/platform/motion';-import { EASING } from '@/tokens';--import {- movePipelineCard,- type PipelineCardId,- type PipelineLaneIndex,- type PipelineLanes,-} from './pipeline-move-card';--const CARD_DROP_MS = 300;--const STAR_POSITIONS = [1, 2, 3, 4, 5];--type DealPerson = {- avatarUrl: string;- name: string;-};--type DealCompany = {- domain: string;- name: string;-};--type DealData = {- amount: string;- company: DealCompany;- contact: DealPerson;- date: string;- id: PipelineCardId;- owner: DealPerson;- rating: number;- recordId: string;- title: string;-};--const PEOPLE = sharedAssetUrls.peopleAvatars;--const CARDS: Record<PipelineCardId, DealData> = {- github: {- amount: '$6,562.04',- company: { domain: 'github.com', name: 'Github' },- contact: { avatarUrl: PEOPLE.chrisWanstrath, name: 'Chris Wanstrath' },- date: 'Jun 16, 2023',- id: 'github',- owner: { avatarUrl: PEOPLE.eddyCue, name: 'Eddy Cue' },- rating: 2,- recordId: 'OPP-1',- title: 'Platform Expansion',- },- figma: {- amount: '$8,250.00',- company: { domain: 'figma.com', name: 'Figma' },- contact: { avatarUrl: PEOPLE.dylanField, name: 'Dylan Field' },- date: 'Jun 21, 2023',- id: 'figma',- owner: { avatarUrl: PEOPLE.jeffWilliams, name: 'Jeff Williams' },- rating: 2,- recordId: 'OPP-2',- title: 'Design Tooling',- },- airbnb: {- amount: '$2,433.89',- company: { domain: 'airbnb.com', name: 'Airbnb' },- contact: { avatarUrl: PEOPLE.brianChesky, name: 'Brian Chesky' },- date: 'Jun 6, 2023',- id: 'airbnb',- owner: { avatarUrl: PEOPLE.katherineAdams, name: 'Katherine Adams' },- rating: 3,- recordId: 'OPP-8',- title: 'Travel Partnership',- },- notion: {- amount: '$2,650',- company: { domain: 'notion.com', name: 'Notion' },- contact: { avatarUrl: PEOPLE.ivanZhao, name: 'Ivan Zhao' },- date: 'Jun 28, 2023',- id: 'notion',- owner: { avatarUrl: PEOPLE.sundarPichai, name: 'Sundar Pichai' },- rating: 2,- recordId: 'OPP-6',- title: 'Workspace Rollout',- },-};--const INITIAL_LANES: PipelineLanes = [- ['github', 'figma'],- ['airbnb'],- ['notion'],-];--const LANES_META: { color: CellSelectColor; label: string }[] = [- { color: 'pink', label: 'Identified' },- { color: 'purple', label: 'Qualified' },- { color: 'blue', label: 'Proposal' },-];--const Root = styled.div`- background: ${THEME_LIGHT.background.primary};- display: flex;- flex-direction: column;- font-family: ${THEME_LIGHT.font.family};- height: 100%;- overflow: hidden;- position: relative;- width: 100%;-`;--const BoardHeader = styled.div`- align-items: center;- border-bottom: 1px solid ${THEME_LIGHT.border.color.light};- color: ${THEME_LIGHT.font.color.tertiary};- display: flex;- flex-shrink: 0;- gap: 6px;- height: 34px;- padding: 0 14px;-`;--const BoardTitle = styled.span`- color: ${THEME_LIGHT.font.color.primary};- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};- font-weight: ${THEME_LIGHT.font.weight.medium};-`;--const BoardCount = styled.span`- color: ${THEME_LIGHT.font.color.tertiary};- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};-`;--const ColumnsHeaderGrid = styled.div`- border-bottom: 1px solid ${THEME_LIGHT.border.color.light};- display: grid;- flex-shrink: 0;- grid-template-columns: repeat(3, 1fr);-`;--const LaneHeader = styled.div`- align-items: center;- display: flex;- gap: 6px;- padding: 8px 12px;-`;--const LaneCount = styled.span`- color: ${THEME_LIGHT.font.color.tertiary};- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};-`;--const ColumnsGrid = styled.div`- display: grid;- flex: 1;- grid-template-columns: repeat(3, 1fr);- min-height: 0;- overflow: hidden;-`;--const LaneBody = styled.div`- border-right: 1px solid ${THEME_LIGHT.border.color.light};- display: flex;- flex-direction: column;- gap: 8px;- min-height: 40px;- min-width: 0;- overflow-y: auto;- padding: 8px;-- &:last-child {- border-right: none;- }-`;--const DealCard = styled.div`- background: ${THEME_LIGHT.background.secondary};- border: 1px solid ${THEME_LIGHT.border.color.medium};- border-radius: ${THEME_LIGHT.border.radius.sm};- cursor: grab;- display: flex;- flex-direction: column;- overflow: hidden;- touch-action: none;- user-select: none;-- &:active {- cursor: grabbing;- }-- &[data-dragging] {- opacity: 0;- }-`;--const CardHeader = styled.div`- align-items: center;- display: flex;- gap: 8px;- justify-content: space-between;- padding: 8px 8px 4px;-`;--const CardTitle = styled.span`- color: ${THEME_LIGHT.font.color.primary};- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};- font-weight: ${THEME_LIGHT.font.weight.medium};- line-height: 1.4;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-`;--const CheckboxContainer = styled.div`- align-items: center;- display: flex;- flex: 0 0 24px;- height: 24px;- justify-content: center;- width: 24px;-`;--const CheckboxBox = styled.div`- border: 1px solid ${THEME_LIGHT.border.color.strong};- border-radius: 3px;- height: 14px;- width: 14px;-`;--const CardFields = styled.div`- display: flex;- flex-direction: column;- gap: 2px;- padding: 0 8px 4px 10px;-`;--const FieldRowShell = styled.div`- align-items: center;- display: flex;- gap: 4px;- min-height: 24px;- width: 100%;-`;--const FieldIconBox = styled.div`- align-items: center;- color: ${THEME_LIGHT.font.color.tertiary};- display: flex;- flex: 0 0 16px;- height: 16px;- justify-content: center;- width: 16px;-`;--const FieldValueWrap = styled.div`- align-items: center;- display: flex;- flex: 1 1 auto;- min-width: 0;- overflow: hidden;-`;--const FieldText = styled.span`- color: ${THEME_LIGHT.font.color.primary};- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};- font-weight: ${THEME_LIGHT.font.weight.regular};- line-height: 1.4;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-`;--const StarsRow = styled.div`- align-items: center;- display: inline-flex;- gap: 2px;- padding: 0 4px;-`;--const StarGlyph = styled.span`- align-items: center;- color: ${THEME_LIGHT.background.quaternary};- display: inline-flex;- height: 12px;- justify-content: center;- width: 12px;-- &[data-filled] {- color: ${THEME_LIGHT.font.color.secondary};- }-`;--const AddCardRow = styled.div`- align-items: center;- color: ${THEME_LIGHT.font.color.tertiary};- display: flex;- font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};- gap: 4px;- padding: 4px 8px;-`;--const InteractionLayer = styled.div`- inset: 0;- position: absolute;- z-index: 50;-`;--const FloatingCardShell = styled.div`- box-shadow: ${THEME_LIGHT.boxShadow.strong};- left: 0;- pointer-events: none;- position: absolute;- top: 0;- transform-origin: center center;- width: calc(100% / 3 - 16px);- z-index: 100;-`;--type FieldIconComponent = ComponentType<{- 'aria-hidden'?: boolean;- size?: number;- stroke?: number;-}>;--function FieldRow({- children,- icon: Icon,-}: {- children: ReactNode;- icon: FieldIconComponent;-}) {- return (- <FieldRowShell>- <FieldIconBox>- <Icon aria-hidden size={16} stroke={1.6} />- </FieldIconBox>- <FieldValueWrap>{children}</FieldValueWrap>- </FieldRowShell>- );-}--function CompanyChip({ company }: { company: DealCompany }) {- return (- <Chip- clickable={false}- label={company.name}- leftComponent={- <FaviconLogo domain={company.domain} label={company.name} />- }- maxWidth={152}- variant="highlighted"- />- );-}--function DealPersonChip({ person }: { person: DealPerson }) {- return (- <Chip- clickable={false}- label={person.name}- leftComponent={- <PersonAvatar- person={{ avatarUrl: person.avatarUrl, name: person.name }}- />- }- maxWidth={152}- variant="highlighted"- />- );-}--function OpportunityCard({ data }: { data: DealData }) {- return (- <>- <CardHeader>- <CardTitle>{data.title}</CardTitle>- <CheckboxContainer>- <CheckboxBox />- </CheckboxContainer>- </CardHeader>- <CardFields>- <FieldRow icon={IconCurrencyDollar}>- <FieldText>{data.amount}</FieldText>- </FieldRow>- <FieldRow icon={IconBuildingSkyscraper}>- <CompanyChip company={data.company} />- </FieldRow>- <FieldRow icon={IconUserCircle}>- <DealPersonChip person={data.owner} />- </FieldRow>- <FieldRow icon={IconStar}>- <StarsRow>- {STAR_POSITIONS.map((position) => (- <StarGlyph- data-filled={position <= data.rating ? '' : undefined}- key={position}- >- <RatingStar fillColor="currentColor" />- </StarGlyph>- ))}- </StarsRow>- </FieldRow>- <FieldRow icon={IconCalendarEvent}>- <FieldText>{data.date}</FieldText>- </FieldRow>- <FieldRow icon={IconUser}>- <DealPersonChip person={data.contact} />- </FieldRow>- <FieldRow icon={IconId}>- <FieldText>{data.recordId}</FieldText>- </FieldRow>- </CardFields>- </>- );-}--type DragState = {- cardId: PipelineCardId;- lastX: number;- lastY: number;- maxX: number;- maxY: number;- originX: number;- originY: number;- pointerX: number;- pointerY: number;-};--export function PipelineVisual({ active: _active }: { active: boolean }) {- const [lanes, setLanes] = useState<PipelineLanes>(INITIAL_LANES);- const [draggedCardId, setDraggedCardId] = useState<PipelineCardId | null>(- null,- );-- const interactionRef = useRef<HTMLDivElement>(null);- const ghostRef = useRef<HTMLDivElement>(null);- const laneBodyRefs = useRef<(HTMLDivElement | null)[]>([]);- const cardRefs = useRef<- Partial<Record<PipelineCardId, HTMLDivElement | null>>- >({});- const pendingRectsRef = useRef<Partial<Record<PipelineCardId, DOMRect>>>({});- const animationsRef = useRef<Partial<Record<PipelineCardId, Animation>>>({});- const activePointerRef = useRef<number | null>(null);- const dragStateRef = useRef<DragState | null>(null);-- useLayoutEffect(() => {- const previousRects = pendingRectsRef.current;- const cardIds = Object.keys(previousRects) as PipelineCardId[];-- if (cardIds.length === 0) {- return;- }- pendingRectsRef.current = {};-- for (const cardId of cardIds) {- const previousRect = previousRects[cardId];- const element = cardRefs.current[cardId];- const nextRect = element?.getBoundingClientRect();-- if (!previousRect || !element || !nextRect) {- continue;- }- const deltaX = previousRect.left - nextRect.left;- const deltaY = previousRect.top - nextRect.top;-- if (Math.abs(deltaX) < 0.5 && Math.abs(deltaY) < 0.5) {- continue;- }-- animationsRef.current[cardId]?.cancel();- animationsRef.current[cardId] = element.animate(- [- { transform: `translate3d(${deltaX}px, ${deltaY}px, 0)` },- { transform: 'translate3d(0, 0, 0)' },- ],- { duration: CARD_DROP_MS, easing: EASING.standard },- );- }- }, [lanes]);-- const captureRects = () => {- const rects: Partial<Record<PipelineCardId, DOMRect>> = {};-- for (const lane of lanes) {- for (const cardId of lane) {- const element = cardRefs.current[cardId];-- if (element) {- rects[cardId] = element.getBoundingClientRect();- }- }- }- pendingRectsRef.current = rects;- };-- const getDropTarget = (- clientX: number,- clientY: number,- cardId: PipelineCardId,- ): { cardIndex: number; laneIndex: PipelineLaneIndex } | null => {- const matchedLane = laneBodyRefs.current.findIndex((element) => {- const rect = element?.getBoundingClientRect();- return (- rect &&- clientX >= rect.left &&- clientX <= rect.right &&- clientY >= rect.top &&- clientY <= rect.bottom- );- });-- if (matchedLane < 0 || matchedLane > 2) {- return null;- }- const laneIndex = matchedLane as PipelineLaneIndex;- const laneCardIds = lanes[laneIndex].filter(- (laneCardId) => laneCardId !== cardId,- );- let cardIndex = laneCardIds.length;-- for (const [index, laneCardId] of laneCardIds.entries()) {- const rect = cardRefs.current[laneCardId]?.getBoundingClientRect();-- if (rect && clientY < rect.top + rect.height / 2) {- cardIndex = index;- break;- }- }-- return { cardIndex, laneIndex };- };-- const moveGhost = (x: number, y: number) => {- ghostRef.current?.style.setProperty(- 'transform',- `translate3d(${x}px, ${y}px, 0)`,- );- };-- const handlePointerDown = (- event: ReactPointerEvent<HTMLDivElement>,- cardId: PipelineCardId,- ) => {- event.preventDefault();- const layerRect = interactionRef.current?.getBoundingClientRect();- const cardRect = event.currentTarget.getBoundingClientRect();-- if (!layerRect || dragStateRef.current) {- return;- }-- dragStateRef.current = {- cardId,- lastX: event.clientX,- lastY: event.clientY,- maxX: layerRect.width - cardRect.width,- maxY: layerRect.height - cardRect.height,- originX: cardRect.left - layerRect.left,- originY: cardRect.top - layerRect.top,- pointerX: event.clientX,- pointerY: event.clientY,- };- setDraggedCardId(cardId);- activePointerRef.current = event.pointerId;- interactionRef.current?.setPointerCapture(event.pointerId);- };-- const finishDrag = (clientX: number, clientY: number) => {- const state = dragStateRef.current;-- if (!state) {- return;- }- const dropTarget = getDropTarget(clientX, clientY, state.cardId);-- if (dropTarget) {- captureRects();- setLanes((previous) =>- movePipelineCard(- previous,- state.cardId,- dropTarget.laneIndex,- dropTarget.cardIndex,- ),- );- }- dragStateRef.current = null;- setDraggedCardId(null);- activePointerRef.current = null;- };-- const handlePointerMove = (event: ReactPointerEvent<HTMLDivElement>) => {- if (event.pointerId !== activePointerRef.current) {- return;- }- event.preventDefault();- const state = dragStateRef.current;-- if (!state) {- return;- }- state.lastX = event.clientX;- state.lastY = event.clientY;- moveGhost(- clampToRange(- state.originX + event.clientX - state.pointerX,- 0,- state.maxX,- ),- clampToRange(- state.originY + event.clientY - state.pointerY,- 0,- state.maxY,- ),- );- };-- const handlePointerUp = (event: ReactPointerEvent<HTMLDivElement>) => {- if (event.pointerId !== activePointerRef.current) {- return;- }- event.preventDefault();- finishDrag(event.clientX, event.clientY);-- if (interactionRef.current?.hasPointerCapture(event.pointerId)) {- interactionRef.current.releasePointerCapture(event.pointerId);- }- };-- const handlePointerCancel = (event: ReactPointerEvent<HTMLDivElement>) => {- if (event.pointerId !== activePointerRef.current) {- return;- }- const state = dragStateRef.current;- finishDrag(state?.lastX ?? event.clientX, state?.lastY ?? event.clientY);-- if (interactionRef.current?.hasPointerCapture(event.pointerId)) {- interactionRef.current.releasePointerCapture(event.pointerId);- }- };-- const handleLostCapture = () => {- const state = dragStateRef.current;-- if (state) {- finishDrag(state.lastX, state.lastY);- }- activePointerRef.current = null;- };-- useEffect(() => {- const layer = interactionRef.current;- return () => {- if (activePointerRef.current !== null && layer) {- try {- layer.releasePointerCapture(activePointerRef.current);- } catch {- // The pointer was already released by the browser.- }- }- };- }, []);-- const laneHeaders = LANES_META.map((meta, laneNumber) => ({- laneNumber,- meta,- }));- const laneBodies = lanes.map((laneCardIds, laneNumber) => ({- laneCardIds,- laneNumber,- }));- const dragOrigin = dragStateRef.current;-- return (- <Root>- <BoardHeader>- <IconLayoutKanban size={14} stroke={1.6} />- <BoardTitle>All Opportunities</BoardTitle>- <BoardCount>· 4</BoardCount>- </BoardHeader>-- <ColumnsHeaderGrid>- {laneHeaders.map(({ laneNumber, meta }) => (- <LaneHeader key={meta.label}>- <PreviewTag color={meta.color} label={meta.label} />- <LaneCount>{lanes[laneNumber].length}</LaneCount>- </LaneHeader>- ))}- </ColumnsHeaderGrid>-- <ColumnsGrid>- {laneBodies.map(({ laneCardIds, laneNumber }) => (- <LaneBody- key={laneNumber}- ref={(element) => {- laneBodyRefs.current[laneNumber] = element;- }}- >- {laneCardIds.map((cardId) => (- <DealCard- data-dragging={draggedCardId === cardId ? '' : undefined}- key={cardId}- onPointerDown={(event) => handlePointerDown(event, cardId)}- ref={(element) => {- cardRefs.current[cardId] = element;- }}- >- <OpportunityCard data={CARDS[cardId]} />- </DealCard>- ))}- <AddCardRow>- <IconPlus size={12} stroke={1.6} />- New- </AddCardRow>- </LaneBody>- ))}- </ColumnsGrid>-- <InteractionLayer- onLostPointerCapture={handleLostCapture}- onPointerCancel={handlePointerCancel}- onPointerMove={handlePointerMove}- onPointerUp={handlePointerUp}- ref={interactionRef}- style={{ pointerEvents: draggedCardId ? 'auto' : 'none' }}- >- {draggedCardId && dragOrigin ? (- <FloatingCardShell- ref={ghostRef}- style={{- transform: `translate3d(${dragOrigin.originX}px, ${dragOrigin.originY}px, 0)`,- }}- >- <DealCard>- <OpportunityCard data={CARDS[draggedCardId]} />- </DealCard>- </FloatingCardShell>- ) : null}- </InteractionLayer>- </Root>- );-}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/PipelineVisual.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/PipelineVisual.tsxnew file mode 100644index 00000000000..9e881a0bb77--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/PipelineVisual.tsx@@ -0,0 +1,421 @@+'use client';++import { styled } from '@linaria/react';+import {+ IconChevronDown,+ IconLayoutKanban,+ IconPlus,+} from '@tabler/icons-react';+import {+ type PointerEvent as ReactPointerEvent,+ useRef,+ useState,+} from 'react';+import { THEME_LIGHT } from 'twenty-ui/theme';++import { previewFontSize } from '@/app-preview/preview-font-size';+import { PreviewTag } from '@/app-preview/primitives/PreviewTag';+import { clampToRange } from '@/platform/motion';++import { OpportunityCard } from './components/OpportunityCard';+import { CARDS } from './data/cards';+import { INITIAL_LANES } from './data/initial-lanes';+import { LANES_META } from './data/lanes-meta';+import { CardFlipAnimationEffect } from './effect-components/CardFlipAnimationEffect';+import { type PipelineCardAnimations } from './types/pipeline-card-animations';+import { type PipelineCardElements } from './types/pipeline-card-elements';+import { type PipelineCardId } from './types/pipeline-card-id';+import { type PipelineCardRects } from './types/pipeline-card-rects';+import { type PipelineLanes } from './types/pipeline-lanes';+import { getDropTarget } from './utils/get-drop-target';+import { movePipelineCard } from './utils/pipeline-move-card';++const TOTAL_CARD_COUNT = Object.keys(CARDS).length;++const Root = styled.div`+ background: ${THEME_LIGHT.background.primary};+ display: flex;+ flex-direction: column;+ font-family: var(--font-product), sans-serif;+ height: 100%;+ overflow: hidden;+ position: relative;+ width: 100%;+`;++const BoardHeader = styled.div`+ align-items: center;+ border-bottom: 1px solid ${THEME_LIGHT.border.color.light};+ color: ${THEME_LIGHT.font.color.secondary};+ display: flex;+ flex-shrink: 0;+ gap: 6px;+ height: 34px;+ padding: 0 14px;+`;++const BoardTitle = styled.span`+ color: ${THEME_LIGHT.font.color.secondary};+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+ font-weight: ${THEME_LIGHT.font.weight.regular};+`;++const BoardAdornments = styled.span`+ align-items: center;+ color: ${THEME_LIGHT.color.gray8};+ display: flex;+ flex-shrink: 0;+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+ gap: 4px;+`;++const ColumnsHeaderGrid = styled.div`+ border-bottom: 1px solid ${THEME_LIGHT.border.color.light};+ display: grid;+ flex-shrink: 0;+ grid-template-columns: repeat(3, 1fr);+`;++const LaneHeader = styled.div`+ align-items: center;+ display: flex;+ gap: 6px;+ padding: 8px 12px;+`;++const LaneCount = styled.span`+ color: ${THEME_LIGHT.font.color.tertiary};+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+`;++const ColumnsGrid = styled.div`+ display: grid;+ flex: 1;+ grid-template-columns: repeat(3, 1fr);+ min-height: 0;+ overflow: hidden;+`;++const LaneBody = styled.div`+ border-right: 1px solid ${THEME_LIGHT.border.color.light};+ display: flex;+ flex-direction: column;+ gap: 8px;+ min-height: 40px;+ min-width: 0;+ overflow-y: auto;+ padding: 8px;++ &:last-child {+ border-right: none;+ }+`;++const DealCard = styled.div`+ background: ${THEME_LIGHT.background.secondary};+ border: 1px solid ${THEME_LIGHT.border.color.medium};+ border-radius: ${THEME_LIGHT.border.radius.sm};+ cursor: pointer;+ display: flex;+ flex-direction: column;+ flex-shrink: 0;+ overflow: hidden;+ touch-action: none;+ user-select: none;++ &:hover {+ border-color: ${THEME_LIGHT.border.color.strong};+ }++ &:hover .deal-card-checkbox {+ max-width: 24px;+ opacity: 1;+ pointer-events: auto;+ }++ &[data-dragging] {+ opacity: 0;+ }+`;++const AddCardRow = styled.div`+ align-items: center;+ color: ${THEME_LIGHT.font.color.tertiary};+ display: flex;+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+ gap: 4px;+ padding: 4px 8px;+`;++const InteractionLayer = styled.div`+ inset: 0;+ position: absolute;+ z-index: 50;+`;++const FloatingCardShell = styled.div`+ box-shadow: ${THEME_LIGHT.boxShadow.strong};+ left: 0;+ pointer-events: none;+ position: absolute;+ top: 0;+ transform-origin: center center;+ width: calc(100% / 3 - 16px);+ z-index: 100;+`;++type DragState = {+ cardId: PipelineCardId;+ lastX: number;+ lastY: number;+ maxX: number;+ maxY: number;+ originX: number;+ originY: number;+ pointerX: number;+ pointerY: number;+};++export function PipelineVisual({ active: _active }: { active: boolean }) {+ const [lanes, setLanes] = useState<PipelineLanes>(INITIAL_LANES);+ const [draggedCardId, setDraggedCardId] = useState<PipelineCardId | null>(+ null,+ );++ const interactionRef = useRef<HTMLDivElement>(null);+ const ghostRef = useRef<HTMLDivElement>(null);+ const laneBodyRefs = useRef<(HTMLDivElement | null)[]>([]);+ const cardRefs = useRef<PipelineCardElements>({});+ const pendingRectsRef = useRef<PipelineCardRects>({});+ const animationsRef = useRef<PipelineCardAnimations>({});+ const activePointerRef = useRef<number | null>(null);+ const dragStateRef = useRef<DragState | null>(null);++ const captureRects = () => {+ const rects: PipelineCardRects = {};++ for (const lane of lanes) {+ for (const cardId of lane) {+ const element = cardRefs.current[cardId];++ if (element) {+ rects[cardId] = element.getBoundingClientRect();+ }+ }+ }+ pendingRectsRef.current = rects;+ };++ const moveGhost = (x: number, y: number) => {+ ghostRef.current?.style.setProperty(+ 'transform',+ `translate3d(${x}px, ${y}px, 0)`,+ );+ };++ const handlePointerDown = (+ event: ReactPointerEvent<HTMLDivElement>,+ cardId: PipelineCardId,+ ) => {+ event.preventDefault();+ const layerRect = interactionRef.current?.getBoundingClientRect();+ const cardRect = event.currentTarget.getBoundingClientRect();++ if (!layerRect || dragStateRef.current) {+ return;+ }++ dragStateRef.current = {+ cardId,+ lastX: event.clientX,+ lastY: event.clientY,+ maxX: layerRect.width - cardRect.width,+ maxY: layerRect.height - cardRect.height,+ originX: cardRect.left - layerRect.left,+ originY: cardRect.top - layerRect.top,+ pointerX: event.clientX,+ pointerY: event.clientY,+ };+ setDraggedCardId(cardId);+ activePointerRef.current = event.pointerId;+ interactionRef.current?.setPointerCapture(event.pointerId);+ };++ const finishDrag = (clientX: number, clientY: number) => {+ const state = dragStateRef.current;++ if (!state) {+ return;+ }+ const dropTarget = getDropTarget(+ clientX,+ clientY,+ state.cardId,+ laneBodyRefs.current,+ cardRefs.current,+ lanes,+ );++ if (dropTarget) {+ captureRects();+ setLanes((previous) =>+ movePipelineCard(+ previous,+ state.cardId,+ dropTarget.laneIndex,+ dropTarget.cardIndex,+ ),+ );+ }+ dragStateRef.current = null;+ setDraggedCardId(null);+ activePointerRef.current = null;+ };++ const handlePointerMove = (event: ReactPointerEvent<HTMLDivElement>) => {+ if (event.pointerId !== activePointerRef.current) {+ return;+ }+ event.preventDefault();+ const state = dragStateRef.current;++ if (!state) {+ return;+ }+ state.lastX = event.clientX;+ state.lastY = event.clientY;+ moveGhost(+ clampToRange(+ state.originX + event.clientX - state.pointerX,+ 0,+ state.maxX,+ ),+ clampToRange(+ state.originY + event.clientY - state.pointerY,+ 0,+ state.maxY,+ ),+ );+ };++ const handlePointerUp = (event: ReactPointerEvent<HTMLDivElement>) => {+ if (event.pointerId !== activePointerRef.current) {+ return;+ }+ event.preventDefault();+ finishDrag(event.clientX, event.clientY);++ if (interactionRef.current?.hasPointerCapture(event.pointerId)) {+ interactionRef.current.releasePointerCapture(event.pointerId);+ }+ };++ const handlePointerCancel = (event: ReactPointerEvent<HTMLDivElement>) => {+ if (event.pointerId !== activePointerRef.current) {+ return;+ }+ const state = dragStateRef.current;+ finishDrag(state?.lastX ?? event.clientX, state?.lastY ?? event.clientY);++ if (interactionRef.current?.hasPointerCapture(event.pointerId)) {+ interactionRef.current.releasePointerCapture(event.pointerId);+ }+ };++ const handleLostCapture = () => {+ const state = dragStateRef.current;++ if (state) {+ finishDrag(state.lastX, state.lastY);+ }+ activePointerRef.current = null;+ };++ const laneHeaders = LANES_META.map((meta, laneNumber) => ({+ laneNumber,+ meta,+ }));+ const laneBodies = lanes.map((laneCardIds, laneNumber) => ({+ laneCardIds,+ laneNumber,+ }));+ const dragOrigin = dragStateRef.current;++ return (+ <Root>+ <CardFlipAnimationEffect+ animationsRef={animationsRef}+ cardRefs={cardRefs}+ lanes={lanes}+ pendingRectsRef={pendingRectsRef}+ />+ <BoardHeader>+ <IconLayoutKanban size={14} stroke={1.6} />+ <BoardTitle>By Stage</BoardTitle>+ <BoardAdornments>+ · {TOTAL_CARD_COUNT}+ <IconChevronDown size={14} stroke={1.6} />+ </BoardAdornments>+ </BoardHeader>++ <ColumnsHeaderGrid>+ {laneHeaders.map(({ laneNumber, meta }) => (+ <LaneHeader key={meta.label}>+ <PreviewTag color={meta.color} label={meta.label} />+ <LaneCount>{lanes[laneNumber].length}</LaneCount>+ </LaneHeader>+ ))}+ </ColumnsHeaderGrid>++ <ColumnsGrid>+ {laneBodies.map(({ laneCardIds, laneNumber }) => (+ <LaneBody+ key={laneNumber}+ ref={(element) => {+ laneBodyRefs.current[laneNumber] = element;+ }}+ >+ {laneCardIds.map((cardId) => (+ <DealCard+ data-dragging={draggedCardId === cardId ? '' : undefined}+ key={cardId}+ onPointerDown={(event) => handlePointerDown(event, cardId)}+ ref={(element) => {+ cardRefs.current[cardId] = element;+ }}+ >+ <OpportunityCard data={CARDS[cardId]} />+ </DealCard>+ ))}+ <AddCardRow>+ <IconPlus size={16} stroke={1.6} />+ New+ </AddCardRow>+ </LaneBody>+ ))}+ </ColumnsGrid>++ <InteractionLayer+ onLostPointerCapture={handleLostCapture}+ onPointerCancel={handlePointerCancel}+ onPointerMove={handlePointerMove}+ onPointerUp={handlePointerUp}+ ref={interactionRef}+ style={{ pointerEvents: draggedCardId ? 'auto' : 'none' }}+ >+ {draggedCardId && dragOrigin ? (+ <FloatingCardShell+ ref={ghostRef}+ style={{+ transform: `translate3d(${dragOrigin.originX}px, ${dragOrigin.originY}px, 0)`,+ }}+ >+ <DealCard>+ <OpportunityCard data={CARDS[draggedCardId]} />+ </DealCard>+ </FloatingCardShell>+ ) : null}+ </InteractionLayer>+ </Root>+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CompanyChip.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CompanyChip.tsxnew file mode 100644index 00000000000..3176e338f35--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CompanyChip.tsx@@ -0,0 +1,18 @@+import { Chip } from '@/app-preview/primitives/Chip';+import { FaviconLogo } from '@/app-preview/primitives/FaviconLogo';++import { type DealCompany } from '../types/deal-company';++export function CompanyChip({ company }: { company: DealCompany }) {+ return (+ <Chip+ clickable={false}+ label={company.name}+ leftComponent={+ <FaviconLogo domain={company.domain} label={company.name} />+ }+ maxWidth={152}+ variant="highlighted"+ />+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CreatedByChip.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CreatedByChip.tsxnew file mode 100644index 00000000000..ee84077e16a--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/CreatedByChip.tsx@@ -0,0 +1,33 @@+import { IconRobot } from '@tabler/icons-react';+import { type ReactNode } from 'react';++import { Chip } from '@/app-preview/primitives/Chip';+import { PersonAvatar } from '@/app-preview/primitives/PersonAvatar';++import { type DealActor } from '../types/deal-actor';++function renderCreatedByLeftComponent(actor: DealActor): ReactNode {+ if (actor.source === 'member') {+ return (+ <PersonAvatar+ person={{+ avatarUrl: actor.avatarUrl,+ kind: 'person',+ name: actor.name,+ }}+ />+ );+ }+ return <IconRobot size={16} stroke={1.6} />;+}++export function CreatedByChip({ actor }: { actor: DealActor }) {+ return (+ <Chip+ clickable={false}+ label={actor.name}+ leftComponent={renderCreatedByLeftComponent(actor)}+ variant="transparent"+ />+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/DealPersonChip.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/DealPersonChip.tsxnew file mode 100644index 00000000000..f27e755ac62--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/DealPersonChip.tsx@@ -0,0 +1,20 @@+import { Chip } from '@/app-preview/primitives/Chip';+import { PersonAvatar } from '@/app-preview/primitives/PersonAvatar';++import { type DealPerson } from '../types/deal-person';++export function DealPersonChip({ person }: { person: DealPerson }) {+ return (+ <Chip+ clickable={false}+ label={person.name}+ leftComponent={+ <PersonAvatar+ person={{ avatarUrl: person.avatarUrl, name: person.name }}+ />+ }+ maxWidth={152}+ variant="highlighted"+ />+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/FieldRow.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/FieldRow.tsxnew file mode 100644index 00000000000..0274692c5ba--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/FieldRow.tsx@@ -0,0 +1,52 @@+import { styled } from '@linaria/react';+import { type ComponentType, type ReactNode } from 'react';+import { THEME_LIGHT } from 'twenty-ui/theme';++type FieldIconComponent = ComponentType<{+ 'aria-hidden'?: boolean;+ size?: number;+ stroke?: number;+}>;++const FieldRowShell = styled.div`+ align-items: center;+ display: flex;+ gap: 4px;+ min-height: 24px;+ width: 100%;+`;++const FieldIconBox = styled.div`+ align-items: center;+ color: ${THEME_LIGHT.font.color.tertiary};+ display: flex;+ flex: 0 0 16px;+ height: 16px;+ justify-content: center;+ width: 16px;+`;++const FieldValueWrap = styled.div`+ align-items: center;+ display: flex;+ flex: 1 1 auto;+ min-width: 0;+ overflow: hidden;+`;++export function FieldRow({+ children,+ icon: Icon,+}: {+ children: ReactNode;+ icon: FieldIconComponent;+}) {+ return (+ <FieldRowShell>+ <FieldIconBox>+ <Icon aria-hidden size={16} stroke={1.6} />+ </FieldIconBox>+ <FieldValueWrap>{children}</FieldValueWrap>+ </FieldRowShell>+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/OpportunityCard.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/OpportunityCard.tsxnew file mode 100644index 00000000000..534bd8a33b0--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/components/OpportunityCard.tsx@@ -0,0 +1,152 @@+import { styled } from '@linaria/react';+import {+ IconBuildingSkyscraper,+ IconCalendarEvent,+ IconCreativeCommonsSa,+ IconCurrencyDollar,+ IconUser,+} from '@tabler/icons-react';+import { THEME_LIGHT } from 'twenty-ui/theme';++import { previewFontSize } from '@/app-preview/preview-font-size';+import { PreviewAvatar } from '@/app-preview/primitives/PreviewAvatar';++import { type DealData } from '../types/deal-data';+import { CompanyChip } from './CompanyChip';+import { CreatedByChip } from './CreatedByChip';+import { DealPersonChip } from './DealPersonChip';+import { FieldRow } from './FieldRow';++const CardHeader = styled.div`+ align-items: center;+ display: flex;+ padding: 8px 8px 4px;+`;++const CardIdentifier = styled.div`+ align-items: center;+ display: flex;+ flex: 1 1 auto;+ gap: 6px;+ min-width: 0;+ overflow: hidden;+`;++const CardTitle = styled.span`+ color: ${THEME_LIGHT.font.color.primary};+ flex: 1 1 auto;+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+ font-weight: ${THEME_LIGHT.font.weight.medium};+ line-height: 1.4;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+`;++const CardCheckbox = styled.div`+ align-items: center;+ display: flex;+ flex-shrink: 0;+ justify-content: center;+ margin-left: auto;+ max-width: 0;+ opacity: 0;+ overflow: hidden;+ padding: 5px;+ pointer-events: none;+ transition: all ease-in-out 160ms;+`;++const CheckboxBox = styled.div`+ border: 1px solid ${THEME_LIGHT.border.color.secondaryInverted};+ border-radius: ${THEME_LIGHT.border.radius.sm};+ flex-shrink: 0;+ height: 14px;+ width: 14px;+`;++const CardFields = styled.div`+ display: flex;+ flex-direction: column;+ gap: 2px;+ padding: 0 8px 4px 10px;+`;++const FieldText = styled.span`+ color: ${THEME_LIGHT.font.color.primary};+ font-size: ${previewFontSize(THEME_LIGHT.font.size.md)};+ font-weight: ${THEME_LIGHT.font.weight.regular};+ line-height: 1.4;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+`;++const HoverableValue = styled.div`+ align-items: center;+ border-radius: ${THEME_LIGHT.border.radius.sm};+ cursor: pointer;+ display: inline-flex;+ max-width: 100%;+ min-width: 0;+ outline: 1px solid transparent;+ outline-offset: -1px;+ overflow: hidden;+ padding: 2px 4px;++ &:hover {+ background-color: ${THEME_LIGHT.background.transparent.light};+ }++ &[data-readonly] {+ cursor: default;+ }++ &[data-readonly]:hover {+ background-color: transparent;+ outline-color: ${THEME_LIGHT.border.color.medium};+ }+`;++export function OpportunityCard({ data }: { data: DealData }) {+ return (+ <>+ <CardHeader>+ <CardIdentifier>+ <PreviewAvatar size={16} tone={data.avatarTone}>+ {data.title.charAt(0)}+ </PreviewAvatar>+ <CardTitle>{data.title}</CardTitle>+ </CardIdentifier>+ <CardCheckbox className="deal-card-checkbox">+ <CheckboxBox />+ </CardCheckbox>+ </CardHeader>+ <CardFields>+ <FieldRow icon={IconCurrencyDollar}>+ <HoverableValue>+ <FieldText>{data.amount}</FieldText>+ </HoverableValue>+ </FieldRow>+ <FieldRow icon={IconCreativeCommonsSa}>+ <HoverableValue data-readonly="">+ <CreatedByChip actor={data.createdBy} />+ </HoverableValue>+ </FieldRow>+ <FieldRow icon={IconCalendarEvent}>+ <HoverableValue>+ <FieldText>{data.date}</FieldText>+ </HoverableValue>+ </FieldRow>+ <FieldRow icon={IconBuildingSkyscraper}>+ <CompanyChip company={data.company} />+ </FieldRow>+ <FieldRow icon={IconUser}>+ <DealPersonChip person={data.contact} />+ </FieldRow>+ </CardFields>+ </>+ );+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/cards.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/cards.tsnew file mode 100644index 00000000000..ed60b198342--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/cards.ts@@ -0,0 +1,67 @@+import { sharedAssetUrls } from '@/app-preview/data/shared-asset-urls';++import { type DealData } from '../types/deal-data';+import { type PipelineCardId } from '../types/pipeline-card-id';++const PEOPLE = sharedAssetUrls.peopleAvatars;++export const CARDS: Record<PipelineCardId, DealData> = {+ github: {+ amount: '$75k',+ avatarTone: 'blue',+ company: { domain: 'github.com', name: 'Github' },+ contact: { avatarUrl: PEOPLE.chrisWanstrath, name: 'Chris Wanstrath' },+ createdBy: { name: 'System', source: 'system' },+ date: 'Jan 25, 2026 9:26 PM',+ id: 'github',+ title: 'API Integration Deal',+ },+ figma: {+ amount: '$30k',+ avatarTone: 'orange',+ company: { domain: 'figma.com', name: 'Figma' },+ contact: { avatarUrl: PEOPLE.dylanField, name: 'Dylan Field' },+ createdBy: { name: 'System', source: 'system' },+ date: 'Jan 15, 2026 9:27 PM',+ id: 'figma',+ title: 'Design Partnership',+ },+ airbnb: {+ amount: '$50k',+ avatarTone: 'green',+ company: { domain: 'airbnb.com', name: 'Airbnb' },+ contact: { avatarUrl: PEOPLE.brianChesky, name: 'Brian Chesky' },+ createdBy: {+ avatarUrl: PEOPLE.eddyCue,+ name: 'Eddy Cue',+ source: 'member',+ },+ date: 'Mar 10, 2026 9:26 PM',+ id: 'airbnb',+ title: 'Enterprise Plan Upgrade',+ },+ notion: {+ amount: '$45k',+ avatarTone: 'purple',+ company: { domain: 'notion.com', name: 'Notion' },+ contact: { avatarUrl: PEOPLE.ivanZhao, name: 'Ivan Zhao' },+ createdBy: {+ avatarUrl: PEOPLE.anonymousFelix,+ name: 'Félix Malfait',+ source: 'member',+ },+ date: 'Feb 18, 2026 3:14 PM',+ id: 'notion',+ title: 'Workspace Rollout',+ },+ stripe: {+ amount: '$60k',+ avatarTone: 'pink',+ company: { domain: 'stripe.com', name: 'Stripe' },+ contact: { avatarUrl: PEOPLE.patrickCollison, name: 'Patrick Collison' },+ createdBy: { name: 'System', source: 'system' },+ date: 'Feb 2, 2026 11:02 AM',+ id: 'stripe',+ title: 'Billing Expansion',+ },+};diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/initial-lanes.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/initial-lanes.tsnew file mode 100644index 00000000000..efd7d25301f--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/initial-lanes.ts@@ -0,0 +1,7 @@+import { type PipelineLanes } from '../types/pipeline-lanes';++export const INITIAL_LANES: PipelineLanes = [+ ['github', 'notion'],+ ['airbnb'],+ ['figma', 'stripe'],+];diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/lanes-meta.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/lanes-meta.tsnew file mode 100644index 00000000000..bcfc3b274fa--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/data/lanes-meta.ts@@ -0,0 +1,7 @@+import { type CellSelectColor } from '@/app-preview/types';++export const LANES_META: { color: CellSelectColor; label: string }[] = [+ { color: 'pink', label: 'New' },+ { color: 'purple', label: 'Meeting' },+ { color: 'blue', label: 'Customer' },+];diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/effect-components/CardFlipAnimationEffect.tsx b/packages/twenty-website/src/sections/product-feature/PipelineVisual/effect-components/CardFlipAnimationEffect.tsxnew file mode 100644index 00000000000..30bd6bfec15--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/effect-components/CardFlipAnimationEffect.tsx@@ -0,0 +1,64 @@+'use client';++import { type RefObject, useLayoutEffect } from 'react';++import { EASING } from '@/tokens';++import { type PipelineCardAnimations } from '../types/pipeline-card-animations';+import { type PipelineCardElements } from '../types/pipeline-card-elements';+import { type PipelineCardId } from '../types/pipeline-card-id';+import { type PipelineCardRects } from '../types/pipeline-card-rects';+import { type PipelineLanes } from '../types/pipeline-lanes';++const CARD_DROP_MS = 300;++type CardFlipAnimationEffectProps = {+ lanes: PipelineLanes;+ cardRefs: RefObject<PipelineCardElements>;+ pendingRectsRef: RefObject<PipelineCardRects>;+ animationsRef: RefObject<PipelineCardAnimations>;+};++export function CardFlipAnimationEffect({+ lanes,+ cardRefs,+ pendingRectsRef,+ animationsRef,+}: CardFlipAnimationEffectProps) {+ useLayoutEffect(() => {+ const previousRects = pendingRectsRef.current;+ const cardIds = Object.keys(previousRects) as PipelineCardId[];++ if (cardIds.length === 0) {+ return;+ }+ pendingRectsRef.current = {};++ for (const cardId of cardIds) {+ const previousRect = previousRects[cardId];+ const element = cardRefs.current[cardId];+ const nextRect = element?.getBoundingClientRect();++ if (!previousRect || !element || !nextRect) {+ continue;+ }+ const deltaX = previousRect.left - nextRect.left;+ const deltaY = previousRect.top - nextRect.top;++ if (Math.abs(deltaX) < 0.5 && Math.abs(deltaY) < 0.5) {+ continue;+ }++ animationsRef.current[cardId]?.cancel();+ animationsRef.current[cardId] = element.animate(+ [+ { transform: `translate3d(${deltaX}px, ${deltaY}px, 0)` },+ { transform: 'translate3d(0, 0, 0)' },+ ],+ { duration: CARD_DROP_MS, easing: EASING.standard },+ );+ }+ }, [lanes, animationsRef, cardRefs, pendingRectsRef]);++ return null;+}diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/index.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/index.tsnew file mode 100644index 00000000000..5d3d8868abb--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/index.ts@@ -0,0 +1 @@+export { PipelineVisual } from './PipelineVisual';diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-actor.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-actor.tsnew file mode 100644index 00000000000..90f6bf6612a--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-actor.ts@@ -0,0 +1,5 @@+export type DealActor = {+ avatarUrl?: string;+ name: string;+ source: 'member' | 'system';+};diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-company.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-company.tsnew file mode 100644index 00000000000..67d098df9b4--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-company.ts@@ -0,0 +1,4 @@+export type DealCompany = {+ domain: string;+ name: string;+};diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-data.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-data.tsnew file mode 100644index 00000000000..f8ed1e67f76--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-data.ts@@ -0,0 +1,15 @@+import { type DealActor } from './deal-actor';+import { type DealCompany } from './deal-company';+import { type DealPerson } from './deal-person';+import { type PipelineCardId } from './pipeline-card-id';++export type DealData = {+ amount: string;+ avatarTone: string;+ company: DealCompany;+ contact: DealPerson;+ createdBy: DealActor;+ date: string;+ id: PipelineCardId;+ title: string;+};diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-person.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-person.tsnew file mode 100644index 00000000000..94419f1654b--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/deal-person.ts@@ -0,0 +1,4 @@+export type DealPerson = {+ avatarUrl: string;+ name: string;+};diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-animations.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-animations.tsnew file mode 100644index 00000000000..0cbef5731fd--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-animations.ts@@ -0,0 +1,3 @@+import { type PipelineCardId } from './pipeline-card-id';++export type PipelineCardAnimations = Partial<Record<PipelineCardId, Animation>>;diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-elements.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-elements.tsnew file mode 100644index 00000000000..7f7d1be4419--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-elements.ts@@ -0,0 +1,5 @@+import { type PipelineCardId } from './pipeline-card-id';++export type PipelineCardElements = Partial<+ Record<PipelineCardId, HTMLDivElement | null>+>;diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-id.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-id.tsnew file mode 100644index 00000000000..2992d6fe33a--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-id.ts@@ -0,0 +1,6 @@+export type PipelineCardId =+ | 'airbnb'+ | 'figma'+ | 'github'+ | 'notion'+ | 'stripe';diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-rects.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-rects.tsnew file mode 100644index 00000000000..760dac68a5e--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-card-rects.ts@@ -0,0 +1,3 @@+import { type PipelineCardId } from './pipeline-card-id';++export type PipelineCardRects = Partial<Record<PipelineCardId, DOMRect>>;diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lane-index.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lane-index.tsnew file mode 100644index 00000000000..b17c405fd27--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lane-index.ts@@ -0,0 +1 @@+export type PipelineLaneIndex = 0 | 1 | 2;diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lanes.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lanes.tsnew file mode 100644index 00000000000..065daac2908--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/types/pipeline-lanes.ts@@ -0,0 +1,7 @@+import { type PipelineCardId } from './pipeline-card-id';++export type PipelineLanes = [+ PipelineCardId[],+ PipelineCardId[],+ PipelineCardId[],+];diff --git a/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/get-drop-target.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/get-drop-target.tsnew file mode 100644index 00000000000..a3cc8e3e61f--- /dev/null+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/get-drop-target.ts@@ -0,0 +1,44 @@+import { type PipelineCardElements } from '../types/pipeline-card-elements';+import { type PipelineCardId } from '../types/pipeline-card-id';+import { type PipelineLaneIndex } from '../types/pipeline-lane-index';+import { type PipelineLanes } from '../types/pipeline-lanes';++export function getDropTarget(+ clientX: number,+ clientY: number,+ cardId: PipelineCardId,+ laneBodyElements: (HTMLDivElement | null)[],+ cardElements: PipelineCardElements,+ lanes: PipelineLanes,+): { cardIndex: number; laneIndex: PipelineLaneIndex } | null {+ const matchedLane = laneBodyElements.findIndex((element) => {+ const rect = element?.getBoundingClientRect();+ return (+ rect &&+ clientX >= rect.left &&+ clientX <= rect.right &&+ clientY >= rect.top &&+ clientY <= rect.bottom+ );+ });++ if (matchedLane < 0 || matchedLane > 2) {+ return null;+ }+ const laneIndex = matchedLane as PipelineLaneIndex;+ const laneCardIds = lanes[laneIndex].filter(+ (laneCardId) => laneCardId !== cardId,+ );+ let cardIndex = laneCardIds.length;++ for (const [index, laneCardId] of laneCardIds.entries()) {+ const rect = cardElements[laneCardId]?.getBoundingClientRect();++ if (rect && clientY < rect.top + rect.height / 2) {+ cardIndex = index;+ break;+ }+ }++ return { cardIndex, laneIndex };+}diff --git a/packages/twenty-website/src/sections/product-feature/pipeline-move-card.test.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.test.tssimilarity index 75%rename from packages/twenty-website/src/sections/product-feature/pipeline-move-card.test.tsrename to packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.test.tsindex d08c5494a90..15901b29b14 100644--- a/packages/twenty-website/src/sections/product-feature/pipeline-move-card.test.ts+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.test.ts@@ -1,13 +1,14 @@-import { movePipelineCard, type PipelineLanes } from './pipeline-move-card';+import { type PipelineLanes } from '../types/pipeline-lanes';+import { movePipelineCard } from './pipeline-move-card';-const LANES: PipelineLanes = [['github', 'figma'], ['airbnb'], ['notion']];+const LANES: PipelineLanes = [['github', 'figma'], ['airbnb'], []];describe('movePipelineCard', () => {it('should reorder within a lane when the target is the same lane', () => {expect(movePipelineCard(LANES, 'github', 0, 1)).toEqual([['figma', 'github'],['airbnb'],- ['notion'],+ [],]);});@@ -15,7 +16,7 @@ describe('movePipelineCard', () => {expect(movePipelineCard(LANES, 'figma', 1, 1)).toEqual([['github'],['airbnb', 'figma'],- ['notion'],+ [],]);});@@ -23,14 +24,14 @@ describe('movePipelineCard', () => {expect(movePipelineCard(LANES, 'github', 1, 99)).toEqual([['figma'],['airbnb', 'github'],- ['notion'],+ [],]);});it('should clamp a negative index to the lane start', () => {- expect(movePipelineCard(LANES, 'notion', 0, -1)).toEqual([- ['notion', 'github', 'figma'],- ['airbnb'],+ expect(movePipelineCard(LANES, 'airbnb', 0, -1)).toEqual([+ ['airbnb', 'github', 'figma'],+ [],[],]);});@@ -41,6 +42,6 @@ describe('movePipelineCard', () => {it('should not mutate the input lanes', () => {movePipelineCard(LANES, 'github', 1, 0);- expect(LANES).toEqual([['github', 'figma'], ['airbnb'], ['notion']]);+ expect(LANES).toEqual([['github', 'figma'], ['airbnb'], []]);});});diff --git a/packages/twenty-website/src/sections/product-feature/pipeline-move-card.ts b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.tssimilarity index 63%rename from packages/twenty-website/src/sections/product-feature/pipeline-move-card.tsrename to packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.tsindex 290d2652250..849f99f54d2 100644--- a/packages/twenty-website/src/sections/product-feature/pipeline-move-card.ts+++ b/packages/twenty-website/src/sections/product-feature/PipelineVisual/utils/pipeline-move-card.ts@@ -1,15 +1,9 @@import { clampToRange } from '@/platform/motion';-export type PipelineCardId = 'airbnb' | 'figma' | 'github' | 'notion';-export type PipelineLaneIndex = 0 | 1 | 2;-export type PipelineLanes = [- PipelineCardId[],- PipelineCardId[],- PipelineCardId[],-];+import { type PipelineCardId } from '../types/pipeline-card-id';+import { type PipelineLaneIndex } from '../types/pipeline-lane-index';+import { type PipelineLanes } from '../types/pipeline-lanes';-// Pulls a card out of whichever lane holds it and splices it into the-// target lane at a bounded index.export function movePipelineCard(lanes: PipelineLanes,cardId: PipelineCardId,diff --git a/packages/twenty-website/src/sections/product-feature/TasksVisual.tsx b/packages/twenty-website/src/sections/product-feature/TasksVisual.tsxindex 8da804bcfb2..e0492f3f5f7 100644--- a/packages/twenty-website/src/sections/product-feature/TasksVisual.tsx+++ b/packages/twenty-website/src/sections/product-feature/TasksVisual.tsx@@ -66,7 +66,7 @@ const Root = styled.div`background-color: ${THEME_LIGHT.background.primary};display: flex;flex-direction: column;- font-family: ${THEME_LIGHT.font.family};+ font-family: var(--font-product), sans-serif;height: 100%;overflow: hidden;width: 100%;