-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace react-vis with recharts #2558
base: main
Are you sure you want to change the base?
Conversation
ae0cbf8
to
4277922
Compare
@yurishkuro My first step is replacing the search page and get the tests working, then move on to other pages. Changes made that are different from the original PR:
Which should we use? Should the cells clip at the edge like the second one? TODO: Working on making cell size similar to the current behavior. Thanks in advance. |
Aside from color scheme the chart looks ok to me. Just make sure all existing behaviors are supported, like hover. I would add more x-axis ticks. How does grafana do it? |
but what if I select a larger time range? Doing ticks at scrape intervals would cause labels to overlap. |
please make sure you work off up to date main branch, you already have merge conflicts |
Just checked Grafana, for 2 days they do 2 hours intervals and even when resizing they reduce the tick count. Do you want Grafana like behavior? |
I don't care about it being specifically Grafana-like, just that the ticks need to adjust depending on the time range of the query, but also the screen size. E.g. in your screenshot you can easily go from 4 to 8 ticks, which will increase readability, but if I start reducing the screen width the 8 ticks might start overlapping, so what is the solution to that? |
84a5b73
to
5a4e614
Compare
Fixed merge conflicts. Do you recommend rebasing every day before starting work on a feature? We can make it responsive by calculating number of ticks based on For intervals, it might be a bit more complicated. We can calculate the interval like end-start and some if conditions based on the value. I will try to implement code tomorrow. |
I tried the There is an issue open but no timeline: recharts/recharts#3305 I think for now we have to manually calculate it. |
98bc560
to
3957421
Compare
@navaneeth-dev lmk when ready for review |
Will do, working on migrating tests from emyze to react-testing-library. Have you thought about adding .editorconfig? |
is there a lot of tests? Perhaps we can merge them in a separate PR before merging this one.
I don't know what that is, sounds like specific to an IDE that you are using. |
No just started work on "Editorconfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs": So formatter (prettier) usually comes after saving, but EditorConfig sets up the editor's: space, indent size correctly etc... |
Signed-off-by: Navaneeth Rao <[email protected]>
- Equal interval - Proper Label position Signed-off-by: Navaneeth Rao <[email protected]>
Signed-off-by: Navaneeth Rao <[email protected]>
3957421
to
186318f
Compare
my point was that changing tests to |
Which problem is this PR solving?
Description of the changes
Still work in progress, copying all the changes from previous PR #2242 and implementing the needed tests.
How was this change tested?
npm run start
npm run build
npm run test
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test