[APM] Use Code preview component for displaying stackframes#47974
[APM] Use Code preview component for displaying stackframes#47974dgieselaar wants to merge 4 commits intoelastic:masterfrom
Conversation
50d38b0 to
bf6bfba
Compare
|
This looks great! Any obstacles to shipping this in 7.5? nit: I prefer the highlight style from before, that expands to the entirety of the line and is not quite as strong. What does the design team on code think about that? @daveyholler @formgeist Edit: it also looks like syntax highlighting disappears on highlighted lines. |
|
@sqren I agree that the bright yellow highlight is a little heavy for line highlighting. It was originally intended to highlight the searched-for term in Code. Our line highlighting in Code is a bit different. |
💔 Build Failed
|
|
@daveyholler Much better. How do we get that style? |
|
@sqren That's a good question. This is ultimately using the I'd assume that this isn't using traditional line highlighting, but rather some kind of selection highlighting or the .codeSearch__highlight {
background-color: #E6C220;
color: black !important;
padding: 2px;
border-radius: 2px;
font-weight: bold;
font-style: oblique;
cursor: pointer;
} |
There was a problem hiding this comment.
@rylnd can you suggest on how to embed this CodeHeader and Variables into the CodeBlock component?
There was a problem hiding this comment.
I think for now, simply making CodeHeader and Variables siblings like this means less responsibility for CodeBlock, and an identical amount of work for the consumer. Within Code, we're going to continue to use CodeBlockPanel which accepts a header prop, but even that is of dubious value.
bf6bfba to
e416837
Compare
💚 Build Succeeded
|
e416837 to
0251dc9
Compare
💔 Build Failed
|
|
Currently blocked(-ish) by:
|
|
@formgeist Should I add spacing between the library stackframes? to |
0251dc9 to
7cdf6f2
Compare
|
@dgieselaar Yes, that looks good |
💔 Build Failed
|
💚 Build Succeeded
|
9701731 to
e56cd73
Compare
💔 Build Failed
|
e56cd73 to
f201021
Compare
💚 Build Succeeded |





Closes #47059.
Blocked by:
CodeBlockto support this as well.code/public, but importing that file currently leads to the Code application taking over APM's routing.Before:

After:
