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

Context menu trigger for URL Drilldown #81158

Merged
merged 13 commits into from
Oct 30, 2020
Merged

Context menu trigger for URL Drilldown #81158

merged 13 commits into from
Oct 30, 2020

Conversation

streamich
Copy link
Contributor

@streamich streamich commented Oct 20, 2020

Summary

Closes #70457

  • This PR allows adding URL drilldowns to embeddable panel context menu.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@streamich streamich marked this pull request as ready for review October 28, 2020 12:28
@streamich streamich requested review from a team as code owners October 28, 2020 12:28
@streamich streamich added Feature:Drilldowns Embeddable panel Drilldowns Feature:UIActions UI actions. These are client side only, not related to the server side actions.. release_note:skip Skip the PR/issue when compiling release notes Team:AppArch v8.0.0 labels Oct 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Looks good. Tested.

I think we should also update user-facing docs: https://www.elastic.co/guide/en/kibana/master/url-drilldown.html#trigger-picker

defaultMessage: 'Context menu',
}),
description: i18n.translate('embeddableApi.contextMenuTrigger.description', {
defaultMessage: 'A panel top-right corner context menu click.',
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say something like: "Adds a new option to panel's context menu"

Copy link
Contributor

Choose a reason for hiding this comment

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

Also noticed "Show option on... context menu" doesn't make much sense :(
not sure what to do about it

Screenshot 2020-10-29 at 10 40 22

@botelastic botelastic bot added the Feature:Embedding Embedding content via iFrame label Oct 29, 2020
@timroes timroes added v7.11.0 and removed v7.11 labels Oct 29, 2020
Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Tested locally on chrome and everything LGTM.

Really impressed with how the available variables are populated when you move from a context menu trigger to a value click trigger and back.

@streamich
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
uiActionsEnhanced 139 140 +1

page load bundle size

id before after diff
dashboardEnhanced 31.1KB 31.1KB +52.0B
embeddable 217.6KB 219.6KB +2.0KB
embeddableEnhanced 18.9KB 19.0KB +73.0B
uiActionsEnhanced 304.5KB 304.3KB -135.0B
urlDrilldown 13.7KB 13.9KB +194.0B
total +2.2KB

History

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

@streamich streamich merged commit aaadbe8 into elastic:master Oct 30, 2020
streamich added a commit that referenced this pull request Oct 30, 2020
* feat: 🎸 add context menu trigger to URL drilldown

* fix: 🐛 translate "Drilldowns" grouping title

* feat: 🎸 add dynamic action grouping to dynamic actions

* fix: 🐛 add translations to trigger texts

* feat: 🎸 enambe ctx menu trigger in both flyouts, move to end

* fix: 🐛 show context menu event scope variable sfor ctx menu

* test: 💍 add tests

* fix: 🐛 use correct namespace for translation keys

* docs: ✏️ update autogenerated docs

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 30, 2020
* master: (71 commits)
  [Chrome] Extension to append an element to the last breadcrumb (elastic#82015)
  [Monitoring] Thread pool rejections alert (elastic#79433)
  [Actions] Fix actionType type on registerType function (elastic#82125)
  [Security Solution] Modal for saving timeline (elastic#81802)
  add tests for index pattern switching (elastic#81987)
  TS project references for share plugin (elastic#82051)
  [Graph] Fix problem with duplicate ids (elastic#82109)
  skip 'returns a single bucket if array has 1'.  related elastic#81460
  Add a link to documentation in the alerts and actions management UI (elastic#81909)
  [Fleet] fix duplicate ingest pipeline refs (elastic#82078)
  Context menu trigger for URL Drilldown (elastic#81158)
  SO management: fix legacy import index pattern selection being reset when switching page (elastic#81621)
  Fixed dead links (elastic#78696)
  [Search] Add "restore" to session service (elastic#81924)
  fix Lens heading structure (elastic#81752)
  [ML] Data Frame Analytics: Fix feature importance cell value and decision path chart (elastic#82011)
  Remove legacy app arch items from codeowners. (elastic#82084)
  [TSVB] Renamed 'positive rate' to 'counter rate' (elastic#80939)
  Expressions/migrations2 (elastic#81281)
  [Telemetry] [Schema] remove number type and support all es number types (elastic#81774)
  ...
@streamich streamich added release_note:roadmap and removed release_note:skip Skip the PR/issue when compiling release notes labels Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame Feature:UIActions UI actions. These are client side only, not related to the server side actions.. v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Drilldowns] Embeddable context menu trigger
6 participants