[Domain Control] [Release 4] Add Restrict expense workspace creation/removal Toggle to DomainGroupDetailsPage#88710
Conversation
…tails-page' into jakubstec/domains/security-group-details-page-group-permissions3
|
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 |
|
@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
Here are some automated review suggestions for this pull request.
Reviewed commit: 67f3e9dca6
ℹ️ 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".
| if (!group?.name) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
Allow toggling when group name is empty
The toggle handler currently returns early when group?.name is falsy, but name is optional in the security-group model and other UI paths already handle missing names (?? ''). In that state, the new permission toggle appears but never persists, so admins cannot update enableRestrictedPolicyCreation for unnamed groups; this guard should only block when the group itself is missing.
Useful? React with 👍 / 👎.
…fallback on failuredata rollback updatedomainsecuritygroup
|
Please merge main |
…urity-group-details-page-group-permissions3
|
@situchan done |
|
Please fix conflict |
…urity-group-details-page-group-permissions3
|
@situchan done! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movweb-failure.mov |
Code ReviewOverall the PR looks solid — the new toggle follows the same patterns as Translation key naming convention: The new keys Everything else looks good:
|
|
Codex Review: Didn't find any major issues. Delightful! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
| RestrictExpenseWorkspaceCreation: 'Erstellen/Entfernen von Ausgaben-Workspaces einschränken', | ||
| RestrictExpenseWorkspaceCreationDescription: |
There was a problem hiding this comment.
| RestrictExpenseWorkspaceCreation: 'Erstellen/Entfernen von Ausgaben-Workspaces einschränken', | |
| RestrictExpenseWorkspaceCreationDescription: | |
| restrictExpenseWorkspaceCreation: 'Erstellen/Entfernen von Ausgaben-Workspaces einschränken', | |
| restrictExpenseWorkspaceCreationDescription: |
| domainAccountID: number; | ||
| groupID: string; | ||
| }; |
…details-page-group-permissions3 # Conflicts: # src/languages/de.ts # src/languages/en.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts # src/libs/actions/Domain.ts # src/pages/domain/Groups/DomainGroupDetailsPage.tsx # src/types/onyx/DomainErrors.ts
…missions3' of github.com:software-mansion-labs/expensify-app-fork into jakubstec/domains/security-group-details-page-group-permissions3
bdce78b
|
@ looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
…ec/domains/security-group-details-page-group-permissions3 [Domain Control] [Release 4] Add `Restrict expense workspace creation/removal` Toggle to DomainGroupDetailsPage
|
Explained above |
Explanation of Change
Add
Restrict expense workspace creation/removalsetting for Domain Security Group RHP.Fixed Issues
$ #80133
PROPOSAL:
Tests
Preconditions:
/domains/<domainAccountID>/groupsRestrict expense workspace creation/removalto trueOffline tests
N/A
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
MacOS: Chrome / Safari
Screen.Recording.2026-04-24.at.14.34.02.mov
Screen.Recording.2026-04-24.at.14.33.21.mov