Display full category names and/or GL account numbers in category selector#83561
Display full category names and/or GL account numbers in category selector#83561cristipaval merged 8 commits intoExpensify:mainfrom
Conversation
66649e3 to
698edbb
Compare
| onDismissError={onDismissError} | ||
| shouldPreventEnterKeySubmit={shouldPreventEnterKeySubmit} | ||
| rightHandSideComponent={rightHandSideComponent} | ||
| rightHandSideComponent={shouldUseDefaultRightHandSideComponent ? defaultRightHandSideComponent : rightHandSideComponent} |
There was a problem hiding this comment.
❌ CLEAN-REACT-PATTERNS-1 (docs)
The shouldUseDefaultRightHandSideComponent boolean flag is a Case 1 configuration pattern. It adds branching inside RadioListItem to conditionally render a built-in <Checkbox> or the passed rightHandSideComponent. The component already supports rightHandSideComponent as a prop, so the consumer (CategoryPicker) should pass the desired <Checkbox> directly via the existing prop instead of requiring a new boolean flag and internal rendering branch in RadioListItem.
Suggested fix: Remove shouldUseDefaultRightHandSideComponent and the internal defaultRightHandSideComponent from RadioListItem. Instead, pass the <Checkbox> from CategoryPicker via the existing rightHandSideComponent prop.
Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54f9bff670
ℹ️ 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".
trjExpensify
left a comment
There was a problem hiding this comment.
@Expensify/design should have eyes on this as well.
The padding between the text and the radio button looks different to @shawnborton's example in the parent issue:
Shawn's:
|
Yup - we might need to adjust that at the global component level. But let's definitely add some gap between the text and the checkbox. I think something like 12px would be good? |
|
I agree - |
|
@lorretheboy what do you think of the comments above? We have some conflicts here as well. Thanks. |
|
Checking this today... |
|
I have added 12px default gap in this case. Please help check again Screen.Recording.2026-03-08.at.23.57.51.mov |
|
That looks good to me. Let's get this into final review then, thanks! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chrome83561_android_web.moviOS: HybridAppiOS: mWeb Safari83561_ios_web.mov |
|
@lorretheboy @brunovjk could you please address bot comments? |
|
I have updated the PR. Kindly help re-review it. Thxxxx |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Great, reviewing it in a moment. |
|
Al yours @cristipaval |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/cristipaval in version: 9.3.39-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|



Explanation of Change
Fixed Issues
$ #82973
PROPOSAL: #82973 (comment)
Tests
Precondition: User have lengthy category names with GL codes
Offline 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
Android: Native
android.mov
Android: mWeb Chrome
website.android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
website.ios.mov
MacOS: Chrome / Safari
website.mov