* WIP
* Add optional "max" prop to inputs
* Improve opt-in component further
* Update YAxisBound to follow latest optin pattern
* WIP refactor decimal places widget
* Use Radio buttons in optin instead of checkbox
* Change layout of optin to vertically stack
* Shrink size of min/max y-axis options
* Give linter a cookie
* Move optin to clockface and rename to "Auto-Input"
* Update existing imports for auto-input
Building the UI for production (via the `yarn build` script) involves
using [cssnano][0] to compress the UI stylesheets. Previously, cssnano
errored on some [invalid SCSS syntax][1], causing the entire production
build to fail. This also broke the `deploy` workflow in CircleCI.
This commit fixes the invalid SCSS syntax and resulting issues.
Closes#1553
[0]: https://cssnano.co/
[1]: https://github.com/sass/sass/issues/818
A hack brought over from Chronograf 1.7. Without this, a screen tearing
bug will be visible near the y axis after updating the y axis' prefix or
suffix.
Change sortingHat to sort by a single (last clicked) column
Change sortingHat to sort by a single (last clicked) column
Created tests for TasksList
Create dummyData.ts in src/tasks instead of using the mocks/dummyData
Added IndexList instead of using table header on Dashbaord
Test snapshot
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
Since the `id` was not preserved when switching view types, attempting
to save a view after changing its type would result in a new view being
created rather than the existing view being updated.
Also fixes an issue where a dygraph would not rerender when switching
from a step plot to line plot, or during similar conversions.
Setting the initial `TimeMachine` state of the VEO after the VEO was
opened caused a double render in the `TimeSeries` component. This
created an issue where opening the VEO for a cell after the VEO had
previously been open would display the incorrect loading state (since
the `TimeSeries` component displays a special loading state for the
initial render).
This commit ensures the initial `TimeMachine` state for the VEO is set
before the VEO is opened.
* Create TaskOptions type and actions/reducers
* Add prevent default event handling to Dropdown click functions
* Improve utility of ComponentSpacer
* Create components for task option unit and org dropdowns
* Replace ActionTypes enum with hard-coded strings in tasks actions
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
1. The username field is now autofocused.
2. Pressing enter in an input will submit the signin form.
Long term, we should switch the reusable UI `Form` element to use an
actual HTML `form` element, rather than a `div`. That way we get these
sorts of interactions for free.
Closes#1354Closes#1355
This ports the `Dygraph` component from Chronograf 1.7, which contains
many bug fixes and enhancements. Notably, it does not quadruple render
on every mouse move event.
The component has been adapter for platform. All code relating to
annotations and the static legend has been removed.
The `hoverTime` state updates very rapidly (on every mousemove event for
any graph in a dashboard). This makes storing the `hoverTime` in Redux
expensive, since _every_ Redux-connected component in the render tree
must rerender when any piece of state in the Redux store is updated.
This commit moves `hoverTime` (and `activeViewID`, and related setters)
out of the Redux store in favor of a context based solution. Now, when
the `hoverTime` updates, only components that actually use that state
will rerender.
* Rename AutoRefresh to AutoRefresher, rename global
* Remove presentational states from TimeSeries component
* Simplify TimeSeries reload logic
* Remove unused props from RefreshingView
* Display loading errors in RefreshingView
* chore(views): extract non-visualization state and switching logic into components
Replaces the utility function used to execute a Flux query with the
version from the 1.7 release of Chronograf, which supports limiting the
response size of a query to a predefined row limit.
Also removes the existing minimal support for template variables in
queries. Our implementation of template variables will need to change
significantly, since the backend API has been rewritten in an
imcompatible manner. Additionally, our support for template variables in
Flux queries has evolved significantly in the 1.7 release of Chronograf,
but none of those changes have been ported to platform yet.
As a consequence, the drilling of a `templates` prop through a certain
path in the render tree has also been removed.
Deletes unused and outdated code, including and AST walker for Flux
queries and various Flux metaquery utilites.
Also moves the remaining modules in `src/flux` to somewhere under
`src/shared`. The `src/flux` directory was a vestige of a time when the
Flux related portions of Chronograf were contained to a single page, but
now these modules are used everywhere.