Skip to content
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

Conversation

everett980
Copy link
Collaborator

@everett980 everett980 commented Jan 11, 2019

Which problem is this PR solving?

Short description of the changes

  • Add link to TraceDiffHeader and TraceDiffHeader/CohortTable, make DiffSelection entries clickable to view that trace in a new tab.

TraceDiffHeader

image

Signed-off-by: Everett Ross <reverett@uber.com>
@ghost ghost assigned everett980 Jan 11, 2019
@ghost ghost added the review label Jan 11, 2019
@codecov
Copy link

codecov bot commented Jan 11, 2019

Codecov Report

Merging #313 into master will increase coverage by 0.41%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
.../components/SearchTracePage/SearchResults/index.js 75% <ø> (ø) ⬆️
...nents/TracePage/TracePageHeader/TracePageHeader.js 93.33% <ø> (ø) ⬆️
...omponents/TraceDiff/TraceDiffHeader/TraceHeader.js 100% <ø> (+85.71%) ⬆️
...omponents/TraceDiff/TraceDiffHeader/CohortTable.js 15% <0%> (-0.79%) ⬇️
...nts/TraceDiff/TraceDiffHeader/TraceTimelineLink.js 100% <100%> (ø)
...s/jaeger-ui/src/components/common/NewWindowIcon.js 100% <100%> (+75%) ⬆️
...s/SearchTracePage/SearchResults/ResultItemTitle.js 100% <100%> (+20%) ⬆️
...nts/SearchTracePage/SearchResults/DiffSelection.js 100% <100%> (+25%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6597593...e13d357. Read the comment docs.

@tiffon
Copy link
Member

tiffon commented Jan 14, 2019

@everett980 Can you add screenshots to this?

Copy link
Member

@tiffon tiffon left a 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.

@everett980 everett980 changed the title Issue 305 Add link to timeline view from comparison view and selection Add link to timeline view from comparison view and selection Jan 17, 2019
everett980 and others added 5 commits January 17, 2019 10:40
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Copy link
Member

@tiffon tiffon left a 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.

*/

.TraceTimelineLink--icon {
font-size: 1em;
Copy link
Member

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?

Copy link
Collaborator Author

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?

Copy link
Member

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.

Copy link
Member

@tiffon tiffon Jan 18, 2019

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

Copy link
Collaborator Author

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: {
Copy link
Member

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 ?

Signed-off-by: Everett Ross <reverett@uber.com>
Signed-off-by: Everett Ross <reverett@uber.com>
Copy link
Member

@tiffon tiffon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

everett980 and others added 2 commits January 18, 2019 16:44
Signed-off-by: Everett Ross <reverett@uber.com>
@ghost ghost assigned tiffon Jan 18, 2019
@tiffon tiffon merged commit 8e1a66e into jaegertracing:master Jan 18, 2019
@ghost ghost removed the review label Jan 18, 2019
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants