refactor: frontend consistency pass — OnClose naming, AssetIds param, drop _ prefixes #191
No Reviewers
Labels
Clear labels
AI Gen
area:auth
area:backend
area:ci
area:db
area:frontend
area:shared
good first issue
Need Triage
page:admin-users
page:album-detail
page:albums
page:cosplayer-detail
page:cosplayers
page:home
page:jobs
page:login
page:photos
page:register
page:settings
page:stats
page:user
performance
priority:critical
priority:high
priority:low
priority:medium
type:docs
type:refactor
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Autogenerated By AI
Authentication, JWT, refresh tokens
Lactose API (controllers, repos, services, models)
Docker, CI/CD, Gitea Actions
EF Core, migrations, pgvector
MilkStream WASM client (Blazor UI, SCSS, components)
Butter shared library (DTOs, enums, MIME types)
Good for new contributors
Needs to be categorized by a Human
Admin user management (/Users)
Album detail page (/albums/{id})
Albums list (/albums)
Cosplayer detail page (/cosplayer/{id})
Cosplayers list (/cosplayers)
Home page (/)
Background jobs page (/Jobs)
Login page (/login)
Photos page (/photos)
Register page (/Register)
Settings page (/Settings)
Statistics page (/Stats)
User profile page (/User/{id})
Performance or scalability concern
Blocker / must fix immediately
Must fix / urgent
Nice to have
Should fix
Documentation
Code cleanup or refactoring
Something is not working
This issue or pull request already exists
New feature
Need some help
Something is wrong
More information is needed
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MilkyShots/MilkyShots#191
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #166 (frontend consistency pass + null-deref warnings). Part of #155 (area D).
Items 2 (ProfileCropper→ModalFrame) and 4 (CS8602 triage) were already resolved; this PR covers the remaining two.
Changes
Item 1 — Standardize dismiss callbacks on
OnClose(commitde8589b)Renamed the
OnClosedparameter toOnClose(matchingModalFrame) inAssetPicker,AlbumAssetPicker,AlbumForm,PersonForm,ProfileCropper; updated all callers (AlbumDetail,Albums,CosplayerDetail,Cosplayers). Renamed the now-colliding privateOnClose()methods inAlbumForm/PersonFormtoHandleClose.Item 3a — Align asset-ids parameter naming (commit
0a51ce6)AlbumForm.AlbumAssetIds→AssetIds(matchesPersonForm); updated theAlbumDetailcaller.Item 3b — Drop
_prefix from frontend private fields (commitsa893836,2ea4bb7,87b7d61)Swept ~35
.razor/.csfiles across Pages, Shared components, and services/code-behind. Convention documented inAGENTS.md(docscommitc2fe80c): no leading_on private fields inMilkStream.Client.Deliberately preserved:
target="_blank"HTML attribute (not a field)._2placeholder parameter inCosplayers.OnLoggedUserChanged(a discard-style unused param, not a field).Register_OnClick(JS interop method names — not word-start).Collision fixes caught by the compiler
The sweep surfaced three
_x→xcollisions with existing identifiers that were silently self-assigning; fixed and verified by build (0 warnings):PageBuffer.csctor:this.keySelector = keySelector;Settings.razorLoadData:this.folders = folders;Jobs.razorSwitchTab: parameter renamedshowActive→toActiveVerification
dotnet build MilkStream.Client— 0 warnings, 0 errors.ProfileCropperonModalFrame).Frontend-only ⇒ review by REDCODE.