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

[TIP] Add copy to clipboard feature #142675

Merged

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Oct 4, 2022

Summary

This PR adds the copy to clipboard feature to the Threat Intelligence plugin.
Here are the places the copy capability has been added:

  • indicators table cellActions: we had to use a custom renderCellPopover (as mentioned in the doc when using a custom renderCellValue)
  • add to barchart context menu
  • add to flyout (in the overview tab and the table tab)

To guarantee a good user experience, this PR also adds the other features to the Indicators table cellActions popover (see image below).
Screen Shot 2022-10-04 at 5 00 06 PM

Similarly to FilterIn, FilterOut and AddToTimeline components, this PR adds 2 new CopyToClipboard components: one as an EuiButtonEmpty and the second as an EuiContextMenu.

Screen.Recording.2022-10-04.at.4.53.16.PM.mov

Fixes https://github.com/elastic/security-team/issues/4548

To do

  • add e2e tests

Checklist

Delete any items that are not applicable to this PR.

@PhilippeOberti PhilippeOberti requested a review from a team as a code owner October 4, 2022 22:00
@PhilippeOberti PhilippeOberti added release_note:skip Skip the PR/issue when compiling release notes Team: Protections Experience v8.6.0 labels Oct 4, 2022
Copy link
Contributor

@lgestc lgestc left a comment

Choose a reason for hiding this comment

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

LGTM!

@ferenrigue
Copy link

@PhilippeOberti there is a way to keep a width (240px). And make the indicators ID go to two or even three rows. So we can follow this design. (Sorry for not providing this view before).
Screenshot 2022-10-05 at 15 05 26

- add to indicators table cellActions using renderCellPopover property
- add to barchart context menu
- add to flyout
@PhilippeOberti PhilippeOberti force-pushed the indicator-table-cell-popover branch from 04bccfc to 91b42e0 Compare October 5, 2022 14:15
@PhilippeOberti
Copy link
Contributor Author

PhilippeOberti commented Oct 5, 2022

@PhilippeOberti there is a way to keep a width (240px). And make the indicators ID go to two or even three rows. So we can follow this design. (Sorry for not providing this view before).

@ferenrigue Done!!

Screen Shot 2022-10-05 at 9 14 48 AM

Screen Shot 2022-10-05 at 9 14 54 AM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
threatIntelligence 218 222 +4

Async chunks

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

id before after diff
threatIntelligence 113.7KB 116.0KB +2.3KB

History

  • 💚 Build #78142 succeeded 04bccfc16eb59f8ffe572deb538e2f8c3e70a3b1

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

@PhilippeOberti PhilippeOberti merged commit 37b9d98 into elastic:main Oct 5, 2022
@PhilippeOberti PhilippeOberti deleted the indicator-table-cell-popover branch October 5, 2022 15:45
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 5, 2022
WafaaNasr pushed a commit to WafaaNasr/kibana that referenced this pull request Oct 11, 2022
- add to indicators table cellActions using renderCellPopover property
- add to barchart context menu
- add to flyout
WafaaNasr pushed a commit to WafaaNasr/kibana that referenced this pull request Oct 14, 2022
- add to indicators table cellActions using renderCellPopover property
- add to barchart context menu
- add to flyout
@maxcold maxcold added release_note:enhancement Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. and removed release_note:skip Skip the PR/issue when compiling release notes labels Nov 10, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:enhancement Team: Protections Experience Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants