The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add Super partner pinning and mark on the website marketplace (#24952)
Rashad Karanouh34da0758c428
diff --git a/packages/twenty-website/src/partners-marketplace/PartnerCard.tsx b/packages/twenty-website/src/partners-marketplace/PartnerCard.tsxindex cbde7097fa1..6d5316afedb 100644--- a/packages/twenty-website/src/partners-marketplace/PartnerCard.tsx+++ b/packages/twenty-website/src/partners-marketplace/PartnerCard.tsx@@ -16,10 +16,12 @@ import {} from '@/tokens';import { CardFrame, type PartnerCardIndexStyle } from './MarketplaceCardFrame';+import { MARKETPLACE_COPY } from './marketplace-copy';import { type MarketplacePartner } from './marketplace-partner';import { PartnerAvatar } from './PartnerAvatar';import { resolvePartnerScopeCards } from './resolve-partner-scope-cards';import { richTextExcerpt } from './rich-text-excerpt';+import { SuperPartnerMark } from './SuperPartnerMark';import { titleCaseFallback } from './title-case-fallback';const CardArticle = styled(CardFrame)`@@ -165,6 +167,9 @@ export function PartnerCard({ partner, index }: PartnerCardProps) {profilePictureUrl={partner.profilePictureUrl}/><HeaderText>+ {partner.superPartner ? (+ <SuperPartnerMark label={i18n._(MARKETPLACE_COPY.superPartner)} />+ ) : null}<PartnerName id={headingId}><NameLink href={profileHref}>{partner.name}</NameLink></PartnerName>diff --git a/packages/twenty-website/src/partners-marketplace/PartnerProfileHeader.tsx b/packages/twenty-website/src/partners-marketplace/PartnerProfileHeader.tsxindex 2a706bd3e46..ea804eb7328 100644--- a/packages/twenty-website/src/partners-marketplace/PartnerProfileHeader.tsx+++ b/packages/twenty-website/src/partners-marketplace/PartnerProfileHeader.tsx@@ -1,5 +1,6 @@import { styled } from '@linaria/react';+import { getServerI18n } from '@/platform/i18n/get-server-i18n';import {EASING,FONT_WEIGHT,@@ -10,8 +11,10 @@ import {spacing,} from '@/tokens';+import { MARKETPLACE_COPY } from './marketplace-copy';import { type MarketplacePartner } from './marketplace-partner';import { ProfileEyebrow } from './ProfileEyebrow';+import { SuperPartnerMark } from './SuperPartnerMark';import { titleCaseFallback } from './title-case-fallback';const Wrapper = styled.div`@@ -53,7 +56,8 @@ export function PartnerProfileHeader({}: {partner: MarketplacePartner;}) {- const eyebrow = [+ const i18n = getServerI18n();+ const locationLine = [partner.city,partner.country ? titleCaseFallback(partner.country) : '',]@@ -62,8 +66,15 @@ export function PartnerProfileHeader({return (<Wrapper>- {eyebrow && <ProfileEyebrow>{eyebrow}</ProfileEyebrow>}+ {partner.superPartner ? (+ <SuperPartnerMark label={i18n._(MARKETPLACE_COPY.superPartner)} />+ ) : locationLine ? (+ <ProfileEyebrow>{locationLine}</ProfileEyebrow>+ ) : null}<Name id="partner-name">{partner.name}</Name>+ {partner.superPartner && locationLine ? (+ <ProfileEyebrow>{locationLine}</ProfileEyebrow>+ ) : null}</Wrapper>);}diff --git a/packages/twenty-website/src/partners-marketplace/SuperPartnerMark.tsx b/packages/twenty-website/src/partners-marketplace/SuperPartnerMark.tsxnew file mode 100644index 00000000000..b8420f1576b--- /dev/null+++ b/packages/twenty-website/src/partners-marketplace/SuperPartnerMark.tsx@@ -0,0 +1,42 @@+import { styled } from '@linaria/react';++import { color, FONT_WEIGHT, fontFamily, fontSize, spacing } from '@/tokens';++const Row = styled.div`+ align-items: center;+ display: flex;+ flex-shrink: 0;+ gap: ${spacing(1.5)};+`;++const Dash = styled.span`+ background-color: ${color('blue')};+ border-radius: 1px;+ flex-shrink: 0;+ height: 7px;+ width: 14px;+`;++const Word = styled.span`+ color: ${color('blue')};+ font-family: ${fontFamily('mono')};+ font-size: ${fontSize(2.5)};+ font-weight: ${FONT_WEIGHT.medium};+ letter-spacing: 0.14em;+ line-height: 1.2;+ text-transform: uppercase;+ white-space: nowrap;+`;++type SuperPartnerMarkProps = {+ label: string;+};++export function SuperPartnerMark({ label }: SuperPartnerMarkProps) {+ return (+ <Row>+ <Dash aria-hidden />+ <Word>{label}</Word>+ </Row>+ );+}diff --git a/packages/twenty-website/src/partners-marketplace/dummy-marketplace-partners.ts b/packages/twenty-website/src/partners-marketplace/dummy-marketplace-partners.tsdeleted file mode 100644index 9c9d818e054..00000000000--- a/packages/twenty-website/src/partners-marketplace/dummy-marketplace-partners.ts+++ /dev/null@@ -1,456 +0,0 @@-import { type RankedMarketplacePartner } from './marketplace-partner';--export const DUMMY_PARTNERS: RankedMarketplacePartner[] = [- {- slug: 'atelier-sigma',- partnerTier: null,- serviceCount: 4,- approvedCaseStudyCount: 3,- approvedCaseStudyWithCoverCount: 2,- rotationKey:- '60973a6d38f6a1a042b35e2e547656b8170aff362d6e64544907f2317d8ff5ae',- name: 'Atelier Sigma',- description: `**Senior CRM partner for venture-backed teams, with Twenty at the core.**--We migrate startups, scale-ups and investment firms onto Twenty and design the RevOps layer around it: data model, pipelines, automations and the integrations that keep everything clean. Five years in, with more than 40 rollouts behind us across France, the UK and the wider EU.--Twenty is the foundation. Around it we build modular GTM stacks that are structured, automated and genuinely maintainable, so your team can run them without us in the room.--#### Who we work with-- Seed to Series C teams moving off spreadsheets or a first CRM-- Teams migrating from Salesforce, HubSpot, Pipedrive, Affinity or Zoho-- Operators who want a system they own, not a black box--#### Why teams pick us-- 100% focused on Twenty and its ecosystem-- Five years and 40+ rollouts running in production-- Open-source-native: we build on the core, not around it`,- calendarLink: 'https://cal.com/atelier-sigma/intro',- partnerScope: ['SOLUTIONING', 'DEVELOPMENT', 'HOSTING'],- region: ['EUROPE', 'MENA'],- languagesSpoken: ['FRENCH', 'ENGLISH'],- hourlyRateUsd: 140,- projectBudgetMinUsd: 8000,- links: {- website: 'https://ateliersigma.com',- linkedin: 'https://linkedin.com/company/atelier-sigma',- x: 'https://x.com/ateliersigma',- github: 'https://github.com/atelier-sigma',- },- profilePictureUrl: 'https://picsum.photos/seed/atelier-sigma-team/600/600',- city: 'Paris',- country: 'France',- skills: ['Migrations', 'RevOps', 'API & SDK'],- services: [- {- title: 'CRM migration',- description:- 'Controlled moves from Salesforce, HubSpot, Pipedrive or spreadsheets. We restructure the data model first, then cut over with no lost history.',- },- {- title: 'RevOps architecture',- description:- 'Pipelines, stages, scoring and reporting designed around how your team actually sells, not a generic template.',- },- {- title: 'Custom Twenty development',- description:- "Workflows, custom objects and API or SDK integrations built on Twenty's open-source core.",- },- {- title: 'Ongoing support',- description:- 'A monthly retainer for changes, training and new automations as the team grows.',- },- ],- portfolio: [- {- client: 'Brevio Health',- title: 'Salesforce to Twenty, 22k contacts, zero downtime',- body: `We restructured a nine-year-old Salesforce org into a clean Twenty data model, then cut a 40-person sales team over in a single weekend.--- 22,000 contacts migrated with full history preserved-- Live on Monday morning with no downtime-- 14 legacy custom objects collapsed into 5`,- imageUrl: 'https://picsum.photos/seed/brevio-health/960/540',- link: 'https://example.com/case/brevio',- },- {- client: 'Lumen Freight',- title: 'A RevOps stack for an outbound team',- body: `Designed the pipelines, lead scoring and Clay plus Lemlist integrations that an outbound growth team runs on day to day.--- Lead scoring wired to enrichment from Clay-- Sequenced outreach synced back into Twenty-- Qualified-meeting throughput up across the quarter`,- imageUrl: 'https://picsum.photos/seed/lumen-freight/960/540',- link: null,- },- {- client: 'Maison Valette',- title: 'Self-hosted Twenty for a regulated client',- body: `Deployed and hardened a self-hosted Twenty instance for a private-bank client with strict EU data residency.--- SSO and audit logging on a private VPC-- EU-only data residency, no third-party processors-- Handover with runbooks and on-call training`,- imageUrl: null,- link: 'https://example.com/case/valette',- },- ],- clients: [- {- name: 'Stripe',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/b/ba/Stripe_Logo%2C_revised_2016.svg',- },- {- name: 'Notion',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/e/e9/Notion-logo.svg',- },- {- name: 'Figma',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/3/33/Figma-logo.svg',- },- {- name: 'Slack',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/b/b9/Slack_Technologies_Logo.svg',- },- {- name: 'Airtable',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/4/4b/Airtable_Logo.svg',- },- {- name: 'Intercom',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/0/0b/Intercom_logotype.png',- },- {- name: 'GitLab',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/e/e1/GitLab_logo.svg',- },- {- name: 'Asana',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/3/3b/Asana_logo.svg',- },- {- name: 'Vercel',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/5/5e/Vercel_logo_black.svg',- },- {- name: 'Dropbox',- logoUrl:- 'https://upload.wikimedia.org/wikipedia/commons/c/cb/Dropbox_logo_2017.svg',- },- ],- },- {- slug: 'northbeam-studio',- partnerTier: null,- serviceCount: 1,- approvedCaseStudyCount: 1,- approvedCaseStudyWithCoverCount: 1,- rotationKey:- '4a14150fe472b8ae30f13d804960d398aa3983e3188d744d715fde00a430c12b',- name: 'Northbeam Studio',- description:- 'RevOps and reporting for B2B SaaS teams that have outgrown spreadsheets and their first CRM. We turn messy pipelines into forecasts leadership actually trusts, redesign stages and scoring around how reps really sell, wire up the dashboards your board keeps asking for, connect the enrichment and outreach tools your growth team already runs, and document every last piece of it so the system keeps working long after we hand it back over. Based in London, working across the UK and EU in English, and yes this sentence is deliberately far too long to prove the card never breaks no matter how much a partner writes.',- calendarLink: 'https://cal.com/northbeam-studio/intro',- partnerScope: ['ADVISORY', 'SOLUTIONING'],- region: ['EUROPE', 'US'],- languagesSpoken: ['ENGLISH'],- hourlyRateUsd: 175,- projectBudgetMinUsd: 12000,- links: {- website: 'https://northbeamstudio.co.uk',- linkedin: 'https://linkedin.com/company/northbeam-studio',- x: 'https://x.com/northbeamstudio',- github: null,- },- profilePictureUrl: '',- city: 'London',- country: 'United Kingdom',- skills: ['RevOps', 'Reporting', 'Forecasting'],- services: [- {- title: 'RevOps advisory',- description:- 'Pipeline design, stage definitions and forecasting models tuned to how your team actually sells.',- },- ],- portfolio: [- {- client: 'Helio Analytics',- title: 'Board-ready forecasting on Twenty',- body: `Rebuilt pipeline stages and a weighted forecast model so leadership could trust weekly numbers again.--- Stage definitions aligned to rep behaviour-- Board dashboard wired to live Twenty data-- Forecast accuracy improved within one quarter`,- imageUrl: 'https://picsum.photos/seed/northbeam-helio/900/360',- link: 'https://example.com/case/helio',- },- ],- clients: [- { name: 'HubSpot', logoUrl: 'https://cdn.simpleicons.org/hubspot' },- { name: 'Segment', logoUrl: 'https://cdn.simpleicons.org/segment' },- { name: 'Amplitude', logoUrl: 'https://cdn.simpleicons.org/amplitude' },- ],- },- {- slug: '9-dots-ventures',- partnerTier: null,- serviceCount: 2,- approvedCaseStudyCount: 1,- approvedCaseStudyWithCoverCount: 1,- rotationKey:- '8b2cb1cea581b13a5664a71434b204234674084488298db6ea2ce1f3d327b21b',- name: '9 Dots Ventures',- description:- 'Boutique CRM implementer for real-estate workflows and WhatsApp automation, with self-hosted Twenty deployments across APAC.',- calendarLink: 'https://cal.com/9dots-ventures/intro',- partnerScope: ['DEVELOPMENT', 'HOSTING'],- region: ['APAC'],- languagesSpoken: ['ENGLISH', 'CHINESE'],- hourlyRateUsd: 95,- projectBudgetMinUsd: 6000,- links: {- website: 'https://9dotsventures.sg',- linkedin: 'https://linkedin.com/company/9-dots-ventures',- x: null,- github: 'https://github.com/9dots-ventures',- },- profilePictureUrl: '',- city: 'Singapore',- country: 'Singapore',- skills: ['Self-hosted', 'WhatsApp automation', 'Real estate'],- services: [- {- title: 'Self-hosted Twenty',- description:- 'Private deployments on your infrastructure with backups, monitoring and upgrade runbooks.',- },- {- title: 'WhatsApp workflow automation',- description:- 'Lead capture and follow-up flows that connect WhatsApp conversations back into Twenty.',- },- ],- portfolio: [- {- client: 'Harbour Estates',- title: 'WhatsApp leads into Twenty for a property group',- body: `Connected WhatsApp Business to Twenty so inbound property enquiries land as qualified leads automatically.--- WhatsApp conversations synced to contact records-- Agent assignment rules based on listing region-- Response-time SLAs tracked in Twenty`,- imageUrl: 'https://picsum.photos/seed/9dots-harbour/900/360',- link: 'https://example.com/case/harbour',- },- ],- clients: [- { name: 'Twilio', logoUrl: 'https://cdn.simpleicons.org/twilio' },- { name: 'Docker', logoUrl: 'https://cdn.simpleicons.org/docker' },- {- name: 'DigitalOcean',- logoUrl: 'https://cdn.simpleicons.org/digitalocean',- },- ],- },- {- slug: 'halden-roe',- partnerTier: null,- serviceCount: 2,- approvedCaseStudyCount: 0,- approvedCaseStudyWithCoverCount: 0,- rotationKey:- 'ce4f7a4b57e3d8be6da3eef9420c78ae6b83d2b94e635b5ddeb7e972f15b134b',- name: 'Halden & Roe',- description:- 'Migrations off legacy CRMs for mid-market teams. German and English, with EU data residency by default.',- calendarLink: 'https://cal.com/halden-roe/intro',- partnerScope: ['SOLUTIONING', 'SUPPORT'],- region: ['EUROPE'],- languagesSpoken: ['GERMAN', 'ENGLISH'],- hourlyRateUsd: 120,- projectBudgetMinUsd: 10000,- links: {- website: 'https://haldenroe.de',- linkedin: 'https://linkedin.com/company/halden-roe',- x: null,- github: null,- },- profilePictureUrl: '',- city: 'Berlin',- country: 'Germany',- skills: ['Migrations', 'EU compliance'],- services: [- {- title: 'Legacy CRM migration',- description:- 'Structured cutovers from Salesforce, Dynamics or Zoho with data cleanup and user training.',- },- {- title: 'Post-go-live support',- description:- 'Retained support for schema changes, automations and onboarding new team members.',- },- ],- portfolio: [],- clients: [],- },- {- slug: 'verza-collective',- partnerTier: null,- serviceCount: 2,- approvedCaseStudyCount: 0,- approvedCaseStudyWithCoverCount: 0,- rotationKey:- '8a9b0dd87072f7ad5a3d007b4b15c89d78f5015b7f358c8b5ad0486c75709e0f',- name: 'Verza Collective',- description:- 'No-code operations and automations for scaling startups. 150 projects shipped across Europe and LATAM, from first pipeline to full RevOps tooling.',- calendarLink: 'https://cal.com/verza-collective/intro',- partnerScope: [- 'ADVISORY',- 'SOLUTIONING',- 'DEVELOPMENT',- 'HOSTING',- 'SUPPORT',- ],- region: ['EUROPE', 'LATAM'],- languagesSpoken: ['SPANISH', 'ENGLISH'],- hourlyRateUsd: 110,- projectBudgetMinUsd: 7500,- links: {- website: 'https://verzacollective.com',- linkedin: 'https://linkedin.com/company/verza-collective',- x: 'https://x.com/verzacollective',- github: null,- },- profilePictureUrl: '',- city: 'Madrid',- country: 'Spain',- skills: ['Automations', 'No-code ops', 'RevOps'],- services: [- {- title: 'Operations automation',- description:- 'Workflows and integrations that remove manual handoffs between sales, success and finance.',- },- {- title: 'Twenty rollout',- description:- 'End-to-end implementation from data model design through team training and documentation.',- },- ],- portfolio: [],- clients: [],- },- {- slug: 'kioko-labs',- partnerTier: null,- serviceCount: 1,- approvedCaseStudyCount: 0,- approvedCaseStudyWithCoverCount: 0,- rotationKey:- '438cb0009a662ad2c228caf645925fb2dcbfd55d5d9fa737ca28d87a5dd969b9',- name: 'Kioko Labs',- description:- 'Self-hosted Twenty deployments and API work for teams across Africa and the Gulf.',- calendarLink: 'https://cal.com/kioko-labs/intro',- partnerScope: ['HOSTING', 'DEVELOPMENT'],- region: ['AFRICA', 'MENA'],- languagesSpoken: ['ENGLISH', 'SWAHILI'],- hourlyRateUsd: 85,- projectBudgetMinUsd: 5000,- links: {- website: 'https://kiokolabs.co.ke',- linkedin: 'https://linkedin.com/company/kioko-labs',- x: null,- github: 'https://github.com/kioko-labs',- },- profilePictureUrl: '',- city: 'Nairobi',- country: 'Kenya',- skills: ['Self-hosted', 'API integrations'],- services: [- {- title: 'Managed Twenty hosting',- description:- 'Secure self-hosted instances with monitoring, backups and regional data residency options.',- },- ],- portfolio: [],- clients: [],- },- {- slug: 'tomas-brandt',- partnerTier: null,- serviceCount: 0,- approvedCaseStudyCount: 0,- approvedCaseStudyWithCoverCount: 0,- rotationKey:- '2915f4495ee1d953cfdfbcd168d6a0dc6d6b0c7bd22e06797c21a2e099631533',- name: 'Tomas Brandt',- description:- 'Independent Twenty consultant, ex-Salesforce admin. Available for short solutioning engagements.',- calendarLink: 'https://cal.com/tomas-brandt/intro',- partnerScope: ['SOLUTIONING'],- region: ['US'],- languagesSpoken: ['ENGLISH'],- hourlyRateUsd: null,- projectBudgetMinUsd: null,- links: {- website: null,- linkedin: 'https://linkedin.com/in/tomas-brandt',- x: null,- github: null,- },- profilePictureUrl: '',- city: 'Oakland',- country: 'United States',- skills: ['Solutioning'],- services: [],- portfolio: [],- clients: [],- },- {- slug: 'benjamin-reynolds',- partnerTier: null,- serviceCount: 0,- approvedCaseStudyCount: 0,- approvedCaseStudyWithCoverCount: 0,- rotationKey:- '1d446fd5709cc17ab3de6771fedc591056498ee55831703cc4d115457b1494df',- name: 'Benjamin Reynolds',- description: '',- calendarLink: '',- partnerScope: ['SOLUTIONING'],- region: ['US'],- languagesSpoken: ['ENGLISH'],- hourlyRateUsd: null,- projectBudgetMinUsd: null,- links: {- website: null,- linkedin: null,- x: null,- github: null,- },- profilePictureUrl: '',- city: 'Oakland',- country: 'United States',- skills: [],- services: [],- portfolio: [],- clients: [],- },-];diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.tsindex d1fb79558af..01a7df6e9e7 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts@@ -64,6 +64,7 @@ describe('fetchLiveMarketplacePartners', () => {services: [],portfolio: [],clients: [],+ superPartner: false,partnerTier: 'ADVANCED',serviceCount: 2,approvedCaseStudyCount: 3,@@ -96,6 +97,39 @@ describe('fetchLiveMarketplacePartners', () => {rotationKey: 'weekly-key',};+ it('reads a missing superPartner as false so an old API still ranks', async () => {+ mockedFetch.mockResolvedValue({+ ok: true,+ partners: [rankablePartner],+ });++ const [partner] = await fetchLiveMarketplacePartners();++ expect(partner.superPartner).toBe(false);+ });++ it('reads superPartner true from the API', async () => {+ mockedFetch.mockResolvedValue({+ ok: true,+ partners: [{ ...rankablePartner, superPartner: true }],+ });++ const [partner] = await fetchLiveMarketplacePartners();++ expect(partner.superPartner).toBe(true);+ });++ it('reads superPartner null as false', async () => {+ mockedFetch.mockResolvedValue({+ ok: true,+ partners: [{ ...rankablePartner, superPartner: null }],+ });++ const [partner] = await fetchLiveMarketplacePartners();++ expect(partner.superPartner).toBe(false);+ });+it.each([['rotationKey', { rotationKey: '' }],['serviceCount', { serviceCount: undefined }],diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.tsindex b557e437a70..c40a22f9a89 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts@@ -32,6 +32,7 @@ type ApiPartner = {approvedCaseStudyCount: number;approvedCaseStudyWithCoverCount: number;rotationKey: string;+ superPartner?: boolean | null;};type ApiResponse = {@@ -130,6 +131,7 @@ export async function fetchLiveMarketplacePartners(): Promise<services: [],portfolio: [],clients: [],+ superPartner: apiPartner.superPartner === true,partnerTier: readPartnerTier(apiPartner.partnerTier),serviceCount: apiPartner.serviceCount,approvedCaseStudyCount: apiPartner.approvedCaseStudyCount,diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.test.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.test.tsindex f7e92e881d7..dd59e88840f 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.test.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.test.ts@@ -7,6 +7,27 @@ const mockedFetch = partnersApiFetch as jest.MockedFunction<typeof partnersApiFetch>;+const profilePayload = {+ name: 'Acme',+ slug: 'acme',+ introduction: 'Hi',+ languagesSpoken: ['ENGLISH'],+ partnerScope: ['ADVISORY'],+ region: ['US'],+ calendarLink: null,+ hourlyRate: null,+ projectBudgetMin: null,+ linkedin: null,+ website: null,+ profilePicture: null,+ profileLinks: [],+ skills: null,+ city: null,+ country: null,+ services: [],+ portfolio: [],+};+describe('fetchLivePartnerProfile', () => {afterEach(() => jest.clearAllMocks());@@ -78,6 +99,29 @@ describe('fetchLivePartnerProfile', () => {},],clients: [],+ superPartner: false,+ });+ });++ it('reads superPartner true from the profile API', async () => {+ mockedFetch.mockResolvedValue({+ ok: true,+ partner: { ...profilePayload, superPartner: true },+ });++ expect(await fetchLivePartnerProfile('acme')).toMatchObject({+ superPartner: true,+ });+ });++ it('reads superPartner null as false', async () => {+ mockedFetch.mockResolvedValue({+ ok: true,+ partner: { ...profilePayload, superPartner: null },+ });++ expect(await fetchLivePartnerProfile('acme')).toMatchObject({+ superPartner: false,});});diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.tsindex c273d9a1d26..82dc36df3e0 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-partner-profile.ts@@ -30,6 +30,7 @@ type ApiProfilePartner = {country: string | null;services: PartnerService[];portfolio: PartnerCaseStudy[];+ superPartner?: boolean | null;};type ApiProfileResponse =@@ -67,6 +68,7 @@ const mapProfilePartner = (services: apiPartner.services ?? [],portfolio: apiPartner.portfolio ?? [],clients: [],+ superPartner: apiPartner.superPartner === true,};};diff --git a/packages/twenty-website/src/partners-marketplace/filter-partners.test.ts b/packages/twenty-website/src/partners-marketplace/filter-partners.test.tsindex 415e005cd77..8fb1156d88b 100644--- a/packages/twenty-website/src/partners-marketplace/filter-partners.test.ts+++ b/packages/twenty-website/src/partners-marketplace/filter-partners.test.ts@@ -25,6 +25,7 @@ const partner = (city: '',country: '',skills: [],+ superPartner: false,services: [],portfolio: [],clients: [],diff --git a/packages/twenty-website/src/partners-marketplace/get-marketplace-partner-by-slug.ts b/packages/twenty-website/src/partners-marketplace/get-marketplace-partner-by-slug.tsindex 5c4cb1846a6..9123ed4bcaf 100644--- a/packages/twenty-website/src/partners-marketplace/get-marketplace-partner-by-slug.ts+++ b/packages/twenty-website/src/partners-marketplace/get-marketplace-partner-by-slug.ts@@ -1,15 +1,8 @@-import { DUMMY_PARTNERS } from './dummy-marketplace-partners';import { fetchLivePartnerProfile } from './fetch-live-partner-profile';import { type MarketplacePartner } from './marketplace-partner';-const useDummy = process.env.NEXT_PUBLIC_USE_DUMMY_PARTNERS === '1';-export const getMarketplacePartnerBySlug = async (slug: string,): Promise<MarketplacePartner | undefined> => {- if (useDummy) {- return DUMMY_PARTNERS.find((partner) => partner.slug === slug);- }-return fetchLivePartnerProfile(slug);};diff --git a/packages/twenty-website/src/partners-marketplace/get-marketplace-partners.ts b/packages/twenty-website/src/partners-marketplace/get-marketplace-partners.tsindex d04f7991aee..2a3b4854b7e 100644--- a/packages/twenty-website/src/partners-marketplace/get-marketplace-partners.ts+++ b/packages/twenty-website/src/partners-marketplace/get-marketplace-partners.ts@@ -1,10 +1,7 @@-import { DUMMY_PARTNERS } from './dummy-marketplace-partners';import { fetchLiveMarketplacePartners } from './fetch-live-marketplace-partners';import { type MarketplacePartner } from './marketplace-partner';import { rankPartners } from './rank-partners';-const useDummy = process.env.NEXT_PUBLIC_USE_DUMMY_PARTNERS === '1';-// The ranked list crosses a client boundary, so React serializes whatever it// carries into the page source. The ranking fields are inputs to the order, not// page content: partnerTier is an internal classification the UI never renders,@@ -13,9 +10,7 @@ const useDummy = process.env.NEXT_PUBLIC_USE_DUMMY_PARTNERS === '1';export const getMarketplacePartners = async (): Promise<MarketplacePartner[]> => {- const partners = useDummy- ? DUMMY_PARTNERS- : await fetchLiveMarketplacePartners();+ const partners = await fetchLiveMarketplacePartners();return rankPartners(partners).map(({diff --git a/packages/twenty-website/src/partners-marketplace/marketplace-copy.ts b/packages/twenty-website/src/partners-marketplace/marketplace-copy.tsindex 21d0e17c35d..7cdf40b6ace 100644--- a/packages/twenty-website/src/partners-marketplace/marketplace-copy.ts+++ b/packages/twenty-website/src/partners-marketplace/marketplace-copy.ts@@ -3,4 +3,5 @@ import { msg } from '@lingui/core/macro';// Shared marketplace vocabulary — keep list filters and profile sections aligned.export const MARKETPLACE_COPY = {partnerScopeHeading: msg`What they cover`,+ superPartner: msg`Super partner`,} as const;diff --git a/packages/twenty-website/src/partners-marketplace/marketplace-partner.ts b/packages/twenty-website/src/partners-marketplace/marketplace-partner.tsindex 74371cf059a..3c1cdb9e883 100644--- a/packages/twenty-website/src/partners-marketplace/marketplace-partner.ts+++ b/packages/twenty-website/src/partners-marketplace/marketplace-partner.ts@@ -35,6 +35,7 @@ export type MarketplacePartner = {city: string;country: string;skills: readonly string[];+ superPartner: boolean;services: readonly PartnerService[];portfolio: readonly PartnerCaseStudy[];clients: readonly PartnerClient[];diff --git a/packages/twenty-website/src/partners-marketplace/rank-partners.test.ts b/packages/twenty-website/src/partners-marketplace/rank-partners.test.tsindex e222bc4b4ea..2863b6f17b5 100644--- a/packages/twenty-website/src/partners-marketplace/rank-partners.test.ts+++ b/packages/twenty-website/src/partners-marketplace/rank-partners.test.ts@@ -23,6 +23,7 @@ const base: RankedMarketplacePartner = {city: '',country: '',skills: [],+ superPartner: false,services: [],portfolio: [],clients: [],@@ -179,6 +180,87 @@ test('weekly rotation wins when completeness and tier are equal', () => {).toEqual(['ordinary-name', 'hash-name']);});+test('super partner pins above completeness and tier', () => {+ const thinSuper = {+ ...base,+ slug: 'thin-super',+ superPartner: true,+ partnerTier: 'NEW' as const,+ };+ const completeAdvanced = {+ ...base,+ slug: 'complete-advanced',+ superPartner: false,+ partnerTier: 'ADVANCED' as const,+ serviceCount: 4,+ approvedCaseStudyCount: 3,+ approvedCaseStudyWithCoverCount: 3,+ description: 'x'.repeat(120),+ };++ expect(+ rankPartners([completeAdvanced, thinSuper]).map(({ slug }) => slug),+ ).toEqual(['thin-super', 'complete-advanced']);+});++test('super partners keep completeness among themselves', () => {+ const thinSuper = {+ ...base,+ slug: 'thin-super',+ superPartner: true,+ rotationKey: 'a',+ };+ const completeSuper = {+ ...base,+ slug: 'complete-super',+ superPartner: true,+ serviceCount: 1,+ rotationKey: 'z',+ };++ expect(+ rankPartners([thinSuper, completeSuper]).map(({ slug }) => slug),+ ).toEqual(['complete-super', 'thin-super']);+});++test('super partners keep partner tier when completeness is equal', () => {+ const newSuper = {+ ...base,+ slug: 'new-super',+ superPartner: true,+ partnerTier: 'NEW' as const,+ };+ const advancedSuper = {+ ...base,+ slug: 'advanced-super',+ superPartner: true,+ partnerTier: 'ADVANCED' as const,+ };++ expect(+ rankPartners([newSuper, advancedSuper]).map(({ slug }) => slug),+ ).toEqual(['advanced-super', 'new-super']);+});++test('super partners keep weekly rotation when completeness and tier are equal', () => {+ const lateSuper = {+ ...base,+ slug: 'late-super',+ superPartner: true,+ rotationKey: 'z',+ };+ const earlySuper = {+ ...base,+ slug: 'early-super',+ superPartner: true,+ rotationKey: 'a',+ };++ expect(rankPartners([lateSuper, earlySuper]).map(({ slug }) => slug)).toEqual(+ ['early-super', 'late-super'],+ );+});+test('the description threshold sits at one hundred and twenty characters', () => {expect(completenessScore({ ...base, description: 'x'.repeat(119) })).toBe(0);expect(completenessScore({ ...base, description: 'x'.repeat(120) })).toBe(2);diff --git a/packages/twenty-website/src/partners-marketplace/rank-partners.ts b/packages/twenty-website/src/partners-marketplace/rank-partners.tsindex 4efb585bac1..c4af879a550 100644--- a/packages/twenty-website/src/partners-marketplace/rank-partners.ts+++ b/packages/twenty-website/src/partners-marketplace/rank-partners.ts@@ -19,6 +19,7 @@ export const rankPartners = (.slice().sort((left, right) =>+ Number(right.superPartner) - Number(left.superPartner) ||completenessScore(right) - completenessScore(left) ||partnerTierWeight(right) - partnerTierWeight(left) ||left.rotationKey.localeCompare(right.rotationKey),diff --git a/packages/twenty-website/src/partners-marketplace/use-marketplace-filter-state.ts b/packages/twenty-website/src/partners-marketplace/use-marketplace-filter-state.tsindex 430ca7fe89d..174b1277b69 100644--- a/packages/twenty-website/src/partners-marketplace/use-marketplace-filter-state.ts+++ b/packages/twenty-website/src/partners-marketplace/use-marketplace-filter-state.ts@@ -36,8 +36,8 @@ export const useMarketplaceFilterState = (): MarketplaceFilterState => {const writeCriteria = useCallback((next: FilterCriteria) => {- const query = buildFilterQuery(next);- router.replace(query ? `${pathname}?${query}` : pathname, {+ const nextQuery = buildFilterQuery(next);+ router.replace(nextQuery ? `${pathname}?${nextQuery}` : pathname, {scroll: false,});},