Repository navigation
Add count metric option to search and insights charts - #105265
luacmartins merged 11 commits into
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.
|
Averages and period-over-period changes land between whole expenses, so a count tooltip printed every digit of the division, like "0.0833333333333333 expenses".
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 899ba6aec7
ℹ️ 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".
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
|
Looks good overall. Let's make sure that we are showing the aggregate value in parentheses, alongside the expense count. So for instance: September 2026 |
|
@adamgrzybowski conflicts. We also have the comments above from Jason to address |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2026-11-03.at.11.19.17.mov |
|
@JmillsExpensify @luacmartins could you please help to run the Generate static translations GitHub workflow here? |
|
I dunno, I think comparing the number of violations against the average number of expenses with violations in a given period is similar in utility to comparing the avg. amount of Spend etc. Also, have we killed the violations as a % of total expenses/spend now? |
Yeah I think I feel the same? "Oh my, our September violations are way above average! We gotta put the hammer down!"
Will let Jason chime in here. If we really want it, we could potentially include it with the dollar amount? i.e.
Or something? |
|
Yeah, though if we're including expense counts and amounts, haven't we effectively got two percentages in play?
Doing both would be something like: September 2026 ... which is pretty involved? So if we only want to use the percentage of total expenses for the current period, we might benefit from associating the percentage more clearly to the expense count, not the amount. I.e September 2026 |
|
Oh yeah great points Tom. Doing both feels way too complicated to me. If we want to include the percent, I agree with what you have at the bottom of your comment 👍 |
|
I like Tom's suggestion, so let's go with that on Monday (assuming the BE already passes that data). |
|
@mhawryluk I guess we'll pick this back up tomorrow when Adam is back? |
I think the backend doesn't send so maybe we could skip the Average in this PR and do it in a separate PR, once the backend change lands? |
|
Yea, let's skip it on this one. We'll need two properties, but maybe we should name them |
great! @daledah back to you |
|
@adamgrzybowski could you please resolve conflict? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 luacmartins 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/luacmartins in version: 9.5.31-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Fixed Issues
$ #102808
PROPOSAL:
Tests
Offline tests
QA Steps
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
Screen.Recording.2026-10-28.at.15.59.02.mov