[HOLD] fix: Changing the workspace rule doesn't update the row's indicator dynamically#94842
[HOLD] fix: Changing the workspace rule doesn't update the row's indicator dynamically#94842nkdengineer wants to merge 2 commits into
Conversation
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d55de28053
ℹ️ 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".
|
|
||
| // Add 'missingCategory' violation if category is required and not set | ||
| if (!hasMissingCategoryViolation && policyRequiresCategories && !categoryKey && !isSelfDM) { | ||
| if (!hasMissingCategoryViolation && policyRequiresCategories && isCategoryMissing(categoryKey) && !isSelfDM) { |
There was a problem hiding this comment.
Require the policy rule before adding missingCategory
When categories are optional but a transaction carries the sentinel category ('Uncategorized'/'none'), policyRequiresCategories is still true because it also means “has any category” for out-of-policy checks. With this broader isCategoryMissing() check, those optional uncategorized expenses now get a missingCategory violation even though policy.requiresCategory is false; this is especially visible for new optimistic expenses because buildOptimisticTransaction initializes category to CONST.SEARCH.CATEGORY_DEFAULT_VALUE. The missing-category add path should be gated by the actual required-category rule, while the existing broader block can continue handling out-of-policy categories.
Useful? React with 👍 / 👎.
|
@nkdengineer can you fix the failing CI checks and address the codex comments? |
|
@nkdengineer Let's put this PR on hold until this PR #94105 is merged. Context: #93770 (comment) |
Done. |
Explanation of Change
Fixed Issues
$ #93770
PROPOSAL: #93770 (comment)
Tests
Offline tests
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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
Screen.Recording.2026-06-29.at.20.40.38.mov
Android: mWeb Chrome
Screen.Recording.2026-06-29.at.20.42.30.mov
iOS: Native
Screen.Recording.2026-06-29.at.20.46.04.mov
iOS: mWeb Safari
Screen.Recording.2026-06-29.at.20.43.33.mov
MacOS: Chrome / Safari
Screen.Recording.2026-06-29.at.20.39.40.mov