Implement Play Menu Tags management: add endpoints for retrieving and updating tags; enhance database schema and UI integration

This commit is contained in:
Alexa
2026-06-02 16:46:28 +03:00
parent a2feb780c2
commit 218d92f856
9 changed files with 335 additions and 41 deletions
+1
View File
@@ -609,6 +609,7 @@ public class DorkNetDbContext(DbContextOptions<DorkNetDbContext> options) : DbCo
e.Property(s => s.WeeklyChallengesCompletedRequired).HasDefaultValue(true);
e.Property(s => s.WeeklyChallengesJson).HasDefaultValue(string.Empty);
e.Property(s => s.WeeklyChallengeRewardJson).HasDefaultValue(string.Empty);
e.Property(s => s.PlayMenuTagsJson).HasDefaultValue(string.Empty);
});
modelBuilder.Entity<RoomKeyEntity>(e =>
@@ -38,5 +38,10 @@ public class ServerSettingsEntity
/// server-side XP/token grant.</summary>
public string WeeklyChallengeRewardJson { get; set; } = string.Empty;
/// <summary>Admin-managed Play menu room filter chips as JSON. Stores
/// separate pinned and popular tag lists; wire endpoints serve them to
/// the watch without leading # characters.</summary>
public string PlayMenuTagsJson { get; set; } = string.Empty;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}