Repository navigation
Fix truncated employee labels in spend analysis bar charts - #93463
Conversation
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
This comment has been minimized.
This comment has been minimized.
|
@jayeshmangwani 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: a7cbd5ed56
ℹ️ 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".
|
Bump for review @jayeshmangwani |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
|
@luacmartins , I followed the test steps, but I'm seeing a doughnut chart instead of the expected Horizontal Bar Chart. Is this the expected behavior, or am I missing something? |
|
Oh sorry, I must have pasted the wrong chart. I updated the OP, please check again. |
Reviewer Checklist
Screenshots/VideosiOS: HybridApp |
|
@neil-marcellini 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] |
|
@neil-marcellini bump for review |
roryabraham
left a comment
There was a problem hiding this comment.
Also, @luacmartins maybe you want to add your fixture to server/victory-chart-renderer/tests/fixtures, generate a new golden png for it in server/victory-chart-renderer/tests/__golden__, and then add it to the render tests.
That's a convenient way to create automated test coverage for something like this that comes with an obvious visual (the golden PNG) to communicate intent.
Also, you probably want to merge main into this branch since we added PR checks for the server tests. I checked and they were passing after merging main, but still good to have them running in CI.
|
Updated |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @roryabraham 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/roryabraham in version: 9.4.16-1 🚀
Bundle Size Analysis (Sentry): |
|
🤖 I reviewed the changes in this PR against the help site files under Conclusion: No help site changes are required. This PR is a purely internal rendering correctness fix. It adds a
There are no new or changed features, settings, tab names, button labels, or user-facing flows. The existing help articles that mention these charts (e.g. How Concierge Analyzes Spend and View the Top Categories report) describe them at a usage level only — they don't document internal label-matching behavior. This fix simply makes the charts render correctly as those articles already depict them, so no documentation updates are needed. No draft docs PR was created. @luacmartins, please confirm you agree no help site changes are needed. If you'd like documentation added or adjusted, let me know and I'll open a draft PR. |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.16-5 🚀
|






Explanation of Change
Horizontal spend-analysis bar charts truncate employee names in axis labels but use full names in bar data.
categories.indexOf(point.x)failed on mismatch, so bars landed on an unlabeled row instead of the labeled one. Match truncated labels to full data names via exact match, then prefix match when the label ends with…or....Fixed Issues
$ #93442
PROPOSAL:
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
iOS: mWeb Safari
MacOS: Chrome / Safari