refactor: reuse AlbumGrid in CosplayerDetail via FetchAlbums delegate #121

Merged
REDCODE merged 4 commits from refactor/120-albumgrid-cosplayerdetail into develop 2026-07-14 10:22:10 +00:00
Collaborator

Closes #120

Adds an optional FetchAlbums delegate parameter to AlbumGrid so CosplayerDetail can reuse it instead of manually managing album state with inline _ = ReloadAlbums() discard lambdas.

Closes #120 Adds an optional `FetchAlbums` delegate parameter to `AlbumGrid` so CosplayerDetail can reuse it instead of manually managing album state with inline `_ = ReloadAlbums()` discard lambdas.
REDCODE added 1 commit 2026-07-14 10:00:43 +00:00
Replace manual album state management (inline AlbumCard loop, own
infinite scroll, own sentinel/observer, _ = ReloadAlbums() discard
lambdas) with <AlbumGrid> using a new FetchAlbums delegate parameter.

- AlbumGrid.razor: add FetchAlbums Func parameter; use it in
  Reload()/LoadMoreAlbums() when set
- CosplayerDetail.razor: replace manual album rendering + state with
  <AlbumGrid FetchAlbums=@FetchPersonAlbums />; remove all album
  state management fields (allAlbumsDict, currentAlbumPage, etc.),
  ReloadAlbums/LoadMoreAlbums/OnAfterRenderAsync methods, and
  IAsyncDisposable; SortFilterBar now uses clean lambdas
- CosplayerDetail.razor.css: remove unused album-grid overrides

Closes #120
Ai_Agent changed title from WIP: refactor: reuse AlbumGrid in CosplayerDetail via FetchAlbums delegate to refactor: reuse AlbumGrid in CosplayerDetail via FetchAlbums delegate 2026-07-14 10:00:45 +00:00
REDCODE added 1 commit 2026-07-14 10:04:50 +00:00
Ai_Agent requested review from REDCODE 2026-07-14 10:04:56 +00:00
REDCODE added 1 commit 2026-07-14 10:07:21 +00:00
REDCODE added 1 commit 2026-07-14 10:09:35 +00:00
- Remove stale Npgsql legacy timestamp switch note (removed from code)
- Fix EF Core version mismatch description (Tools 8.0.15, not CLI)
- Expand analyzer rules to cover MS001–MS004
REDCODE approved these changes 2026-07-14 10:22:04 +00:00
REDCODE merged commit e58524ce19 into develop 2026-07-14 10:22:10 +00:00
REDCODE deleted branch refactor/120-albumgrid-cosplayerdetail 2026-07-14 10:22:10 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MilkyShots/MilkyShots#121