Skip to content

Trophies · Modules

2 modules · 11 exports · 1 repository · 6 e2e tests · 7 routes

Who imports who · hover a node
Depends onTrophies modulesUsed byProgressiontournament-br…TrophyBackfill.serverXpTrophy10 exportsActions1 fileRoutes4 filesLoaders2 filesRepositories1 fileComponents2 filesOther2 files

TrophyBackfill

serverapp/features/trophies/core/TrophyBackfill.server.ts

No overview comment at the top of the file.

Imports
Progression
Used by
1 action1 route

Functions & values

Unit tests not about one export (1)

Not shown, only used by tests: eligibleWinners

XpTrophy

app/features/trophies/core/XpTrophy.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
2 loaders3 routes1 repository2 components2 other

Types

interface

Variant

no JSDoc:178
export interface Variant {
	category: Category;
	milestone: Milestone;
}

Functions & values

const

VARIANTS

no JSDoc:184
export const VARIANTS: ReadonlyArray<Variant & { code: string; name: string }> =
	weaponCategories.flatMap(({ name }) =>
		MILESTONES.map(({ value }) => {
			const variant = { category: toCategory(name), milestone: value };
			return { ...variant, code: code(variant), name: variantName(variant) };
		}),
	);
Unit tests (2)
function

code

no JSDoc:192
export function code({ category, milestone }: Variant)
const

CODE_LIKE_PATTERN

no JSDoc:197
export const CODE_LIKE_PATTERN = `${CODE_PREFIX}%`;
function

parseCode

no JSDoc:199
export function parseCode(trophyCode: string | null | undefined)
Unit tests (2)
function

categoryKey

no JSDoc:205
export function categoryKey(category: Category)
function

categoryWeaponIds

no JSDoc:215
export function categoryWeaponIds(category: Category): readonly MainWeaponId[]
function

awards

no JSDoc:222
export function awards(
	placements: ReadonlyArray<{
		userId: number;
		weaponSplId: MainWeaponId;
		power: number;
	}>,
)
Unit tests (2)
function

division

no JSDoc:251
export function division(
	placements: ReadonlyArray<{
		weaponSplId: MainWeaponId;
		power: number;
		region: XRankPlacementRegion;
	}>,
	{ category, milestone }: Variant,
): XRankPlacementRegion | null
Unit tests (1)
Unit tests not about one export (1)

Not shown, only used by tests: milestoneFor