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
fix display of stacktrace with EuiCodeBlocks #149911
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-ref HEAD~1..HEAD --fix'
…s' into fixing_ux_for_stacktrace_messages
achyutjhunjhunwala
added
the
backport:skip
This commit does not require backporting
label
Jan 31, 2023
Pinging @elastic/apm-ui (Team:APM) |
boriskirov
approved these changes
Jan 31, 2023
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 very on-point improvement of the stack trace area!
LGTM! 🚀
yngrdyn
approved these changes
Jan 31, 2023
💚 Build Succeeded
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: |
kqualters-elastic
pushed a commit
to kqualters-elastic/kibana
that referenced
this pull request
Feb 6, 2023
## Summary This PR introduced the feedback provided during the demo of for elastic#149400 and elastic#149122 - It introduces `EuiCodeBlock` wrapper for wrapping Stacktrace messages to make them look visually better, copyable and adds a Horizontal scrollbar - The component `EuiCodeBlock` exposes a language property, but it doesn't seems to add any visual changes so i have skipped that property. - The `Copy` feature only copies content at top most level. This means for stacktraces with multiple accordions on same level (like `Ruby, Go, and PHP`), it will only copy the accordion titles and not the code inside. This is the behaviour of the EUI component. cc @boriskirov ## Java (Before) <img width="1192" alt="image" src="https://user-images.githubusercontent.com/7416358/215712147-dea1bf12-e818-4e41-9fd4-cd964b260844.png"> ## Java (After) <img width="1204" alt="image" src="https://user-images.githubusercontent.com/7416358/215717833-6d6c2bb8-924e-4beb-9a1a-f39214b91abd.png"> ## C# (Before) <img width="1193" alt="image" src="https://user-images.githubusercontent.com/7416358/215714318-b0772191-9617-4623-9264-b976f8b3115e.png"> ## C# (After) <img width="1190" alt="image" src="https://user-images.githubusercontent.com/7416358/215718329-3bf213cc-1dee-46f7-9cfc-7b8de53ff90c.png"> ## PHP (Before) <img width="1264" alt="image" src="https://user-images.githubusercontent.com/7416358/215717275-1483c810-01fd-4a94-99ab-b22060dbddf0.png"> ## PHP (After) <img width="1284" alt="image" src="https://user-images.githubusercontent.com/7416358/215716120-8fb60648-18df-4d6a-b515-6bf5f848043e.png"> ## Javascript (Before) <img width="1224" alt="image" src="https://user-images.githubusercontent.com/7416358/215718766-1bc5b672-83d3-4e6a-81ff-5b19d224bb7d.png"> ## Javascript (After) <img width="1219" alt="image" src="https://user-images.githubusercontent.com/7416358/215718812-d45adca5-6239-4904-a7b8-0c5fe3c86c65.png"> ## Ruby (Before) <img width="1208" alt="image" src="https://user-images.githubusercontent.com/7416358/215719647-53d30e45-9349-4dcb-a7a4-a390ae99507b.png"> ## Ruby (After) <img width="1219" alt="image" src="https://user-images.githubusercontent.com/7416358/215719736-b6c5931b-2fc8-4607-9abf-c0ce7b447157.png"> ## Go (Before) <img width="1203" alt="image" src="https://user-images.githubusercontent.com/7416358/215720396-460baa8c-83cd-4e0c-98ec-27ac7367b052.png"> ## Go (After) <img width="1190" alt="image" src="https://user-images.githubusercontent.com/7416358/215720481-89057010-e22a-4d6b-9caf-ee43f17d4b67.png"> ## Python (Before) <img width="1228" alt="image" src="https://user-images.githubusercontent.com/7416358/215720760-a5991ddc-6901-44f2-a294-8adb616c0678.png"> ## Python (After) <img width="1221" alt="image" src="https://user-images.githubusercontent.com/7416358/215720807-3f77f14c-9a12-4dbf-bb07-9614c6f150f0.png"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
darnautov
pushed a commit
to darnautov/kibana
that referenced
this pull request
Feb 7, 2023
## Summary This PR introduced the feedback provided during the demo of for elastic#149400 and elastic#149122 - It introduces `EuiCodeBlock` wrapper for wrapping Stacktrace messages to make them look visually better, copyable and adds a Horizontal scrollbar - The component `EuiCodeBlock` exposes a language property, but it doesn't seems to add any visual changes so i have skipped that property. - The `Copy` feature only copies content at top most level. This means for stacktraces with multiple accordions on same level (like `Ruby, Go, and PHP`), it will only copy the accordion titles and not the code inside. This is the behaviour of the EUI component. cc @boriskirov ## Java (Before) <img width="1192" alt="image" src="https://user-images.githubusercontent.com/7416358/215712147-dea1bf12-e818-4e41-9fd4-cd964b260844.png"> ## Java (After) <img width="1204" alt="image" src="https://user-images.githubusercontent.com/7416358/215717833-6d6c2bb8-924e-4beb-9a1a-f39214b91abd.png"> ## C# (Before) <img width="1193" alt="image" src="https://user-images.githubusercontent.com/7416358/215714318-b0772191-9617-4623-9264-b976f8b3115e.png"> ## C# (After) <img width="1190" alt="image" src="https://user-images.githubusercontent.com/7416358/215718329-3bf213cc-1dee-46f7-9cfc-7b8de53ff90c.png"> ## PHP (Before) <img width="1264" alt="image" src="https://user-images.githubusercontent.com/7416358/215717275-1483c810-01fd-4a94-99ab-b22060dbddf0.png"> ## PHP (After) <img width="1284" alt="image" src="https://user-images.githubusercontent.com/7416358/215716120-8fb60648-18df-4d6a-b515-6bf5f848043e.png"> ## Javascript (Before) <img width="1224" alt="image" src="https://user-images.githubusercontent.com/7416358/215718766-1bc5b672-83d3-4e6a-81ff-5b19d224bb7d.png"> ## Javascript (After) <img width="1219" alt="image" src="https://user-images.githubusercontent.com/7416358/215718812-d45adca5-6239-4904-a7b8-0c5fe3c86c65.png"> ## Ruby (Before) <img width="1208" alt="image" src="https://user-images.githubusercontent.com/7416358/215719647-53d30e45-9349-4dcb-a7a4-a390ae99507b.png"> ## Ruby (After) <img width="1219" alt="image" src="https://user-images.githubusercontent.com/7416358/215719736-b6c5931b-2fc8-4607-9abf-c0ce7b447157.png"> ## Go (Before) <img width="1203" alt="image" src="https://user-images.githubusercontent.com/7416358/215720396-460baa8c-83cd-4e0c-98ec-27ac7367b052.png"> ## Go (After) <img width="1190" alt="image" src="https://user-images.githubusercontent.com/7416358/215720481-89057010-e22a-4d6b-9caf-ee43f17d4b67.png"> ## Python (Before) <img width="1228" alt="image" src="https://user-images.githubusercontent.com/7416358/215720760-a5991ddc-6901-44f2-a294-8adb616c0678.png"> ## Python (After) <img width="1221" alt="image" src="https://user-images.githubusercontent.com/7416358/215720807-3f77f14c-9a12-4dbf-bb07-9614c6f150f0.png"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:skip
This commit does not require backporting
release_note:fix
Team:APM
All issues that need APM UI Team support
v8.7.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduced the feedback provided during the demo of for #149400 and #149122
EuiCodeBlock
wrapper for wrapping Stacktrace messages to make them look visually better, copyable and adds a Horizontal scrollbarEuiCodeBlock
exposes a language property, but it doesn't seems to add any visual changes so i have skipped that property.Copy
feature only copies content at top most level. This means for stacktraces with multiple accordions on same level (likeRuby, Go, and PHP
), it will only copy the accordion titles and not the code inside. This is the behaviour of the EUI component.cc @boriskirov
Java (Before)
Java (After)
C# (Before)
C# (After)
PHP (Before)
PHP (After)
Javascript (Before)
Javascript (After)
Ruby (Before)
Ruby (After)
Go (Before)
Go (After)
Python (Before)
Python (After)