From f30ebdab7d913b55166f4e21fa2880d911b232ed Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Fri, 30 Oct 2026 14:36:43 +0000 Subject: [PATCH 01/18] refactor(site): rename WithAvatarGroup to AvatarGroup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../{withAvatarGroup.tsx => AvatarGroup.tsx} | 12 ++++++------ apps/site/components/Blog/BlogPostCard/index.tsx | 4 ++-- apps/site/components/withMetaBar.tsx | 4 ++-- apps/site/layouts/Post.tsx | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) rename apps/site/components/{withAvatarGroup.tsx => AvatarGroup.tsx} (62%) diff --git a/apps/site/components/withAvatarGroup.tsx b/apps/site/components/AvatarGroup.tsx similarity index 62% rename from apps/site/components/withAvatarGroup.tsx rename to apps/site/components/AvatarGroup.tsx index f9c3491dd8c92..978bf7dea5abf 100644 --- a/apps/site/components/withAvatarGroup.tsx +++ b/apps/site/components/AvatarGroup.tsx @@ -1,6 +1,6 @@ 'use client'; -import AvatarGroup from '@node-core/ui-components/Common/AvatarGroup'; +import AvatarGroupContainer from '@node-core/ui-components/Common/AvatarGroup'; import Link from '#site/components/Link'; import { getAuthors } from '#site/util/author'; @@ -8,19 +8,19 @@ import { getAuthors } from '#site/util/author'; import type { AuthorProps } from '#site/types'; import type { ComponentProps, FC } from 'react'; -type WithAvatarGroupProps = Omit< - ComponentProps, +type AvatarGroupProps = Omit< + ComponentProps, 'avatars' | 'as' > & AuthorProps; -const WithAvatarGroup: FC = ({ +const AvatarGroup: FC = ({ usernames, names, clickable = true, ...props }) => ( - = ({ /> ); -export default WithAvatarGroup; +export default AvatarGroup; diff --git a/apps/site/components/Blog/BlogPostCard/index.tsx b/apps/site/components/Blog/BlogPostCard/index.tsx index 0951d52022a11..a36b38c5fb576 100644 --- a/apps/site/components/Blog/BlogPostCard/index.tsx +++ b/apps/site/components/Blog/BlogPostCard/index.tsx @@ -1,9 +1,9 @@ import Preview from '@node-core/ui-components/Common/Preview'; import { useTranslations } from 'next-intl'; +import AvatarGroup from '#site/components/AvatarGroup'; import FormattedTime from '#site/components/Common/FormattedTime'; import Link from '#site/components/Link'; -import WithAvatarGroup from '#site/components/withAvatarGroup'; import { mapBlogCategoryToPreviewType } from '#site/util/blog'; import type { BlogCategory } from '#site/types'; @@ -49,7 +49,7 @@ const BlogPostCard: FC = ({ {description &&

{description}

}