Repository navigation
R4: Add contextual Category rules section to category details RHP - #96591
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
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 |
Resolve conflicts in Rules Revamp utils/pages while keeping category pre-scope (initialCategoryName) and contextual Category rules helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20a1801455
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
trjExpensify
left a comment
There was a problem hiding this comment.
Let us know when there's screen recordings to look at. Let's have @Expensify/design take a look too.
(CC: @JmillsExpensify, though I know you're OOO for a bit so didn't assign you).
|
🚧 dubielzyk-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
I like wrapping to two lines, and then if for some reason it's still truncated, hover to show the full string? |
|
Yeah dig it. I think we could even afford 3 lines, but lets start with 2 and then alt text on hover 👍 |
Agree with that.
Also agree with that. Probably fine not to touch the agent rule flow for now, but it might be nice to think of how we would prefill the edit tab of that flow (but I can't think of any good ideas myself). |
Yeah I was thinking we'd land on the edit tab with a "For X category limit spend" or something, but it all has some drawbacks so I agree that it's better to just do as a follow-up. |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@JS00001 could you please run translations script? |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@situchan fixed. |
Regression scan — 🤖 no regressions to existing flows; 1 edge case in the new featureI reviewed the diff across three areas (the I did find one thing worth fixing before merge — it's in the new category-scoped feature (not a regression of prior behavior): Post-save return ignores the quick-settings (Settings → Categories) flowThe contextual "Category rules" section and its Create new rule button render in both the workspace flow and the quick-settings flow, and the new dynamic routes list
The rest of Failure scenario: create a flag-for-review/require-fields rule from Settings → Categories → <category>, save, then refresh or deeplink the save. Suggested fix: thread the flow through the save handlers and pick a settings-scoped route when What I checked and cleared (no regression)
This was a static review (no runtime repro of the goBack edge case). Reply |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3eec4e1229
ℹ️ 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".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
🚧 JS00001 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/JS00001 in version: 9.4.47-0 🚀
|
Help site review — no docs PR createdI reviewed the changes in this PR against the help site articles under Why: The entire "Category rules" contextual section this PR adds to the category details RHP (the summary rows, the bolt icon, and the Create new rule entry) is gated behind the The help site documents current, generally-available behavior. Because this UX is beta-only and not yet GA, documenting it now would misrepresent what most admins actually see. The existing guidance still accurately reflects current behavior for non-beta users:
Follow-up when @Krishna2323, since there's no help site PR to link (the feature is still beta-gated), there's nothing to mark |
|
Deploy Blocker #97560 was identified to be related to this PR. |
|
Deploy Blocker #97561 was identified to be related to this PR. |
|
Deploy Blocker #97563 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.47-7 🚀
Bundle Size Analysis (Sentry): |



Explanation of Change
Fixed Issues
$ #92742
PROPOSAL:
Tests
RULES_REVAMPbeta and open a workspace with categories + rules enabled.Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
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
android_hybrid.mp4
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_hybrid.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web_chrome.mp4