Skip to content

Conversation

@mibragimov
Copy link
Contributor

@mibragimov mibragimov commented May 19, 2022

Fixes #130982

This PR adds support for highlighting the results for multiple requests in the editor output

Screen Shot 2022-05-23 at 17 13 04

@mibragimov mibragimov added the WIP Work in progress label May 19, 2022
@mibragimov mibragimov requested a review from alexwizp May 19, 2022 08:58
@mibragimov mibragimov self-assigned this May 19, 2022
@mibragimov mibragimov added release_note:enhancement Feature:Console Dev Tools Console Feature Feature:Dev Tools Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.3.0 labels May 19, 2022
@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov
Copy link
Contributor Author

Verified functional tests through flaky-test-suite-runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/670

@mibragimov mibragimov requested review from a team as code owners May 26, 2022 12:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

@elastic/kibana-design Would you or some folks from EUI please review the styles here? I want to make sure they're correct, especially for dark mode.

@mibragimov People are going to love this enhancement! Thank you so much for making this change. I had one suggestion to add some more tests, other than that this code LGTM.

Did a quick test locally and things look good there too:

image

@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov mibragimov added review and removed WIP Work in progress labels May 30, 2022
@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

expected head sha didn’t match current head ref.

@mibragimov
Copy link
Contributor Author

@elastic/kibana-design Would you or some folks from EUI please review the styles here? I want to make sure they're correct, especially for dark mode.

ping @elastic/kibana-design

Copy link
Contributor

@MichaelMarcialis MichaelMarcialis left a comment

Choose a reason for hiding this comment

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

I've left a few style comments below for your review. Thanks!

Comment on lines 53 to 54
background-color: $euiColorSuccess;
color: chooseLightOrDarkText($euiColorSuccess);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggesting change to the correct badge background colors here.

Suggested change
background-color: $euiColorSuccess;
color: chooseLightOrDarkText($euiColorSuccess);
background-color: $euiColorVis0_behindText;
color: chooseLightOrDarkText($euiColorVis0_behindText);

Copy link
Contributor

Choose a reason for hiding this comment

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

@MichaelMarcialis For our own edification, can you teach us about the role of $euiColorVis0_behindText and similar colors, and what makes it better than $euiColorSuccess here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question, @cjcenizal! For the purposes of this PR, my reason for the suggested color changes were purely to make these ace badges consistent with the colors that our EuiBadge components use.

That said, I imagine the reason the EUI team ultimately chose to use the behind-text visualization colors for the EuiBadge component has to do with accessibility and the contrast ratio, as this component houses fairly small sized text. The contrast with the behind-text visualization colors appears to be higher and receives a better WCAG rating. Unlike EuiBadge, I assume that components with larger text sizes (such as EuiButton) can afford be a bit less strict with the color contrast, which is why they can use colors like $euiColorSuccess.

CCing @cchaos here to keep me honest and double-check my assumptions.

Copy link
Contributor

Choose a reason for hiding this comment

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

For full context on why we used visualization colors for badges, you can read through this PR: elastic/eui#2455

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you both! This helps me out a ton.

@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov
Copy link
Contributor Author

@MichaelMarcialis thanks for the review! I've addressed your feedback with ad57319, do you mind having another look?

Copy link
Contributor

@MichaelMarcialis MichaelMarcialis left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes @mibragimov. I only have one additional thought. Would it be worth changing the font family of .ace_badge to $euiFontFamily in this case? Currently, the .ace_badges are inheriting the editor font family, which differentiates itself from the standard EUI badges. Assuming these badges only ever appear at the end of editor lines, I think this might look nicer/more consistent.

Otherwise, this looks good from my perspective. Approving now so that I don't hold you up further. Thanks.

@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
console 389.0KB 389.5KB +468.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
console 23.0KB 24.4KB +1.4KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @mibragimov

@mibragimov mibragimov merged commit b5b68bb into elastic:main Jun 6, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jun 6, 2022
@mibragimov mibragimov deleted the console/multiple-requests-ux branch June 6, 2022 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:enhancement Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Console] Improve UX around handling multiple requests

8 participants