diff --git a/service/rankings.go b/service/rankings.go index 01a096dd..46250858 100644 --- a/service/rankings.go +++ b/service/rankings.go @@ -173,8 +173,6 @@ func rankingConfig(period string) (rankingPeriodConfig, error) { return rankingPeriodConfig{id: "month", duration: 30 * 24 * time.Hour, bucketSize: 24 * 3600, labelLayout: "Jan 2", hasPrevious: true}, nil case "year": return rankingPeriodConfig{id: "year", duration: 365 * 24 * time.Hour, bucketSize: 7 * 24 * 3600, labelLayout: "Jan 2", hasPrevious: true}, nil - case "all": - return rankingPeriodConfig{id: "all", bucketSize: 30 * 24 * 3600, labelLayout: "Jan 2006"}, nil default: return rankingPeriodConfig{}, fmt.Errorf("invalid ranking period: %s", period) } diff --git a/web/default/src/features/rankings/components/market-share-section.tsx b/web/default/src/features/rankings/components/market-share-section.tsx index 51bcbc11..9e4acb26 100644 --- a/web/default/src/features/rankings/components/market-share-section.tsx +++ b/web/default/src/features/rankings/components/market-share-section.tsx @@ -31,7 +31,6 @@ const PERIOD_DESCRIPTIONS: Record = { 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 diff --git a/web/default/src/features/rankings/components/models-section.tsx b/web/default/src/features/rankings/components/models-section.tsx index f59a0b14..e28fa6a5 100644 --- a/web/default/src/features/rankings/components/models-section.tsx +++ b/web/default/src/features/rankings/components/models-section.tsx @@ -31,7 +31,6 @@ const PERIOD_DESCRIPTIONS: Record = { 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 diff --git a/web/default/src/features/rankings/components/rankings-hero.tsx b/web/default/src/features/rankings/components/rankings-hero.tsx index 062546a4..f5aa0717 100644 --- a/web/default/src/features/rankings/components/rankings-hero.tsx +++ b/web/default/src/features/rankings/components/rankings-hero.tsx @@ -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 = { diff --git a/web/default/src/features/rankings/index.tsx b/web/default/src/features/rankings/index.tsx index 4fec8a80..98056e9c 100644 --- a/web/default/src/features/rankings/index.tsx +++ b/web/default/src/features/rankings/index.tsx @@ -30,7 +30,7 @@ import { import { useRankings } from './hooks/use-rankings' import type { RankingPeriod } from './types' -const VALID_PERIODS: RankingPeriod[] = ['today', 'week', 'month', 'year', 'all'] +const VALID_PERIODS: RankingPeriod[] = ['today', 'week', 'month', 'year'] export function Rankings() { const { t } = useTranslation() diff --git a/web/default/src/features/rankings/types.ts b/web/default/src/features/rankings/types.ts index ac001f83..1e67e381 100644 --- a/web/default/src/features/rankings/types.ts +++ b/web/default/src/features/rankings/types.ts @@ -22,7 +22,7 @@ For commercial licensing, please contact support@quantumnous.com // // Shape of the real data shown on the /rankings page. -export type RankingPeriod = 'today' | 'week' | 'month' | 'year' | 'all' +export type RankingPeriod = 'today' | 'week' | 'month' | 'year' export type RankingCategoryId = | 'all' diff --git a/web/default/src/routes/rankings/index.tsx b/web/default/src/routes/rankings/index.tsx index f41e22db..71a307d3 100644 --- a/web/default/src/routes/rankings/index.tsx +++ b/web/default/src/routes/rankings/index.tsx @@ -24,7 +24,7 @@ import { Rankings } from '@/features/rankings' const rankingsSearchSchema = z.object({ period: z - .enum(['today', 'week', 'month', 'year', 'all']) + .enum(['today', 'week', 'month', 'year']) .optional() .catch(undefined), })