From 791289dcf538bf863f7872dcba072efde7529085 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 12 Feb 2026 15:34:48 +0800 Subject: [PATCH] feat: public type --- .../plugins/marketplace/list/template-card.spec.tsx | 10 ++++++++++ .../plugins/marketplace/list/template-card.tsx | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/marketplace/list/template-card.spec.tsx b/web/app/components/plugins/marketplace/list/template-card.spec.tsx index 05fa100949..63a1daa650 100644 --- a/web/app/components/plugins/marketplace/list/template-card.spec.tsx +++ b/web/app/components/plugins/marketplace/list/template-card.spec.tsx @@ -220,6 +220,16 @@ describe('TemplateCard', () => { }) }) + describe('Creator Link', () => { + it('should append publisher_type query to creator link', () => { + const template = createMockTemplate({ publisher_type: 'organization' }) + const { getByText } = render() + + const creatorLink = getByText('test-publisher').closest('a') + expect(creatorLink).toHaveAttribute('href', '/creators/test-publisher?publisher_type=organization') + }) + }) + describe('Deps Plugins', () => { it('should render dep plugin icons', () => { const template = createMockTemplate({ diff --git a/web/app/components/plugins/marketplace/list/template-card.tsx b/web/app/components/plugins/marketplace/list/template-card.tsx index c9d8f3fa00..dca5d06d48 100644 --- a/web/app/components/plugins/marketplace/list/template-card.tsx +++ b/web/app/components/plugins/marketplace/list/template-card.tsx @@ -29,7 +29,7 @@ const TemplateCardComponent = ({ const locale = useLocale() const { t } = useTranslation() const { theme } = useTheme() - const { id, template_name, overview, icon, publisher_handle, usage_count, icon_background, deps_plugins, kind } = template + const { id, template_name, overview, icon, publisher_handle, publisher_type, usage_count, icon_background, deps_plugins, kind } = template const isSandbox = kind === 'sandboxed' const iconUrl = getTemplateIconUrl(template) @@ -74,7 +74,7 @@ const TemplateCardComponent = ({ {t('marketplace.templateCard.by', { ns: 'plugin' })}