Skip to content

Include own level relations in level responses#1019

Merged
Toastbrot236 merged 7 commits intoLittleBigRefresh:mainfrom
Toastbrot236:level-own-relation-include
Feb 16, 2026
Merged

Include own level relations in level responses#1019
Toastbrot236 merged 7 commits intoLittleBigRefresh:mainfrom
Toastbrot236:level-own-relation-include

Conversation

@Toastbrot236
Copy link
Contributor

Makes ApiGameLevelResponse include an ApiGameLevelOwnRelationsResponse attribute, which is not null if the user is signed in. This way clients like refresh-web can also show various statistics, like whether the user has played or hearted a level, on level listings without having to call the dedicated relations endpoint for every level. This also means not having to wait for the relations request on level detail pages. Actually using these included stats, instead of requesting them separately, will require a PR for refresh-web.

This PR also introduces a few new statistics to ApiGameLevelOwnRelationsResponse, like the user's level rating and their total completion count.

@Toastbrot236 Toastbrot236 merged commit 14cde6a into LittleBigRefresh:main Feb 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant