Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
21d4d18d
authored
Jun 18, 2026
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(rankings): remove 'all' period option from rankings and related components
parent
50784c10
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
8 deletions
+3
-8
service/rankings.go
+0
-2
web/default/src/features/rankings/components/market-share-section.tsx
+0
-1
web/default/src/features/rankings/components/models-section.tsx
+0
-1
web/default/src/features/rankings/components/rankings-hero.tsx
+0
-1
web/default/src/features/rankings/index.tsx
+1
-1
web/default/src/features/rankings/types.ts
+1
-1
web/default/src/routes/rankings/index.tsx
+1
-1
No files found.
service/rankings.go
View file @
21d4d18d
...
...
@@ -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
)
}
...
...
web/default/src/features/rankings/components/market-share-section.tsx
View file @
21d4d18d
...
...
@@ -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
...
...
web/default/src/features/rankings/components/models-section.tsx
View file @
21d4d18d
...
...
@@ -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
...
...
web/default/src/features/rankings/components/rankings-hero.tsx
View file @
21d4d18d
...
...
@@ -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
=
{
...
...
web/default/src/features/rankings/index.tsx
View file @
21d4d18d
...
...
@@ -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
()
...
...
web/default/src/features/rankings/types.ts
View file @
21d4d18d
...
...
@@ -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'
...
...
web/default/src/routes/rankings/index.tsx
View file @
21d4d18d
...
...
@@ -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
),
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment