influxdata / influxdata/ui

Annotations: As a user I can toggle annotation streams on a dashboard

Open
#330 1 comment 0 reactions 0 assignees View on GitHub
team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

GIVEN I have defined at least 1 annotation stream
AND it contains annotations data within the currently selected time range
AND I am viewing a dashboard

### Enabling a stream

WHEN I click into the search input inside the annotations control bar
THEN I see a list of my annotation streams

WHEN I click on a stream
THEN it disappears from the list and appears as a "pill" in the control bar
AND I see annotation lines appear on the dashboard visualizations

### Disabling a stream

GIVEN I have at least 1 stream enabled
AND I have the annotation control bar visible

WHEN I click the `x` button on a stream "pill"
THEN it disappears
AND all the annotation lines from that stream also disappear from the dashboard visualizations

### GIF Preview

![toggle-annotation-streams](https://user-images.githubusercontent.com/2433762/99599557-72169e80-29b0-11eb-9f4d-bb2861c9ebd4.gif)

### Technical

- Associated components: https://github.com/influxdata/ui/tree/master/src/annotations/components/controlBar
- Redux: https://github.com/influxdata/ui/blob/master/src/annotations/reducers/index.ts

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.