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

Present beta tooltip for categorization values #1511

Merged

Conversation

ebeahan
Copy link
Member

@ebeahan ebeahan commented Jul 12, 2021

Summary

Allow for a beta attribute to be defined on an ECS categorization allowed value and that beta attribute's value to be passed into the ECS docs as a beta tooltip.

This expands the beta label supported initially added in #1051.

Description

An allowed value defined underneath one of the ECS categorization fields will now support the beta attribute.

It's defined on the desired value:

        - name: example
          description: >
            an example description
          beta: Use of this allowed value is currently beta

Will render as part of the allowed values description in the docs:

Screen Shot 2021-07-12 at 5 00 15 PM

And will act as a tooltip displaying a beta notice when moused over:

Screen Shot 2021-07-12 at 5 02 11 PM

@ebeahan ebeahan self-assigned this Jul 12, 2021
Copy link
Contributor

@kgeller kgeller left a comment

Choose a reason for hiding this comment

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

This is awesome! LGTM

@ebeahan ebeahan merged commit 14a8d52 into elastic:master Jul 13, 2021
@ebeahan ebeahan deleted the feature/beta-tooltip-on-categorization-values branch July 13, 2021 21:25
ebeahan added a commit to ebeahan/ecs that referenced this pull request Jul 13, 2021
* include beta tooltip if beta attribute is present

* test for presence of beta fields

* changelog

* add note about beta support in the README
ebeahan added a commit to ebeahan/ecs that referenced this pull request Jul 13, 2021
* include beta tooltip if beta attribute is present

* test for presence of beta fields

* changelog

* add note about beta support in the README
ebeahan added a commit that referenced this pull request Jul 13, 2021
* include beta tooltip if beta attribute is present

* test for presence of beta fields

* changelog

* add note about beta support in the README
ebeahan added a commit that referenced this pull request Jul 13, 2021
* include beta tooltip if beta attribute is present

* test for presence of beta fields

* changelog

* add note about beta support in the README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants