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

[Dashboard] Reorganize panel actions #178596

Merged
merged 37 commits into from
Apr 4, 2024

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Mar 13, 2024

Summary

Closes #177254.

This updates the order panel actions appear in the actions menu. This also deletes the Replace panel action.

Top level

Screenshot 2024-03-26 at 8 52 06 AM

More

Screenshot 2024-03-26 at 8 52 12 AM

Changes:

  • Move create/manage drilldown actions into More sub-menu
  • Move Delete from dashboard onto the top level actions menu
  • Delete Replace panel action
  • Delete Add to new case action
  • Rename Add to existing case action -> Add to case
  • Rename Create anomaly detection job action -> Detect anomalies
  • Rename Clone panel action -> Duplicate
  • Rename Panel settings action -> Settings
  • Rename Delete from dashboard action -> Remove
  • Rename Explore data in Discover action -> Explore in Discover
  • Rename Download as CSV action -> Download CSV
  • Rename Maximize panel action -> Maximize

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@amyjtechwriter
Copy link
Contributor

amyjtechwriter commented Mar 20, 2024

Hey hey @cqliu1 , just looking at the words in the panel actions we could maybe change some.

  • Panel settings --> Settings

  • Clone panel --> Duplicate

  • Delete from dashboard --> Remove (If the user selects this and the panel is not saved in the viz library maybe we should introduce a modal to state it is permanently removed/deleted...but if we use the word deleted in the modal then perhaps we should stick with the original 'Delete from dashboard'. I'm struggling to make up my mind about it.)

  • Explore data in Discover --> Explore in Discover

  • Download as CSV --> Download CSV/Export CSV

  • Maximize panel --> Maximize

I think the other actions are good as they are because they are very descriptive. I won't be offended if we don't change any of the actions

@cqliu1
Copy link
Contributor Author

cqliu1 commented Mar 21, 2024

@teresaalvarezsoler Can we do this reorg without using the dividers in the More sub-menu? It will require a pretty significant refactor of the actions framework and take an additional week or so.

Here are Andrea's mocks with the dividers:
Screenshot 2024-03-21 at 8 02 30 AM

Here's what I've implemented on this PR so far:
Screenshot 2024-03-12 at 8 46 36 PM
Screenshot 2024-03-12 at 8 47 17 PM

@teresaalvarezsoler
Copy link

@cqliu1 absolutely, let's do it without dividers. This menu will anyway change when we do hover actions so let's keep it to the minimum possible effort for now.

@cqliu1 cqliu1 marked this pull request as ready for review March 21, 2024 20:56
@cqliu1 cqliu1 requested review from a team as code owners March 21, 2024 20:56
@cqliu1 cqliu1 added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Mar 21, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@cqliu1 cqliu1 added release_note:enhancement loe:medium Medium Level of Effort impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. v8.14.0 labels Mar 21, 2024
@botelastic botelastic bot added the Feature:Drilldowns Embeddable panel Drilldowns label Mar 21, 2024
@@ -28,7 +28,7 @@ export function createVisToADJobAction(
},
getDisplayName: () =>
i18n.translate('xpack.ml.actions.createADJobFromLens', {
defaultMessage: 'Create anomaly detection job',
defaultMessage: 'Detect anomaly',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
defaultMessage: 'Detect anomaly',
defaultMessage: 'Detect anomalies',

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated copy in 2ecb655 👍

@cqliu1 cqliu1 requested a review from a team as a code owner March 22, 2024 23:00
@Heenawter Heenawter self-requested a review March 25, 2024 18:27
@cqliu1 cqliu1 requested a review from a team as a code owner March 28, 2024 22:08
Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

Code-only review. Data Discovery functional test removal LGTM since it looks like the functionality it was testing has been removed 👍

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

ML changes LGTM

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

Cases changes LGTM!

Copy link
Contributor

@Heenawter Heenawter 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 + code review - LGTM, minus a few lines that should be removed 👍 Great job on this!

@cqliu1 cqliu1 requested a review from a team as a code owner April 3, 2024 18:10
Copy link
Contributor

@andreadelrio andreadelrio left a comment

Choose a reason for hiding this comment

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

Design changes LGTM. Thanks!

@cqliu1 cqliu1 requested review from a team and drewdaemon and removed request for drewdaemon April 3, 2024 20:21
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cases 715 714 -1
dashboard 440 437 -3
total -4

Async chunks

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

id before after diff
dashboard 389.7KB 392.9KB +3.2KB
lens 1.4MB 1.4MB -5.0B
ml 3.7MB 3.7MB -12.0B
total +3.2KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cases 149.1KB 147.7KB -1.3KB
dashboard 37.0KB 36.9KB -148.0B
dashboardEnhanced 15.4KB 15.3KB -118.0B
lens 46.3KB 46.3KB -6.0B
presentationPanel 42.5KB 41.9KB -573.0B
uiActions 20.3KB 20.3KB +24.0B
total -2.1KB
Unknown metric groups

References to deprecated APIs

id before after diff
cases 21 19 -2
dashboard 42 40 -2
total -4

History

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

Copy link
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Vis changes LGTM 🎉

@cqliu1 cqliu1 merged commit dd2155d into elastic:main Apr 4, 2024
18 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 4, 2024
@cqliu1 cqliu1 deleted the dashboard/actions-menu-reorg branch April 4, 2024 14:56
wayneseymour added a commit to wayneseymour/kibana that referenced this pull request Oct 11, 2024
Contributes to: elastic#194817

Why I assigned them:

Assigned advanced_settings due to elastic#175255

Assigned dashboard_controls due to elastic#190797

Assigned dashboard_links due to elastic#174772

Assigned dashboard_panel_options due to elastic#178596

Assigned grok_debugger due to https://github.com/elastic/kibana/blob/main/x-pack/plugins/grokdebugger/kibana.jsonc#L4

Assigned helpers due to elastic#164341 (call site)

Assigned home due to elastic#103192

Assigned index_lifecycle_management due to elastic#116207

Assigned ingest_node_pipelines due to elastic#113783

Assigned kibana_overview due to  https://github.com/elastic/kibana/blob/f00ac7a8a21463e6bb4a2784c3a3884f36c62900/x-pack/plugins/grokdebugger/kibana.jsonc#L4

Assigned management due to elastic#165705

Assigned painless_lab due to https://github.com/elastic/kibana/blob/main/x-pack/plugins/painless_lab/kibana.jsonc#L4

Assigned search_profiler due to elastic#195343

Assigned uptime due to https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/uptime/kibana.jsonc#L4

Assigned lens due to elastic#175893

Assigned ml_anomaly_detection due to elastic#162126

Assigned canvas due to elastic#164376

Assigned cc replication due to elastic#149069

Assigned enterpise search due to elastic#79359

Assigned graph to due elastic#190797

Assigned license_management due to https://github.com/elastic/kibana/blob/main/x-pack/plugins/license_management/kibana.jsonc#L4

Assigned maps due to elastic#155161

Assigned observability due to https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/observability/kibana.jsonc#L4

Assigned remote clusters due to elastic#96989

Assigned reporting due to elastic#121435

Assigned rollup_jobs due to https://github.com/elastic/kibana/blob/d57bc9a5d7d64f86b550eff7997605a3090aee9a/x-pack/plugins/rollup/kibana.jsonc#L4

Assigned watcher due to elastic#119717
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 Feature:Dashboard Dashboard related features Feature:Drilldowns Embeddable panel Drilldowns impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:medium Medium Level of Effort release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Improve context menu options organization