Skip to content

Top Right docViewer linkable plugin injection #1199

@RoyiSitbon

Description

@RoyiSitbon

Is your feature request related to a problem? Please describe.
Currently, we don't have an option to assimilate links under our top doc view section.
The “view surrounding documents” and “view single document” were written as static content.
We would like to make the top right side under doc view to be pluggable,
in order to assimilate new abilities such as “open in new tab icons” etc.

Before:
injections1

After:
injections2

Describe the solution you'd like
Since we don't find a reason to put something other than links inside this location,
we would like to create a new application component called DocViewerLinks
under dashboards/src/plugins/discover/public/application/components/doc_viewer_links
this component will contain linkable components and will be enriched by other links similarly to the docView tabs logic.

The enriched information will be comprised from:
{ …EuiListGroupItemProps, order: number; generateUrlFn?(renderProps: any): string; }

If we will pass generateUrlFn then we will link the result returned by it, else we will just take the href.

Additional context
After we will have this ability, we will be able to replace
application/angular/doc_table/components/table_row/details.html → link elements, with something like this:

Screen Shot 2022-02-02 at 11 49 44

and enrich links by demand with order prop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions