Skip to content

Implement level labels - #942

Merged
jvyden merged 18 commits into
LittleBigRefresh:mainfrom
Toastbrot236:labels
Sep 19, 2025
Merged

Implement level labels#942
jvyden merged 18 commits into
LittleBigRefresh:mainfrom
Toastbrot236:labels

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor

This implements:

  • An enum containing hopefully all labels, aswell as some methods to (de)serialize them for the game
  • The ability for publishers to set up to 5 labels for their levels
  • The ability to filter levels by publisher labels in-game
  • Migrates review labels to be stored using List<Label> instead of string
  • Adds some label sanitization
  • When level statistics get recalculated, the 5 most recurring labels among a level's reviews get saved in its statistics to have them show under levels in-game aswell (the game differenciates between publisher and non-publisher labels there)
  • Deduplicates code used by both tags and labels
  • Fixes tags to show up on levels in-game again

@jvyden
jvyden self-requested a review September 18, 2025 22:53
Comment thread Refresh.Database/GameDatabaseContext.Statistics.cs Outdated
Comment thread Refresh.Database/Models/Comments/GameReview.cs
Comment thread Refresh.Database/Models/Levels/Label.cs Outdated
Comment thread Refresh.Database/Models/Levels/Label.cs Outdated
Comment thread Refresh.Interfaces.Game/Endpoints/Levels/PublishEndpoints.cs Outdated
Comment thread Refresh.Interfaces.Game/Endpoints/ReviewEndpoints.cs Outdated
Comment thread Refresh.Common/Constants/UgcLimits.cs
@Toastbrot236
Toastbrot236 requested a review from jvyden September 19, 2025 19:34
@jvyden
jvyden merged commit fc7278a into LittleBigRefresh:main Sep 19, 2025
3 checks passed
@Toastbrot236
Toastbrot236 deleted the labels branch September 27, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants