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.