Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

As OWNER of an organization, I want to embed the Clair widget in my website. #24

@uliSchuster

Description

@uliSchuster

Goal: The Clair Widget is visible on my website for one particular node installation. If I want to show the date from several nodes, I need to embed the widget several times, with different parameters.

To embed the widget, I need a JavaScript snippet that I can add to the HTML of my webpage. This snipped loads the widget from the Clair Server and parameterises it.
Subject of the present issue is to

  • provide a means for an organization OWNER to quickly retrieve the correctly parameterised JavaScript snippet,
  • adjust the widget such that it can be parameterised directly for a specific node installation.

As an OWNER of an organization, I authenticate at the Clair Dashboard. In my inventory, I navigate to view the time series of the desired sensor node. In this context, there is a button "Embed widget into my site". When clicked, the dashboard checks if the corresponding installation has the public flag set. If not, it tells the user to do so first, but proceeds nevertheless. A dialog opens that outputs the JS snippet as text, together with a button to copy the text to the clipboard or to save it to disk. The snippet contains the parameters for the present installation. The dialog may contain additional information on how to embed the widget in a custom HTML page, maybe even with an example.

If I am not an OWNER of the organization to which the node belongs, there should be no corresponding button.

The widget itself needs to be modified such that it directly accepts parameters that identify a specific node installation. In addition, the widget should be enhanced to contain a link to the Clair-Berlin website in a prominent place. Goal of this link is to provide background explanation vor visitors of the present site.

Dependency: Public.
Widget per installation, not per site.

Complexity: 3
Value: 20
WSJF: 6.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions