[Domain Control] [Release 4] Add create group button and RHP in DomainGroupsPage#88200
Conversation
…es in preferred workspace setting as well as workspace preselection
…I command for group creation, enable offline form handling
|
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 |
|
diff is currently big because main PR isn't merged yet. Also there are reused features from other PRs so it affects it too. I got branch with ready skeleton, without API calls and error handling, so if It still would be too big, I'll split it into 2 PRs |
…urity-group-create-group-rhp-form-submit-and-error-handling
|
@codex review |
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.
|
There was a problem hiding this comment.
💡 Codex Review
createDomainSecurityGroup() records optimistic creation progress under domain_pendingActions[securityGroupKey].pendingAction, but this row still reads ...?.name for pendingAction. In slow/offline conditions, newly created groups won't show pending OfflineWithFeedback state and remain fully interactive before the create request has completed, which can trigger follow-up actions against an unsaved group.
ℹ️ 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".
…urity-group-create-group-rhp-form-submit-and-error-handling
rayane-d
left a comment
There was a problem hiding this comment.
As part of https://github.com/Expensify/Expensify/issues/631218
We are adding a shouldSetAsDefault boolean parameter to the CreateDomainSecurityGroup API command. This parameter allows the BE to set the group as the default for the domain immediately after creation in a single operation. This replaces the need to call CreateDomainSecurityGroup and SetDefaultDomainSecurityGroup sequentially and follows the 1:1:1 philosophy.
…ecurity-group-create-group-rhp-form-submit-and-error-handling
…aultGroup parameter, distinguish pending actions for group deletion and creation
| { | ||
| onyxMethod: Onyx.METHOD.MERGE, | ||
| key: `${ONYXKEYS.COLLECTION.DOMAIN}${domainAccountID}`, | ||
| value: { |
There was a problem hiding this comment.
❌ CONSISTENCY-5 (docs)
The eslint-disable-next-line @typescript-eslint/naming-convention comment lacks a justification explaining why the rule is disabled.
Add a comment explaining the reason, for example:
// eslint-disable-next-line @typescript-eslint/naming-convention -- backend API uses snake_case for domain_defaultSecurityGroupID
...(shouldSetAsDefaultGroup && {domain_defaultSecurityGroupID: groupID}),Reviewed at: 70c0ed1 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
@jakubstec can you make sure to address all the bot comments with comment and resolve if sorted/ non actionable? Only leave unresolved those that need more discussion. Thank you!
1fd0e65 to
6319af5
Compare
trjExpensify
left a comment
There was a problem hiding this comment.
Core PR for a WN project. 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-05-08.11.02.02.movAndroid: mWeb Chrome2026-05-08.11.12.31.moviOS: HybridApp2026-05-08.11.02.02.moviOS: mWeb Safari2026-05-08.11.12.31.movMacOS: Chrome / Safari2026-05-08.10.52.56.mov |
|
But overall changes look good! |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! Couple comments, lets merge the other pr first too as seems like the changes are included in this PR too
| { | ||
| onyxMethod: Onyx.METHOD.MERGE, | ||
| key: `${ONYXKEYS.COLLECTION.DOMAIN}${domainAccountID}`, | ||
| value: { |
There was a problem hiding this comment.
@jakubstec can you make sure to address all the bot comments with comment and resolve if sorted/ non actionable? Only leave unresolved those that need more discussion. Thank you!
…urity-group-create-group-rhp-form-submit-and-error-handling
…urity-group-create-group-rhp-form-submit-and-error-handling
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.73-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.73-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.73-4 🚀
|
Explanation of Change
Add
Create groupbutton toDomainGroupsPageand Domain Security Group RHP to create a new group.Fixed Issues
$#80132
PROPOSAL:
Tests
Preconditions:
/domains/<domainAccountID>/groupsNew groupOffline tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
iOS: Native
Screen.Recording.2026-04-17.at.13.26.35.mov
MacOS: Chrome / Safari
Screen.Recording.2026-05-06.at.16.13.36.mov
Screen.Recording.2026-05-06.at.16.13.22.mov
Screen.Recording.2026-05-06.at.16.14.02.mov