influxdata / influxdata/ui

Ability to invoke and return to Script Editor

Open
#6,071 1 comment 0 reactions 1 assignee Claimed by @juliajames12 View on GitHub
team/automation
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## User Story

As a product manager, I want to be able to utilize the Script Editor wherever a script is needed in the application, so I want to be able to "call" the script editor when needed, with a way for the user to return back to the calling location\.

## Acceptance Criteria

- Developers working on another area in the application, like Tasks or Dashboard Cells, will be able to invoke the script editor

- They will be able to pass in a script name when calling the editor

- If the script name is a previously saved script, the script editor will load that existing script

- If the script name passed is not a previously saved script, it will start with a blank script, but will have that name filled in and ready to be saved

- There will be a navigation button or breadcrumb \(or some other UI interaction\) for the user to go back to the calling location

- When returning to the calling location, the script name and contents will be passed

- Parameters can be passed when calling the script editor to disable certain functions of the script editor when called in this fashion, including:

- Load button \(loading other scripts\)

- Renaming script

- Visualization \(graph display\)

- Time Range Selection

- When a parameter is passed to disable one of these items, they will not be visible in the Script Editor

## Notes

- Tasks and Dashboards cells are the first use cases where this will be needed

- When a user edits a dashboard cell, we will want them to be able to use the new script editor \(that work will be done separately from this ticket\)

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.