Fix Y axis labels being cut off when intermediate values are longer than min and max - #93817
Conversation
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.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72ed253da5
ℹ️ 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".
borys3kk
left a comment
There was a problem hiding this comment.
Overall changes look good, one minor comment 🚀
|
@ZhenjaHorbach 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: 7250ec9f3c
ℹ️ 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".
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
|
@mhawryluk |
yes, looking into it. the knip check is going to fail, since we're using a transitive dependency (on purpose, though I'm not adamant), but it's going to be fine on main since knip check compares main and the branch. not sure what's happening with the unit tests though |
|
@ZhenjaHorbach after merging main the tests passed and the Knip check fails expectedly (let me know if you agree) |
I suppose it came from this PR
It should help |
|
it did come from this PR, but it was expected, intentional and we can leave it failing. we use |
|
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-06-26.13.20.32.movAndroid: mWeb Chrome2026-06-26.13.20.32.moviOS: HybridApp2026-06-26.13.15.34.moviOS: mWeb Safari2026-06-26.13.12.57.movMacOS: Chrome / Safari2026-06-26.13.10.28.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.4.21-2 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.21-9 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
In line and bar charts the Y-axis label width was being calculated using only the min and max nice-bounds, but intermediate tick values can be wider than either extreme (e.g. a chart spanning
$-1–$0may have$-0.2as a label). This caused those labels to be clipped. AddedgetNiceYAxisTicks, which predicts all tick values that victory-native will render.getYAxisLabelWidthnow measures every tick and returns the maximum width, so the reserved space always fits the widest label. For the prediction we use thed3-scalelibrary, whichvictory-nativeuses under the hood.Fixed Issues
$ #90646
PROPOSAL: N/A
Tests
Offline 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
Android: Native
Android: mWeb Chrome
iOS: Native
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-06-23.at.16.10.38.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Nagranie.z.ekranu.2026-06-22.o.16.44.21.mov