From 53e9b729fb998a7bbffff44c82b4fce5acaecffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Ara=C3=BAjo?= Date: Fri, 13 Feb 2026 20:22:11 -0300 Subject: [PATCH 1/2] feat: supporters improvements --- apps/site/components/Common/Supporters/index.tsx | 3 +++ apps/site/next-data/generators/supportersData.mjs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/site/components/Common/Supporters/index.tsx b/apps/site/components/Common/Supporters/index.tsx index 06dddf7f23b44..d06abd357840b 100644 --- a/apps/site/components/Common/Supporters/index.tsx +++ b/apps/site/components/Common/Supporters/index.tsx @@ -1,5 +1,7 @@ import Avatar from '@node-core/ui-components/Common/AvatarGroup/Avatar'; +import { getAcronymFromString } from '#site/util/string'; + import type { Supporter } from '#site/types'; import type { FC } from 'react'; @@ -12,6 +14,7 @@ const SupportersList: FC = ({ supporters }) => ( {supporters.map(({ name, image, profile }, i) => ( Date: Fri, 13 Feb 2026 20:30:49 -0300 Subject: [PATCH 2/2] refactor: review --- apps/site/next-data/generators/supportersData.mjs | 6 ++++-- apps/site/types/supporters.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/site/next-data/generators/supportersData.mjs b/apps/site/next-data/generators/supportersData.mjs index 3bcad6c63330f..0a3423918ea1a 100644 --- a/apps/site/next-data/generators/supportersData.mjs +++ b/apps/site/next-data/generators/supportersData.mjs @@ -19,8 +19,10 @@ async function fetchOpenCollectiveData() { name, image, url: website, - // If profile starts with 'guest-', it's a non-existing account - profile: profile.includes('guest-') ? null : profile, + // If profile starts with the guest- prefix, it's a non-existing account + profile: profile.startsWith('https://opencollective.com/guest-') + ? undefined + : profile, source: 'opencollective', })); diff --git a/apps/site/types/supporters.ts b/apps/site/types/supporters.ts index 5da04e07c50ca..ea7b06008cfbd 100644 --- a/apps/site/types/supporters.ts +++ b/apps/site/types/supporters.ts @@ -2,7 +2,7 @@ export type Supporter = { name: string; image: string; url: string; - profile: string; + profile?: string; source: T; };