Skip to content

refactor(members): drop dead delete code from the profile view model#13

Merged
SiteRelEnby merged 1 commit into
mainfrom
refactor/member-profile-delete-cleanup
Jun 24, 2026
Merged

refactor(members): drop dead delete code from the profile view model#13
SiteRelEnby merged 1 commit into
mainfrom
refactor/member-profile-delete-cleanup

Conversation

@SiteRelEnby

Copy link
Copy Markdown
Collaborator

Follow-up cleanup after #12 moved member delete from the profile (view) screen to the editor.

MemberProfileViewModel still carried the old delete machinery, now unreachable:

  • Removed delete(), loadDeleteSafety(), clearDeleteError().
  • Removed the unused deleted / deleteSafety / isDeleting / deleteError / deleteQueued fields from MemberProfileUiState.
  • Removed the vestigial LaunchedEffect(state.deleted) from the profile screen.

No behaviour change; delete lives on the member editor (with archive) and the members-list long-press menu.

Compiles clean; :app:compilePlayReleaseKotlin green.

Delete moved to the member editor, so the profile screen no longer deletes.
Remove the now-unused delete state, delete()/loadDeleteSafety()/
clearDeleteError() from MemberProfileViewModel, and the vestigial
navigate-on-deleted effect from the profile screen.
@SiteRelEnby SiteRelEnby merged commit 137b88b into main Jun 24, 2026
1 check passed
@SiteRelEnby SiteRelEnby deleted the refactor/member-profile-delete-cleanup branch June 24, 2026 06:50
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.

1 participant