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

Annotations: As a user I can write an annotation to an existing annotation stream #224

Open
alexpaxton opened this issue Oct 27, 2020 · 0 comments
Labels

Comments

@alexpaxton
Copy link
Contributor

alexpaxton commented Oct 27, 2020

Blocked by https://github.com/influxdata/idpe/issues/9001


I am a user and I want to annotate a visualization I am looking at

GIVEN I have already created at least 1 Annotation Stream
AND I am looking at a visualization in the Data Explorer or a Dashboard

WHEN I click the Annotations button
THEN I see a toolbar with controls for annotations

WHEN I click the blue Annotate button
THEN I see instructions on how to annotate a visualization

WHEN I hover over a compatible visualization (TBD)
THEN I see a vertical marker following my mouse (inside the visualization)
AND the vertical marker tells me I can Click to add single point, click + drag to add a range

WHEN I click or click+drag on a compatible visualization
THEN I see an overlay with a form for creating the annotation

WHEN I click the blue Add Annotation button
AND there are no form errors
THEN my annotation is written to the bucket associated with the stream selected and inherits tags + measurements
AND I see a notification appear (success, 5s, "Annotation written successfully! Please wait a moment for it to appear")

WHEN I click the blue Add Annotation button
AND there are form errors
THEN I see error text below each invalid input

Design Mockup
AddAnnotationOverlay.tsx

This UI is partially built out:
Access the overlay by clicking Annotate
Access the overlay with route orgs/orgID/dashboard/dashboardID/add-annotation (from dashboard) or orgs/orgID/data-explorer/add-annotation (from DE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant