Commit Graph

418 Commits (da0f5d5ea6597ba4549d778858189508a8b21292)

Author SHA1 Message Date
Christopher Henn df636fb84d Move hoverTime and related state out of Redux
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.
2018-11-09 16:57:48 -08:00
Christopher Henn 886aa130ea Load/persist draft script when opening/closing VEO 2018-11-09 10:27:41 -08:00
Christopher Henn 62d1b1d2c2 Add basic Flux editor to TimeMachine 2018-11-09 10:27:41 -08:00
Andrew Watkins 06f468bdcb
chore(refreshing-view): tweaks
* 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
2018-11-08 14:24:23 -08:00
Christopher Henn 95f6984ef2 Eliminate race condition in TimeSeries component 2018-11-08 10:44:54 -08:00
Christopher Henn cc1070fc1c Differentiate between new and persisted view types 2018-11-07 17:42:35 -08:00
Christopher Henn 5475fcdf1b Enable saving a new cell to a dashboard 2018-11-07 15:05:42 -08:00
Christopher Henn b2330ba513 Fix DataExplorer styles 2018-11-07 15:05:42 -08:00
Christopher Henn 09ef4354ed Fix TSLint/Prettier errors
Ran the `tslint:fix` Yarn script.
2018-11-07 13:33:02 -08:00
Christopher Henn 8cd3ff3c40 Run TSLint in CI 2018-11-07 13:33:02 -08:00
Christopher Henn 9b529771eb Rename InfluxLanguages to InfluxLanguage
To stay consistent with TypeScript enum conventions.
2018-11-06 16:36:02 -08:00
Christopher Henn 5230d267f1 Replace query query util and remove template props
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.
2018-11-06 16:36:02 -08:00
Christopher Henn 7991dcfd55 Delete unused code and reorganize modules
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.
2018-11-06 16:36:02 -08:00
Brandon Farmer 5eaf281489 Fix api calls for tasks, tasks are now nested in response 2018-10-31 13:32:04 -07:00
Deniz Kusefoglu 175ba056ae Onboarding wizard polish
Add password confirmation field
Cursor defaults to username field
Enter submits wizard steps
2018-10-29 12:05:18 -07:00
Michael Desa b9f70b7bec chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
Mark Rushakoff 264a420f07 chore: move stray chronograf files to correct directory 2018-08-06 09:37:00 -07:00
Andrew Watkins 1042c22469 Bugfix/no org name (#4014)
Fix runtime error when no orgs
2018-07-26 11:21:42 -04:00