feat(rankings): remove 'all' period option from rankings and related components

This commit is contained in:
CaIon
2026-06-18 17:56:45 +08:00
parent 50784c10ee
commit 21d4d18dfc
7 changed files with 3 additions and 8 deletions
@@ -31,7 +31,6 @@ const PERIOD_DESCRIPTIONS: Record<RankingPeriod, string> = {
week: 'Token share by model author across the past few weeks',
month: 'Token share by model author across the past month',
year: 'Token share by model author across the past year',
all: 'Token share by model author since launch',
}
/** Stable colour palette for vendors, used in both the share chart and the
@@ -31,7 +31,6 @@ const PERIOD_DESCRIPTIONS: Record<RankingPeriod, string> = {
week: 'Weekly token usage by model across the past few weeks',
month: 'Daily token usage by model across the past month',
year: 'Weekly token usage by model across the past year',
all: 'Token usage by model since launch',
}
const TOOLTIP_MAX_ROWS = 10
@@ -25,7 +25,6 @@ const PERIODS: { id: RankingPeriod; labelKey: string }[] = [
{ id: 'week', labelKey: 'Week' },
{ id: 'month', labelKey: 'Month' },
{ id: 'year', labelKey: 'Year' },
{ id: 'all', labelKey: 'All-time' },
]
type RankingsHeroProps = {