-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Console] Improve status code highlighting #192888
[Console] Improve status code highlighting #192888
Conversation
}, | ||
}, | ||
]; | ||
|
||
expect(getStatusCodeDecorations(SAMPLE_COMPLETE_DATA)).toEqual(EXPECTED_DECORATIONS); | ||
}); | ||
|
||
it('only returns decorations for data with complete status code and text', () => { |
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.
Removing this test as now we have a decoration for the first line of every response regardless of the completeness of the status code and text
Pinging @elastic/kibana-management (Team:Kibana Management) |
@ElenaStoeva did you check the color contrast for these new background colors? |
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.
Awesome work @ElenaStoeva, looks a loooot better now! Code changes lgtm, although when I was testing I noticed a small problem with the color of the error response.
As already mentioned I think we need to properly asses the colors to make sure they are compliant.
Good call! In fd60c2a I added |
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.
Awesome work @ElenaStoeva! Lates changes lgtm 🚀🚀🚀
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.
Thanks for the change!
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @ElenaStoeva |
Closes #190731
Summary
This PR improves the status code highlighting when multiple requests are sent.
Screen.Recording.2024-09-17.at.12.15.20.mov
Dark mode:

All code statuses:
