From 1ecea620527eae48a48ad8b79084393eb877b3b7 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 17 Oct 2024 13:44:56 +0800 Subject: [PATCH] add verified tag --- web/app/components/plugins/plugin-detail-panel/index.tsx | 4 ++-- web/app/components/plugins/plugin-detail-panel/mock.ts | 1 + web/app/components/plugins/types.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx index 5aba9e5cf5..aab5a93f66 100644 --- a/web/app/components/plugins/plugin-detail-panel/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/index.tsx @@ -7,7 +7,7 @@ import { RiBugLine, RiCloseLine, RiHardDrive3Line, - // RiVerifiedBadgeLine, + RiVerifiedBadgeLine, } from '@remixicon/react' import type { PluginDetail } from '../types' import { PluginSource } from '../types' @@ -73,7 +73,7 @@ const PluginDetailPanel: FC = ({
- {/* <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" /> */} + {pluginDetail.declaration.verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />} <Badge className='mx-1' text={pluginDetail.version} diff --git a/web/app/components/plugins/plugin-detail-panel/mock.ts b/web/app/components/plugins/plugin-detail-panel/mock.ts index f41d749bc9..98e72086b5 100644 --- a/web/app/components/plugins/plugin-detail-panel/mock.ts +++ b/web/app/components/plugins/plugin-detail-panel/mock.ts @@ -25,6 +25,7 @@ export const toolNotion = { resource: {}, plugins: {}, tool: {}, // TODO + verified: true, }, installation_id: 'jflkdsjoewingljlsadjgoijg-dkfjldajglkajglask-dlfkajdg', tenant_id: 'jflkdsjoewingljlsadjgoijg', diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index c25d9fd1a8..698b4e3532 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -47,6 +47,7 @@ export type PluginDeclaration = { created_at: string resource: any // useless in frontend plugins: any // useless in frontend + verified: boolean tool: PluginToolDeclaration endpoint: PluginEndpointDeclaration model: any // TODO