Skip to content

MOBILE-503: add organization action confirmations#638

Draft
swolfand wants to merge 25 commits into
sam/mobile-501-android-add-organization-verified-domains-management-viewsfrom
sam/mobile-503-android-add-organization-profile-leave-and-delete
Draft

MOBILE-503: add organization action confirmations#638
swolfand wants to merge 25 commits into
sam/mobile-501-android-add-organization-verified-domains-management-viewsfrom
sam/mobile-503-android-add-organization-profile-leave-and-delete

Conversation

@swolfand
Copy link
Copy Markdown
Collaborator

Summary

  • Replace the organization profile leave/delete placeholder routes with destructive confirmation screens.
  • Require typing the active organization name before enabling leave/delete, preserve confirmation input on API failures, and exit the profile after success.
  • Add client refresh after successful destructive actions plus unit and Paparazzi coverage for disabled, loading, error, leave, and delete states.

Stack

Validation

  • JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew :source:ui:recordPaparazziDebug --tests com.clerk.snapshot.organizationprofile.OrganizationProfileSnapshotTest
  • JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew :source:ui:testDebugUnitTest --tests com.clerk.ui.organizationprofile.actions.OrganizationProfileActionConfirmationViewModelTest --tests com.clerk.snapshot.organizationprofile.OrganizationProfileSnapshotTest
  • JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew :source:ui:spotlessCheck :source:ui:detekt
  • JAVA_HOME=$(/usr/libexec/java_home -v 21) ./gradlew :source:ui:lintDebug currently fails on existing repo lint issues outside this change (first failure: OrganizationListView.kt:115 ComposeViewModelForwarding); the lint report showed no new errors in the new action files.

swolfand added 25 commits May 13, 2026 23:38
Add typed confirmation flows for leaving and deleting the active organization from the organization profile. Keep failures on the confirmation screen, refresh the client after success, and cover the new states with unit and snapshot tests.
Treat organization roles as a paginated response from the Frontend API while preserving the existing list convenience. This fixes the post-create invite step failing to load roles from real API responses.
Route the organization creation invite step into the Members screen with the Invitations tab selected, and hoist switcher sheet actions so the touched Compose path passes lint.
Replace the switcher-hosted organization profile and post-create invitations bottom sheets with a full-screen page host so nested profile routes no longer render inside sheet chrome.
Remove the inferred pending-invitation cleanup control from the domain enrollment screen and keep the visible title and copy aligned with the provided Figma frame.
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