Skip to content

[Due for payment 2026-05-29] [$250] Migrate WorkspaceMemberDetailsRoleSelectionModal to @react-navigation modal screen #90468

Description

@mountiny

Context

This is a sub-issue of #53493 (Replace modal screens with modals from @react-navigation).

For full background and migration approach, see the triage analysis comment and the sub-issue breakdown comment.

Problem

WorkspaceMemberDetailsRoleSelectionModal is currently implemented using react-native-modal, which causes animation inconsistencies on native platforms.

Migration approach (Group 2 — Lift local useState to Onyx)

  • File: src/pages/workspace/WorkspaceMemberRoleSelectionModal.tsx
  • Used by: Only ImportedMembersConfirmationPage.tsx
  • On select: onRoleChange(item) → setRole(item.value) local state, consumed by importPolicyMembers(policy, membersWithRole) API on submit
  • State to lift: role in ImportedMembersConfirmationPage → spreadsheet import form draft or a dedicated Onyx key, so the navigation page can write it and the parent reads it reactively.

Steps

  1. Lift the role state from ImportedMembersConfirmationPage to an Onyx key or form draft.
  2. Create a new @react-navigation modal route for role selection.
  3. Extract the modal content into a standalone screen component that writes the selected role to Onyx on selection.
  4. Replace the <WorkspaceMemberRoleSelectionModal /> usage with a navigation call.
  5. Test on iOS, Android, and web.

Reference

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022054512594363288628
  • Upwork Job ID: 2054512594363288628
  • Last Price Increase: 2026-05-13
Issue OwnerCurrent Issue Owner: @mallenexpensify
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions