-
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
[Obs AI Assistant] Remove the copy button if there is no content to copy #199064
Conversation
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
9e7df43
to
1c4e54f
Compare
1c4e54f
to
906e6bb
Compare
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.
LGTM, code reviews only
906e6bb
to
315dd49
Compare
315dd49
to
5488566
Compare
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @viduni94 |
Starting backport for target branches: 8.x |
…opy (elastic#199064) Closes elastic#196986 ## Summary ### Problem The copy button for a visualization does nothing, as there's no content to copy. When clicked on this button, a message is shown saying "Copied Message", but nothing is copied. ### Solution Remove the copy button, when there's no content to copy. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit a613277)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…t to copy (#199064) (#199874) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Remove the copy button if there is no content to copy (#199064)](#199064) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-12T19:41:47Z","message":"[Obs AI Assistant] Remove the copy button if there is no content to copy (#199064)\n\nCloses https://github.com/elastic/kibana/issues/196986\r\n\r\n## Summary\r\n\r\n### Problem\r\nThe copy button for a visualization does nothing, as there's no content\r\nto copy. When clicked on this button, a message is shown saying \"Copied\r\nMessage\", but nothing is copied.\r\n\r\n### Solution\r\nRemove the copy button, when there's no content to copy.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"a613277a549a1be8643446bdf65517313a0c1e00","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:Obs AI Assistant","backport:version","v8.17.0"],"title":"[Obs AI Assistant] Remove the copy button if there is no content to copy","number":199064,"url":"https://github.com/elastic/kibana/pull/199064","mergeCommit":{"message":"[Obs AI Assistant] Remove the copy button if there is no content to copy (#199064)\n\nCloses https://github.com/elastic/kibana/issues/196986\r\n\r\n## Summary\r\n\r\n### Problem\r\nThe copy button for a visualization does nothing, as there's no content\r\nto copy. When clicked on this button, a message is shown saying \"Copied\r\nMessage\", but nothing is copied.\r\n\r\n### Solution\r\nRemove the copy button, when there's no content to copy.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"a613277a549a1be8643446bdf65517313a0c1e00"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199064","number":199064,"mergeCommit":{"message":"[Obs AI Assistant] Remove the copy button if there is no content to copy (#199064)\n\nCloses https://github.com/elastic/kibana/issues/196986\r\n\r\n## Summary\r\n\r\n### Problem\r\nThe copy button for a visualization does nothing, as there's no content\r\nto copy. When clicked on this button, a message is shown saying \"Copied\r\nMessage\", but nothing is copied.\r\n\r\n### Solution\r\nRemove the copy button, when there's no content to copy.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"a613277a549a1be8643446bdf65517313a0c1e00"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <[email protected]>
…opy (elastic#199064) Closes elastic#196986 ## Summary ### Problem The copy button for a visualization does nothing, as there's no content to copy. When clicked on this button, a message is shown saying "Copied Message", but nothing is copied. ### Solution Remove the copy button, when there's no content to copy. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
…opy (elastic#199064) Closes elastic#196986 ## Summary ### Problem The copy button for a visualization does nothing, as there's no content to copy. When clicked on this button, a message is shown saying "Copied Message", but nothing is copied. ### Solution Remove the copy button, when there's no content to copy. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Closes #196986
Summary
Problem
The copy button for a visualization does nothing, as there's no content to copy. When clicked on this button, a message is shown saying "Copied Message", but nothing is copied.
Solution
Remove the copy button, when there's no content to copy.
Screenshots
Before:
After:
Checklist