Add clickable metadata support to embedded Victory bar charts#96065
Add clickable metadata support to embedded Victory bar charts#96065inimaga wants to merge 25 commits into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…ded-Victory-bar-charts
…tadata-support-to-embedded-Victory-bar-charts # Conflicts: # src/components/HTMLEngineProvider/HTMLRenderers/VictoryChartRenderer/context/VictoryChartContext.tsx # src/components/HTMLEngineProvider/HTMLRenderers/VictoryChartRenderer/parsers/processVictoryChartTree.ts
|
@hoangzinh 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] |
|
If this requires C+ review, I'll be reviewing this as part of project. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3c467b0a5c
ℹ️ 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".
trjExpensify
left a comment
There was a problem hiding this comment.
What's up with the axis here? On the spend page the values are dynamic based on the data set. This looks like it puts all of the bars below the first data point on the axis?
For the data on hover, why aren't we showing the same data as the Spend page?
CC: @Expensify/design @luacmartins
|
Yeah agree, I would think the y axis would use smaller amounts so the bars would be taller? That feels odd for sure. |
The current instructions adjust the axis dynamically, but they set a $500 minimum. So that's why for small amounts we show it like that. I'm not sure why we have the minimum though, we can probably remove that. |
Both flagged issues have now been fixed. It did need a backend change though, so this PR is on hold till Web-E#54677 gets deployed. Issue.-.54677.mp4 |
Just on these in-line charts? 🤔 |
|
@trjExpensify Yes. Not sure why. |
|
Weird. The spend page always starts the bottom line of the y-axis on $0 and then the increments are dynamic based on the data set. |
|
@hoangzinh / @situchan Would either of you be able to review this today? |
|
🚧 inimaga 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! 🧪🧪
|
It appears to be part of a project that @situchan is working on. |
Held on:
https://github.com/Expensify/Web-Expensify/pull/54516https://github.com/Expensify/Web-Expensify/pull/54677Explanation of Change
This PR adds per-point metadata parsing for embedded Victory chart data, preserving
labelandsearchQueryfields and carrying them through the Victory chart renderer context.Vertical embedded bar charts should now show web hover tooltips from that metadata and navigate to Search when a bar has a
searchQuery.Fixed Issues
$ #92149
PROPOSAL: N/A
Tests
Automated Tests
Covered by added automated tests
Manual Test
Pre-requisite (Skip to Test Steps if testing in Staging/Prod):
Test Steps:
Issue.92149.mp4
Offline tests
QA Steps
Same as manual test steps above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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