-
Notifications
You must be signed in to change notification settings - Fork 488
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
Add link to timeline view from comparison view and selection #313
Add link to timeline view from comparison view and selection #313
Conversation
Signed-off-by: Everett Ross <reverett@uber.com>
Codecov Report
@@ Coverage Diff @@
## master #313 +/- ##
==========================================
+ Coverage 82.55% 82.96% +0.41%
==========================================
Files 141 142 +1
Lines 3141 3147 +6
Branches 649 649
==========================================
+ Hits 2593 2611 +18
+ Misses 438 429 -9
+ Partials 110 107 -3
Continue to review full report at Codecov.
|
@everett980 Can you add screenshots to this? |
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.
Some small comments, let me know if anything looks awry.
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/DiffSelection.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItemTitle.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/TraceTimelineLink.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/TraceTimelineLink.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/TraceTimelineLink.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/CohortTable.js
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/CohortTable.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
…omparison-view-and-selection
Signed-off-by: Everett Ross <reverett@uber.com>
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.
Nice work! The tests look great!
A couple of small comments. LMK if anything looks awry.
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItemTitle.js
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/DiffSelection.js
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/TraceHeader.js
Outdated
Show resolved
Hide resolved
*/ | ||
|
||
.TraceTimelineLink--icon { | ||
font-size: 1em; |
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.
Maybe instead of this class, a large?: boolean
prop can be added to NewWindow
to accommodate the 1.5em
it currently uses?
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.
so NewWindow
would have the prop large, defaulted to true. When true it would have a size of 1.5em, when false it would be 1em?
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.
Yes, but seems like defaulting it to false and update the other uses of NewWindow
would make sense if we have a large
prop.
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.
Otherwise, the size would not be affected, e.g. the style would be .TraceTimelineLink--icon.is-large
.NewWindowIcon.is-large
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.
updated
traceName: 'trace-name-0', | ||
}, | ||
error: new Error('error-0'), | ||
state: { |
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.
I think state
is typically a string. Not sure if this was intentionally ?
packages/jaeger-ui/src/components/TraceDiff/TraceDiffHeader/CohortTable.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
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.
Looks great!
Signed-off-by: Everett Ross <reverett@uber.com>
…omparison-view-and-selection
…racing#313) * Add link to TraceDiffHeader & CohortTable, Make DiffSelection clickable Signed-off-by: Everett Ross <reverett@uber.com> * Use getUrl util, use NewWindowIcon Signed-off-by: Everett Ross <reverett@uber.com> * Add test for TraceTimelineLink className Signed-off-by: Everett Ross <reverett@uber.com> * Add DiffSelection, ResultItem, TraceHeader tests Signed-off-by: Everett Ross <reverett@uber.com> * Fix typos Signed-off-by: Everett Ross <reverett@uber.com> * Change NewWindowIcon large behavior, remove link header Signed-off-by: Everett Ross <reverett@uber.com> * Fix typo, remove unused TraceTimelineLink className prop Signed-off-by: Everett Ross <reverett@uber.com> * Update snapshots to match enzyme version Signed-off-by: Everett Ross <reverett@uber.com> Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Which problem is this PR solving?
Short description of the changes
TraceDiffHeader