From 4bb225c7eea1923fcd941ab5d5abb811a863877c Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Thu, 13 Nov 2025 17:16:16 +0800 Subject: [PATCH] feat: add tooltip in api rate limit card --- web/app/components/billing/plan/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/billing/plan/index.tsx b/web/app/components/billing/plan/index.tsx index 38483eadb9..48fa23590c 100644 --- a/web/app/components/billing/plan/index.tsx +++ b/web/app/components/billing/plan/index.tsx @@ -12,6 +12,7 @@ import { RiSpeedLine, } from '@remixicon/react' import { Plan, SelfHostedPlan } from '../type' +import { NUM_INFINITE } from '../config' import VectorSpaceInfo from '../usage-info/vector-space-info' import AppsInfo from '../usage-info/apps-info' import UpgradeBtn from '../upgrade-btn' @@ -137,6 +138,7 @@ const PlanComp: FC = ({ usage={usage.apiRateLimit} total={total.apiRateLimit} unit={perMonthUnit} + tooltip={total.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string} />