influxdata / influxdata/ui

Result Option: Pivot Toggle - UI Elements

Open
#5,367 16 comments 0 reactions 1 assignee Claimed by @asalem1 View on GitHub
team/automation
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## User Story

NOTE: This issue will track the implementation of the Pivot Toggle capabilities from the perspective of just the UI elements. This issue is responsible for handling the display of the fields to columns toggle within the result options pane in a way that can be easily wired to the LSP through an onClick function handler or some equivalent.

The associated LSP integration task is: https://github.com/influxdata/ui/issues/6285

As a user, I want to be able to quickly decide whether I want to see query results via the normal table view, or whether I want to see the raw data pivoted by time so that I can see them both ways without having to manually type a long "pivot" statement into my flux editor to pivot the data.

## Acceptance Criteria

- An option will be available in the UI to enable or disable time pivot

- When time pivot is in use, a pivot statement to pivot by time will be added to the flux when the query is ran

- If the user toggles away from pivoting, the pivot statement will be removed

- A change in this setting on an already run query will result in the query being re-ran

- A hover over this toggle option will show context help for what the feature is (text TBD)

- Pivot will be on by default, unless the user turns it off

## Design
https://www.figma.com/file/0qAntPk5LVangAHguWT74X/Query-Experience-Project?node-id=2190%3A97800

## Notes

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.