📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
legacy plan badge
Blue Mousecd3e8901b9c2
diff --git a/web/app/components/pricing/BillingPricing.tsx b/web/app/components/pricing/BillingPricing.tsxindex 9516c87ca..c8ed9c993 100644--- a/web/app/components/pricing/BillingPricing.tsx+++ b/web/app/components/pricing/BillingPricing.tsx@@ -4,6 +4,7 @@ import dayjs from 'dayjs'import _includes from 'lodash/includes'import _isNil from 'lodash/isNil'import _map from 'lodash/map'+import { CircleHelpIcon } from 'lucide-react'import React, { memo, useEffect, useMemo, useState } from 'react'import { Trans, useTranslation } from 'react-i18next'import { Link } from 'react-router'@@ -22,9 +23,11 @@ import {import { DEFAULT_METAINFO, Metainfo } from '~/lib/models/Metainfo'import { useAuth } from '~/providers/AuthProvider'import { useTheme } from '~/providers/ThemeProvider'+import { Badge } from '~/ui/Badge'import Button from '~/ui/Button'import Loader from '~/ui/Loader'import Modal from '~/ui/Modal'+import Tooltip from '~/ui/Tooltip'import { cn } from '~/utils/generic'import routes from '~/utils/routes'@@ -284,6 +287,25 @@ const BillingPricing = ({ lastEvent }: BillingPricingProps) => {<span className='text-sm text-gray-500 dark:text-gray-400'>{t('pricing.eventsPerMonth')}</span></div><div className='flex items-center gap-3 text-sm'>+ {tier.legacy ? (+ <Badge+ label={+ <Tooltip+ text={t('pricing.legacyDescription')}+ tooltipNode={+ <span className='flex items-center gap-1'>+ {t('pricing.legacy')}+ <CircleHelpIcon+ className='size-4 stroke-yellow-800 dark:stroke-yellow-500'+ strokeWidth={1.5}+ />+ </span>+ }+ />+ }+ colour='yellow'+ />+ ) : null}<div className='text-sm'><span className='font-semibold text-black dark:text-white'>{currency.symbol}diff --git a/web/app/ui/Badge.tsx b/web/app/ui/Badge.tsxindex fb10fa51a..2325f2725 100644--- a/web/app/ui/Badge.tsx+++ b/web/app/ui/Badge.tsx@@ -1,7 +1,9 @@+import React from 'react'+import { cn } from '~/utils/generic'export interface BadgeProps {- label: string+ label: React.ReactNodeclassName?: stringcolour?: 'red' | 'yellow' | 'green' | 'indigo' | 'slate' | 'sky'}diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex 694c753eb..57cc62848 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -1290,6 +1290,7 @@"subscribe": "Subscribe","free": "Free","legacy": "Legacy",+ "legacyDescription": "This plan or pricing is no longer available for new users. It is still available for existing users.","perMonth": "mo","perYear": "yr","yourPlan": "Your plan",