SeasonPlayerActivity
app/features/user-page/core/SeasonPlayerActivity.tsNo overview comment at the top of the file.
- Imports
- no other modules
- Used by
- 1 loader1 component
Functions & values
Buckets the user's sets per week and per player they played with or against. The weeks span from the week of the user's first set to the week of their last.
export function summarize(participants: SetParticipant[])
Unit tests (4)
Loaders/u/:identifier/seasons/stats
Sets played per week with zeroes filled in for the weeks without any, as { x: week start, y: sets } points.
export function weeklyPoints({ weeks, setsPerWeek, }: { weeks: number[]; setsPerWeek: SetsPerWeek; })
Unit tests (1)
Componentsuser-page/SeasonPlayersTable.tsx