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
-2
View File
@@ -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)
}