Skip to content

User page · Modules

1 module · 2 exports · 1 repository · 14 e2e tests · 16 routes

Who imports who · hover a node
Depends onUser page modulesUsed bySeasonPlayerActivity2 …Loaders1 fileComponents1 file

SeasonPlayerActivity

app/features/user-page/core/SeasonPlayerActivity.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
1 loader1 component

Functions & values

function

summarize

:18

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)
function

weeklyPoints

:51

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)