Fix scaling behavior for aspect ratio, labels, and legends#91540
Fix scaling behavior for aspect ratio, labels, and legends#91540daledah wants to merge 14 commits into
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9017c386f0
ℹ️ 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".
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: 197f8b465b
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e34df108e
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 741a80dbe0
ℹ️ 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".
|
@situchan let's prioritize this review please! |
|
yes on it |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Code ReviewThe overall approach — scale context provided at the container level, passed as explicit props into the Skia Canvas tree — is architecturally sound. A few issues to address: 1.
|
|
When resize window, blank chat shows before new resized chat is rendered. And sometimes chart glitches. resize.mov |
|
Not scrollable on native. Works on mobile web. iOS: Screen.Recording.2026-05-25.at.9.11.23.PM.movresized web: Screen.Recording.2026-05-25.at.9.11.48.PM.mov |
|
@shawnborton @situchan does this look better? Screen.Recording.2026-05-26.at.16.16.29.mov |
|
Hmm no, it doesn't look good to me:
Can you please review my POC and see the expected behavior from there? We also have existing charts in the product that can adjust their width fluidly as well. |
|
@daledah please prioritize this PR when you're online since we have a deadline of Jun 1 for it |
i fixed |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
@MelvinBot, please check this comment and share any ideas you might have |
|
The scroll issue on native is caused by Possible fixes:
I'd start with option 2 — replacing the |
|
@daledah are you testing your changes? It is still scaling even when it has plenty of room on the right side: CleanShot.2026-05-27.at.09.33.40.mp4 |
@shawnborton That's quite strange. This is the result on my side when testing with https://91540.pr-testing.expensify.com ^. I'll double-check it. web-resize.mp4 |
|
Oh interesting, that looks better but why does the chart scroll horizontally? Again, can you look at the POC link we provided? That has the behavior we want, I think. |
|
Thanks s77rt, I've updated the code to only scale the top padding inside the chart. Here are the results after the update with the html on OP cc @shawnborton web-resize.mp4 |
web-resize.mp4@shawnborton Could you check again? I think it looks very similar to the POC you shared. |
|
@daledah Can you test on native too? (just to make sure the |
|
🚧 @shawnborton 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! 🧪🧪
|
i updated web-resize.mp4 |
|
Cool, let me know when this is ready for another round of testing or builds. |


Explanation of Change
Fixed Issues
$ #91515
PROPOSAL:
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-25.at.15.23.37.mov