Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@aimane-chnaif 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] |
|
@puneetlath 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: mWeb Safari |
| // Only reduce if both sides have excess space (labels short enough for 0°) | ||
| // If canReduce <= 0, labels are too long and hook will use rotation/truncation | ||
| const horizontalPadding = canReduce > 0 ? geometricPadding - canReduce : geometricPadding; | ||
| const extraPadding = canReduce > 0; |
There was a problem hiding this comment.
NAB: As it's boolean, extraPadding can be renamed to something like hasExtraPadding
There was a problem hiding this comment.
Can you address this one @borys3kk? I agree it should follow our boolean naming conventions. Something like:
| const extraPadding = canReduce > 0; | |
| const shouldUseExtraPadding = canReduce > 0; |
There was a problem hiding this comment.
canReduce is also a weird name for a non-boolean variable. It seems like it's a number we use in various places. Can we instead name that to be something that better explains what that number is.
|
@mateuuszzzzz do we want to address that in this PR? |
|
Let's merge this one, I'll address remaining issue in separate PR |
| // Only reduce if both sides have excess space (labels short enough for 0°) | ||
| // If canReduce <= 0, labels are too long and hook will use rotation/truncation | ||
| const horizontalPadding = canReduce > 0 ? geometricPadding - canReduce : geometricPadding; | ||
| const extraPadding = canReduce > 0; |
There was a problem hiding this comment.
Can you address this one @borys3kk? I agree it should follow our boolean naming conventions. Something like:
| const extraPadding = canReduce > 0; | |
| const shouldUseExtraPadding = canReduce > 0; |
| // Only reduce if both sides have excess space (labels short enough for 0°) | ||
| // If canReduce <= 0, labels are too long and hook will use rotation/truncation | ||
| const horizontalPadding = canReduce > 0 ? geometricPadding - canReduce : geometricPadding; | ||
| const extraPadding = canReduce > 0; |
There was a problem hiding this comment.
canReduce is also a weird name for a non-boolean variable. It seems like it's a number we use in various places. Can we instead name that to be something that better explains what that number is.
| const horizontalPadding = Math.max(extraPadding ? geometricPadding - canReduce : geometricPadding, MIN_SAFE_PADDING); | ||
|
|
||
| return {...BASE_DOMAIN_PADDING, left: horizontalPadding, right: horizontalPadding}; | ||
| // if extraPadding is true then we have to add the extra padding to the right so the label is not clipped |
There was a problem hiding this comment.
| // if extraPadding is true then we have to add the extra padding to the right so the label is not clipped | |
| // If shouldUseExtraPadding is true then we have to add the extra padding to the right so the label is not clipped |
|
@puneetlath I addressed remaining comments |
puneetlath
left a comment
There was a problem hiding this comment.
Awesome, thank you! I like the new names, much clearer.
|
🚧 @puneetlath 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/puneetlath in version: 9.3.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.18-8 🚀
|





Explanation of Change
Changed calculation logic for
domainPaddinginLineChartContent, ensuring that we always have enough space to render full dots / labels.Fixed Issues
$ #81611
$ #81611 (comment)
PROPOSAL:
Tests
Testcase 1 (point cutoff test)
Prerequisite: Have an account with many merchants/months/something else that can be groupped-by
Testcase 2 (label cutoff test)
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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: mWeb Chrome
iOS: Native
Screen.Recording.2026-02-06.at.16.23.15.mov
iOS: mWeb Safari
Screen.Recording.2026-02-06.at.16.39.43.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-06.at.16.12.06.mov