[Release 2] [Domain Control] Add domain member#79450
Conversation
…feature/kuba-nowakowski/add__domain_addmembers_page # Conflicts: # src/languages/en.ts # src/libs/API/types.ts # src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx # src/libs/Navigation/linkingConfig/RELATIONS/DOMAIN_TO_RHP.ts # src/libs/Navigation/types.ts # src/libs/actions/Domain.ts # src/pages/domain/Members/DomainMembersPage.tsx # src/types/onyx/DomainPendingActions.ts
…feature/kuba-nowakowski/add__domain_addmembers_page
…feature/kuba-nowakowski/add__domain_addmembers_page
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@mountiny tested and it works fine! I think we can proceed with this PR |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
|
A few questions regarding Form UX when input is invalid:
Screen.Recording.2026-01-26.at.5.36.17.PM.mov |
|
Bug: profile page shows Hidden after invite member and immediately go to detail Screen.Recording.2026-01-26.at.5.42.02.PM.mov |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c94713fa7c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
That's because we remove the optimistic user 🤔 I'll check how it works on other screens |
I verified that on the workspace members page we mark the row as non-interactive - fixed here Screen.Recording.2026-01-26.at.16.37.13.mov |
|
All comments addressed! |
|
New bug: autofocus input doesn't work Screen.Recording.2026-01-26.at.9.46.28.PM.mov |
@situchan fixed |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce04415818
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| key: `${ONYXKEYS.COLLECTION.DOMAIN}${domainAccountID}`, | ||
| value: { | ||
| [DOMAIN_SECURITY_GROUP]: { | ||
| shared: { | ||
| [optimisticAccountID]: null, | ||
| }, |
There was a problem hiding this comment.
Remove null shared entries to avoid ghost members
Here the optimistic member is “removed” by setting shared[optimisticAccountID] to null, but memberAccountIDsSelector (src/selectors/Domain.ts) derives member IDs from Object.keys(shared) without checking the value. Since Onyx merges keep null keys around (the admin selector already filters nulls for this reason), a null entry can still be returned as a member after a successful add or error dismissal, leaving a blank/undismissable row. Either delete the key or update the selector to ignore null values.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Onyx merges keep null keys around (the admin selector already filters nulls for this reason), a null entry can still be returned as a member after a successful add or error dismissal, leaving a blank/undismissable row
I dont think that is correct, the null merge will be removed
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.10-6 🚀
|



Explanation of Change
Part for Domain Control project. This PR adds adding (removing) the domain member with GBR and RBR flows.
Current blockers:
But works on local BE and all videos are there.
Fixed Issues
$ #78126
PROPOSAL:
Tests
Pre requisutes:
1. Positive test
2. Error test
Pre requisite: On
Debug modalselectSimulate failing network requestsOffline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
0085.android.native.mov
Android: mWeb Chrome
0085.andorid.chrome.mov
iOS: Native
0085.ios.native.mov
iOS: mWeb Safari
0085.ios.safari.mov
MacOS: Chrome / Safari
0085.desktop.chrome.mov