feat(mypage): /mypage/index reflects persisted bg selection

Wires MyPageController.Index to read Viewer.MyPageBgId/SelectType/BgRotation
instead of emitting an empty MyPageBgSetting placeholder; adds Include for
MyPageBgRotation in ViewerRepository.GetViewerByShortUdid; adds fresh-viewer
zero-defaults test and write→read round-trip test (9/9 controller tests pass).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 16:53:34 -04:00
parent 6123a64b37
commit 483cc1c1e0
3 changed files with 58 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ public class ViewerRepository : IViewerRepository
.Include(v => v.Degrees)
.Include(v => v.LeaderSkins).ThenInclude(ls => ls.Class)
.Include(v => v.MyPageBackgrounds)
.Include(v => v.MyPageBgRotation)
.FirstOrDefaultAsync(viewer => viewer.ShortUdid == shortUdid);
}