[Security Solution][Resolver] Replace copy-to-clipboard with native navigator.clipboard#80193
Conversation
|
Pinging @elastic/endpoint-app-team (Feature:Resolver) |
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
❔ I think you could either put the text that's going to be copied in that aria-label like Copy ${textToCopy} to clipboard or you could maybe add an aria-description="${texttoCopy}" .
There was a problem hiding this comment.
aria-description doesn't seem to be valid. I can change it to Copy ${textToCopy} to clipboard?
There was a problem hiding this comment.
can you just put this inline since its a string, or otherwise use a camel case variable name.
There was a problem hiding this comment.
Is this data-test-subj correct? In the old code it was namespaced under resolver:...
There was a problem hiding this comment.
Thanks, yea, I fixed it.
There was a problem hiding this comment.
What's the purpose in preventing default and stopping propagation?
There was a problem hiding this comment.
copypasta. stopPropagation would be useful if we also had the drag and drop functionality, but alas we aren't there yet
oatkiller
left a comment
There was a problem hiding this comment.
Thanks for the change. I added a few comments. Let me know if they don't make sense.
There was a problem hiding this comment.
Instead of doing this, would you add writeText to the side effect simulator?
6d517ab to
d61b755
Compare
oatkiller
left a comment
There was a problem hiding this comment.
Thank you so much for this
💛 Build succeeded, but was flaky
Test FailuresCreates a timeline.Timelines Creates a timelineStack TraceMetrics [docs]async chunks size
History
To update your PR or re-run it, just comment with: |
…avigator.clipboard (elastic#80193)
…otphase-to-formlib * 'master' of github.com:elastic/kibana: (59 commits) [Security Solution][Resolver] Replace copy-to-clipboard with native navigator.clipboard (elastic#80193) [Security Solution] Reduce initial bundle size (elastic#78992) [Security Solution][Resolver] Fix Resize node box-shadow bug (elastic#80223) Move observability content (elastic#79978) skip flaky suite (elastic#79389) removing kibana_datatable` in favor of `datatable` (elastic#75184) [ML] Fixes for anomaly swim lane (elastic#80299) [Lens] Smokescreen lens test unskip (elastic#80190) Improved AlertsClient tests structure by splitting a huge alerts_client.tests.ts file into a specific files defined by its responsibility. (elastic#80088) [APM] React key warning when opening popover with external resources (elastic#80328) [Step 1] use Observables on server search API (elastic#79874) Apply back pressure in Task Manager whenever Elasticsearch responds with a 429 (elastic#75666) [Lens] Leverage original http request error (elastic#79831) [Security Solution][Case] Improve ServiceConnectorCaseParams type (elastic#80109) [SECURITY_SOLUTION] Fix query on alert histogram (elastic#80219) [DOCS] Update ingest node pipelines doc (elastic#79187) [Ingest Manager] Split up OpenAPI spec file (elastic#80107) [SECURITY_SOLUTION][ENDPOINT] Fix label on Trusted App create name field (elastic#80001) [Ingest Manager] Fix agent policy bump revision to create only one POLICY_CHANGE action (elastic#80081) Grid layout fixes (elastic#80305) ... # Conflicts: # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared/data_tier_allocation_field.tsx # x-pack/plugins/index_lifecycle_management/public/shared_imports.ts
Summary
This replaces the
clipboardpackage with the nativenavigator.clipboardapi. For reference onwriteText()https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText and browser availability: https://caniuse.com/?search=writetext