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

[EuiCodeEditor] Add deprecation console warning #4984

Merged
merged 12 commits into from
Jul 28, 2021

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Jul 27, 2021

Summary

Adds some updated recommendations for rendering code and a console warning noting the deprecation and future removal of EuiCodeEditor. The warning looks as below in Kibana and only appears once when the component renders and will not appear multiple times on subsequent renders.

Screen Shot 2021-07-27 at 4 43 44 PM

The shortened link goes to the newly updated #3807

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox
- [ ] Props have proper autodocs and playground toggles

- [ ] Checked Code Sandbox works for the any docs examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4984/

Copy link
Contributor

@cchaos cchaos 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 the quick turnaround. Mostly had some suggestions around wording of the callout.

src-docs/src/views/code/code_example.js Outdated Show resolved Hide resolved
src-docs/src/views/code/code_example.js Outdated Show resolved Hide resolved
src-docs/src/views/code/code_example.js Outdated Show resolved Hide resolved
src-docs/src/views/code/code_example.js Outdated Show resolved Hide resolved
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Small requests on the test itself, everything else LGTM

src/services/console/warn_once.test.ts Outdated Show resolved Hide resolved
src/services/console/warn_once.test.ts Outdated Show resolved Hide resolved
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4984/

@cchaos

This comment has been minimized.

Copy link
Contributor

@cchaos cchaos 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 those updates! LGTM

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4984/

Copy link
Contributor

@chandlerprall chandlerprall 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 setting this up! LGTM

@thompsongl thompsongl merged commit 5e47b4b into elastic:master Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants