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

[ObsUX][Profiling, Infra] Add NEW badge to the Profiling tab #174242

Conversation

jennypavlova
Copy link
Member

Closes #173156

Summary

This PR adds a NEW badge to the profiling tab and changes the profiling prompt badge color to pink

Testing

The badges can be checked on the node details page and inside the host details flyout:
image
image

@jennypavlova jennypavlova added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jan 4, 2024
@jennypavlova jennypavlova self-assigned this Jan 4, 2024
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jennypavlova
Copy link
Member Author

/ci

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1341 1342 +1

Async chunks

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

id before after diff
infra 1.3MB 1.3MB +48.0B

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

cc @jennypavlova

@jennypavlova jennypavlova marked this pull request as ready for review January 4, 2024 12:43
@jennypavlova jennypavlova requested review from a team as code owners January 4, 2024 12:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

export const NewBadge = () => (
<EuiBadge color="accent">
{i18n.translate('xpack.infra.newBadgeLabel', {
defaultMessage: 'NEW',
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to Uppercase it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure that I am the right person to decide that - I saw the profiling badge and the nav menu badge are uppercase so I tried to keep it consistent then I checked that in APM it's not 😕 So IMO if we have the same look everywhere is better but which one is better from the UX perspective (uppercase or lowercase) and how much we want to put the attention there I don't know. I would keep it like that here but we can also open a discussion with the design team and add an issue to align the labels everywhere, wdyt?

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM, just a nit.

@jennypavlova jennypavlova merged commit 1182ce6 into elastic:main Jan 4, 2024
26 checks passed
@jennypavlova jennypavlova deleted the 173156-obsux-profiling-infra-add-new-badge-to-the-profiling-tab branch January 4, 2024 16:09
@mykolaharmash mykolaharmash added v8.12.0 and removed backport:skip This commit does not require backporting labels Jan 16, 2024
@mykolaharmash
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.12

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

mykolaharmash pushed a commit to mykolaharmash/kibana that referenced this pull request Jan 16, 2024
…#174242)

Closes elastic#173156

## Summary

This PR adds a `NEW` badge to the profiling tab and changes the
profiling prompt badge color to pink

## Testing
The badges can be checked on the node details page and inside the host
details flyout:

![image](https://github.com/elastic/kibana/assets/14139027/30f4ca24-b460-4fe9-8c2c-372e435a1c64)

![image](https://github.com/elastic/kibana/assets/14139027/423232b2-fc2e-4718-a089-180157db22da)

(cherry picked from commit 1182ce6)
mykolaharmash added a commit that referenced this pull request Jan 16, 2024
…174242) (#174880)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[ObsUX][Profiling, Infra] Add NEW badge to the Profiling tab
(#174242)](#174242)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"jennypavlova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-04T16:09:09Z","message":"[ObsUX][Profiling,
Infra] Add NEW badge to the Profiling tab (#174242)\n\nCloses #173156
\r\n\r\n## Summary\r\n\r\nThis PR adds a `NEW` badge to the profiling
tab and changes the\r\nprofiling prompt badge color to pink\r\n\r\n##
Testing\r\nThe badges can be checked on the node details page and inside
the host\r\ndetails
flyout:\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/30f4ca24-b460-4fe9-8c2c-372e435a1c64)\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/423232b2-fc2e-4718-a089-180157db22da)","sha":"1182ce678c3b190aa5172f2b473db0d84ba12f5d","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.12.0","Team:obs-ux-infra_services","v8.13.0"],"number":174242,"url":"https://github.com/elastic/kibana/pull/174242","mergeCommit":{"message":"[ObsUX][Profiling,
Infra] Add NEW badge to the Profiling tab (#174242)\n\nCloses #173156
\r\n\r\n## Summary\r\n\r\nThis PR adds a `NEW` badge to the profiling
tab and changes the\r\nprofiling prompt badge color to pink\r\n\r\n##
Testing\r\nThe badges can be checked on the node details page and inside
the host\r\ndetails
flyout:\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/30f4ca24-b460-4fe9-8c2c-372e435a1c64)\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/423232b2-fc2e-4718-a089-180157db22da)","sha":"1182ce678c3b190aa5172f2b473db0d84ba12f5d"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174242","number":174242,"mergeCommit":{"message":"[ObsUX][Profiling,
Infra] Add NEW badge to the Profiling tab (#174242)\n\nCloses #173156
\r\n\r\n## Summary\r\n\r\nThis PR adds a `NEW` badge to the profiling
tab and changes the\r\nprofiling prompt badge color to pink\r\n\r\n##
Testing\r\nThe badges can be checked on the node details page and inside
the host\r\ndetails
flyout:\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/30f4ca24-b460-4fe9-8c2c-372e435a1c64)\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/423232b2-fc2e-4718-a089-180157db22da)","sha":"1182ce678c3b190aa5172f2b473db0d84ba12f5d"}}]}]
BACKPORT-->

Co-authored-by: jennypavlova <[email protected]>
@mistic mistic added v8.12.1 and removed v8.12.0 labels Jan 17, 2024
@mistic
Copy link
Member

mistic commented Jan 17, 2024

This PR didn't make it into the latest BC for 8.12.0. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.12.1 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ObsUX][Profiling, Infra] Add NEW badge to the Profiling tab
9 participants