Repository navigation
[NoQA] [Insights polish] Draw Spend over time as a bar when there's only one point to plot - #103579
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2026-10-09.at.23.33.17.mov |
Screen.Recording.2026-10-09.at.23.39.25.mov@JmillsExpensify @mhawryluk with the same filter and the same data, Insights now draws this as a bar, but Spend still renders it as a single dot. That means the same dataset looks like two different things depending on which page you're on. Should we fix the Spend page too, i.e. default |
daledah
left a comment
There was a problem hiding this comment.
LGTM, just one remaining minor comment
|
🚧 cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
That's a good point. I split the behavior on purpose: Spend has an explicit "View" display option, and I thought showing a bar chart when the user picked "Line" would be confusing. So I'd lean towards keeping it as is. If instead consistency matters more, two options to do in a follow-up:
|
I'm leaning this way as well, but down to see what @JmillsExpensify and @trjExpensify think. |
Yeah, I agree with that.
I thought the "View on Spend" was supposed to open the data in
|
oh, that's right, my bad |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.5.8-0 🚀
|
|
No help site update is needed. The single-point bar chart only appears on the Insights page and in the Home Insights section when the |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.8-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
On Insights and Home, Spend over time now draws a vertical bar when it has only one point to plot, such as a Custom day or a range with expenses in a single period. The Spend page is unchanged.
SearchChartViewscopes the new behavior with a newshouldShowSinglePointAsBarprop, which only Insights and Home pass.BarCharttakes a new optional color prop that draws every bar in one color instead of taking colors from the palette by position.Not included: the Previous period bar pair and the Average line, which depend on Compare support, which is still being implemented.
Fixed Issues
$ #103445
PROPOSAL: N/A
Tests
insightsPagebeta.Offline tests
N/A
QA Steps
No tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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
Nagranie.z.ekranu.2026-10-9.o.13.03.38.mov