Skip to content

User page · Search params & storage

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

The state User page keeps in the URL and in the browser's storage. Every param has a default and never fails to decode, see Search params, and each definition should have an assertRoundTrips test. The definitions of the whole app are listed in the reference.

Search params

URL userResultsSearchParams

app/features/user-page/user-page-search-params.ts:37

ParamValueDefaultLoaderDescription
highlightsOnly v.boolean()truetrue

Only applies to users who have highlighted results.

Resets page

pagepage 1true
tournament resultsFilterNamenulltrue

Resets page

team resultsFilterNamenulltrue

Resets page

mate v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nulltrue

Resets page

minTier numericEnum(TIER_NUMBERS)BEST_TIER_NUMBERtrue

Resets page

maxTier numericEnum(TIER_NUMBERS)WORST_TIER_NUMBERtrue

Resets page

maxPlacement v.nullable(numericEnum(RESULT_PLACEMENT_FILTERS))nulltrue

Resets page

fromYear v.nullable(resultYear)nulltrue

Resets page

Time dependent

toYear v.nullable(resultYear)nulltrue

Resets page

Time dependent

source v.picklist(RESULT_SOURCES)"ALL"true

Resets page

minParticipantCount v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(9999))0true

Resets page

Used in ResultsFiltersBar.tsxu.$identifier.results.server.tsu.$identifier.results.tsx

URL userSeasonsSearchParams

app/features/user-page/user-page-search-params.ts:107

ParamValueDefaultLoaderDescription
season v.nullable(startedSeason)nulltrue

Time dependent

staffDialog v.nullable(v.picklist(SEASONS_STAFF_DIALOGS))nulltrue

Used in u.$identifier.seasons.server.tsu.$identifier.seasons.tsxuser-page-urls.ts

URL userSeasonResultsSearchParams

app/features/user-page/user-page-search-params.ts:114

ParamValueDefaultLoaderDescription
pagepage 1true
source v.picklist(SEASON_RESULT_SOURCES)"ALL"true

Resets page

season v.nullable(startedSeason)nulltrue

Time dependent

Used in u.$identifier.seasons.index.server.tsu.$identifier.seasons.index.tsx

URL userSeasonsStatsSearchParams

app/features/user-page/user-page-search-params.ts:124

ParamValueDefaultLoaderDescription
tab v.picklist(SEASON_STATS_TABS)"overview"true
season v.nullable(startedSeason)nulltrue

Time dependent

Used in u.$identifier.seasons.stats.server.tsu.$identifier.seasons.stats.tsxuser-page-urls.ts

URL userSeasonSummaryGraphicSearchParams

app/features/user-page/user-page-search-params.ts:132

ParamValueDefaultLoaderDescription
season v.nullable(startedSeason)nulltrue

Time dependent

Used in u.$identifier.seasons.summary-graphic.server.tsuser-page-urls.ts

URL userBuildsSearchParams

app/features/user-page/user-page-search-params.ts:136

ParamValueDefaultLoaderDescription
weapon v.nullable(numericEnum(mainWeaponIds))nulltrue

Resets page

visibility v.nullable(v.picklist(BUILD_VISIBILITIES))nulltrue

Resets page

sorting v.boolean()falsefalse

Used in u.$identifier.builds.server.tsu.$identifier.builds.tsx

URL userArtSearchParams

app/features/user-page/user-page-search-params.ts:149

ParamValueDefaultLoaderDescription
source v.picklist(ART_SOURCES)"ALL"false
tag v.nullable(v.string())nullfalse

Used in art-urls.tsu.$identifier.art.tsx

URL userBuildsNewSearchParams

app/features/user-page/user-page-search-params.ts:154No round-trip test

ParamValueDefaultLoaderDescription
buildId v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nulltrue
weapon v.nullable(numericEnum(mainWeaponIds))nulltrue
buildcustom serializedBuildCodecEMPTY_BUILDtrue

Used in u.$identifier.builds.new.server.tsuser-page-urls.ts