Skip to content

Allow all embeddables to display description in Dashboard panel #48359

@nreese

Description

@nreese

#44702 added a neat feature where users can save descriptions with their visualizations and then those descriptions are available on dashboards. This is a great way to provide context for panels in dashboards.

Screen Shot 2019-10-15 at 9 45 03 PM

The problem is that the implementation is Visualization embeddable specific.

https://github.com/elastic/kibana/blob/master/src/plugins/embeddable/public/lib/panel/panel_header/panel_header.tsx#L71

function getViewDescription(embeddable: IEmbeddable | VisualizeEmbeddable) {
  if (embeddable.type === VISUALIZE_EMBEDDABLE_TYPE) {
    const description = embeddable.getVisualizationDescription();

    if (description) {
      return description;
    }
  }

  return '';
}

The Maps app would like to provide the some type of functionality so users can provide context for maps when they are embedded in Dashboards, or any where else.

It would be great if getViewDescription would work for any embeddable and just use something more generic like embeddable.getDescription()

cc @stacey-gammon @elastic/kibana-gis @streamich @friol

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:DashboardDashboard related featuresTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//enhancementNew value added to drive a business result

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions