-
Notifications
You must be signed in to change notification settings - Fork 487
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
Embedded components (SearchTraces and Tracepage ) #263
Conversation
Kiali PoC in kiali/kiali-ui#736 and how looks |
@aljesusg Is the time duration linked to the duration used on other pages? So if navigating from a page where duration is set to 30mins, that will be used when navigating to the traces page? Will you also be supporting the tag filter field? |
@objectiser this form is a created form in the application that is passed to the /search url like query params. Example: |
9909f47
to
8515660
Compare
Codecov Report
@@ Coverage Diff @@
## master #263 +/- ##
==========================================
+ Coverage 77.15% 77.45% +0.29%
==========================================
Files 135 137 +2
Lines 2955 2976 +21
Branches 613 617 +4
==========================================
+ Hits 2280 2305 +25
+ Misses 532 529 -3
+ Partials 143 142 -1
Continue to review full report at Codecov.
|
This looks great. I'd say for the search page, we might want to add the ability to
For the trace detail page, it might be nice to be able to:
What do you think? For both pages, does it makes sense to show a link which would let the user open the page in a new tab (without the embed view restrictions)? Looks great in the Kiali gif! |
e04011c
to
1cdb441
Compare
Hi @tiffon now I am working in the tracePage embed element, I did the SearchTraces. What do you think about the position of the button to open in a new tab the full view? (You can see the button in the Gif Demo) How works ?Search pagewith disableComparision optionSample : search?embed&end=1539596003745000&disableComparision&limit=20&lookback=1h&maxDuration&minDuration&service=productpage&start=1539592403745000 With hideGraph and disableComparision optionSample : search?disableComparision&embed&end=1539596003745000&hideGraph&limit=20&lookback=1h&maxDuration&minDuration&service=productpage&start=1539592403745000 Demo |
38ceeb1
to
f526cf9
Compare
f526cf9
to
cf7ffc5
Compare
8f940a9
to
ed9f3d3
Compare
Changes addressed @tiffon , I don't know where is the best position for the buttons of goBack and go to the Jaeger Site |
@aljesusg Looks great! Regarding the where to put the buttons, I think you're right; they kind of stick out, right now. I've been looking at other embed styles, and they usually have a footer which gives a title and some other details: GitHub gist Plotly (not an embedded view, but similar) (The red mark in the above image is from the blog post I copied it from; I didn't add it.) Maybe we can do something similar, but move it to the top? The top bar can link to the full view and replace the current trace header (title, extra buttons, etc). This would make the view more compressed and make the "Back to search results" button seem less out of place. Here is one possible aesthetic, with the back and without: What do you think? We could apply a similar treatment to the search results view so they'd be consistent. Thanks for your time and hard work! |
Ok @tiffon I am going to make the changes asap. Thanks |
@tiffon for example for trace view is ok like this or do you want create a header for embed component without search and options? Where is the antd component for that example? I can't find that component in https://ant.design/ What do you think about how look this ? Trace View BarSearch Results Bar |
38e00a2
to
10bdc3e
Compare
@aljesusg I think a header without the "View Options" and keyboard help modal would probably be preferable. It might also be nice to be abel to toggle the additional details (datetime, etc) and the minimap. What do you think? The screenshots from my previous comment are not from an Ant Design component, I use the Chrome Dev Tools to work something up from a random page to just take the screenshot. Would it be possible to match the aesthetic from the screenshots? |
Hi @tiffon Sorry but I was on holidays this weeks. I'll try to adapt the ui to be like your screnshoots but I don't know if we can do it with antd |
@tiffon Looks like only documenting kafka ingester is currently missing from 1.8 milestone, so anytime now - although that task has been open for a while. I agree that the comparison feature in embedded mode could be left out for the first cut of this feature. @aljesusg Any thoughts on how long it may take to implement the changes @tiffon has requested (including leaving out compare)? |
I'll try to have the changes today @objectiser |
@aljesusg We can use the value of the Then, later, we can add trace comparisons as a possibility and use This also gives us versioning for embedding, in general, which we also need. What do you think? |
Great Idea @tiffon . I did the changed that you proposed but in the traceView I can't align the tittle with the buttons, i don't know if I should set in the css margin-top:10px, to fixed or if there is another way with antd to solve this. On the other hand I am going to show the GoBack button if in the history there is a search url in the previous one. |
939104c
to
83bc7d0
Compare
83bc7d0
to
c5b1efc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aljesusg thanks for making these changes. A few minor comments, the main thing I noticed is a few issues around embed
vs embed=v0
.
On both the search and trace detail pages, ?embed
(without the =v0
) still removes the top-nav.
Also, on the embed search results page, can you remove the "Compare traces by..." message?
Also, on the trace detail page, when there isn't "Go back" button, can you add a margin to the left of the title?
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TracePageHeader.css
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TracePageHeaderEmbed.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TracePageHeaderEmbed.js
Outdated
Show resolved
Hide resolved
15216eb
to
e1295ec
Compare
Hi @tiffon , here is the last update of the demo with the comments addressed. Thanks |
c2c970f
to
8f1bf1d
Compare
Signed-off-by: Alberto Gutierrez <aljesusg@gmail.com>
3e7ccd7
to
f23043a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments are marked as resolved but don't have an accompanying change or replies to the effect of "will not change". Is there an un-pushed commit? If not, in the future can you please mark comments you're not inclined to address as "won't change" or something along those lines?
Ok but I think that I addressed all the changes, sorry @tiffon I'll do the changes asap |
@aljesusg Thanks! I didn't meant to interrupt your weekend, just wasn't sure about some of the changes. |
Signed-off-by: Alberto Gutierrez <aljesusg@gmail.com>
@tiffon Thanks for your comments !!! I did the changes, don't worry about interrupt my weekend, I am glad to collaborate :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aljesusg Awesome! 🎉
This PR is the beginning of an entirely new type of use-case for the UI. We're super excited about it and thank you for the time, effort and ingenuity!
* SearchTrace and TracePage Embedded components Signed-off-by: Alberto Gutierrez <aljesusg@gmail.com> * Change mutate in getSearchURL Signed-off-by: Alberto Gutierrez <aljesusg@gmail.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Related issue : #248
The point is make a PoC about how whould this look .
We have here 2 uses of cases:
Show the results of a search
Show a Trace
So I added query param called embed, with this params the top navigation and search are removed.
See demo GIF
How works ? pass embed like a query param
TracePage View
SearchTraces View