Commit Graph

30 Commits (b86164e71071843cfe260c303d821879c7b0881f)

Author SHA1 Message Date
Hunter Trujillo 9535be8f8a Remove test console.log. 2017-08-18 15:35:25 -06:00
Hunter Trujillo 8b843fa439 Add template variable name selection test and reducer. Fire action on dashboard load. 2017-08-18 15:32:12 -06:00
Tim Raymond 63cddc96e4 Merge branch 'master' into feature/1602-graph-bounds-setting
Also removed LegacyBounds marshaling since it was no longer necessary

Conflicts resolved:
	bolt/internal/internal.go
	bolt/internal/internal.pb.go
	bolt/internal/internal.proto
	bolt/internal/internal_test.go
	chronograf.go
	server/cells_test.go
	server/dashboards_test.go
	server/swagger.json
2017-08-02 11:29:29 -04:00
Andrew Watkins 421ade1627 Save range with entire cell 2017-07-24 10:52:58 -07:00
Andrew Watkins 059f858b9c Hook up ranges to CEO 2017-07-24 10:52:58 -07:00
Andrew Watkins a2159edba5 Add reducer for cell range 2017-07-24 10:52:58 -07:00
Andrew Watkins 5c1e26adb0 Add cancel edit cell spec 2017-07-18 12:22:20 -07:00
lukevmorris e4a0d7f320 Feature/varmoji dash (#1397)
* Support dashes in tempVars with two regex passes

* Rename CustomTimeRange component to CustomTimeRangeDropdown for discovery and consistency

* Update tests for template varmojis

* Give names to each step of regex multipass
2017-05-05 15:04:13 -07:00
Luke Morris 0bc4716e56 Repair updateDashboardCellSpec: expected dashboard now includes templates 2017-04-28 12:47:18 -07:00
Luke Morris 38ed678c22 Dashboards no longer edit individual templates 2017-04-28 12:42:49 -07:00
Andrew Watkins 500dc8d226 Update tests for new varmoji pattern 2017-04-26 13:52:10 -07:00
Andrew Watkins 8c67b8af49 Add spec for tempVar regex 2017-04-24 18:09:41 -07:00
Hunter Trujillo 6543d69726 PUT to Template Variable API works. 2017-04-24 13:49:50 -06:00
Hunter Trujillo 14d4a1327e Fix TVM UX flow issue with a React lifecycle antipattern; make TVM editing mode consistent 2017-04-21 19:52:01 -06:00
Jared Scheib 0242bc7239 Add test for selectTemplate, update spec fixtures 2017-04-20 18:11:55 -07:00
Andrew Watkins ffc8d8de1e Add editTemplate test and action / update tests 2017-04-19 14:46:26 -07:00
Andrew Watkins 2f636a9fc2 Fix ghost dashboards (#1186)
* Fix ghost dashboards

* Remove dashboard key from reducer

* Remove dashboard key from state

* Update CHANGELOG
2017-04-05 15:19:36 -07:00
Andrew Watkins d9f8208dc3 Lint fix all tests 2017-03-30 15:57:33 -07:00
Jared Scheib ed564e4ed3 Add tests for deleteDashboard and deleteDashboardFailed 2017-03-28 20:03:33 -07:00
lukevmorris c1ba6e7983 Save and Cancel edits to dashboard name (#1065)
* Move isEditMode from Redux to component state

* Use ConfirmButtons instead of Save button

* Save and Cancel dashboard name edits with ConfirmButtons

* Handler should operate on values instead of events

* Update CHANGELOG
2017-03-24 16:56:46 -07:00
lukevmorris 2d8d546368 Create a new dashboard cell; Fix remaining bugs with Overlay (#1056)
* Relax query validation for cell endpoint

* Dashboards can now add a cell; Rebase over 950-overlay_technologies-edit

* Server now returns empty queries array when creating a new dashboard cell

* Use async/await pattern for addDashboardCell, add basic error handling

* Update names of methods and actions for editing and updating cells to match those for adding

Factor out newDefaultCell to dashboard constants

* Update CHANGELOG

* Fix bug where Overlay wouldn’t display for query-less cells

* We removed these validations
2017-03-23 17:50:21 -07:00
Jared Scheib 959b387f61 Introduce ability to edit a dashboard cell
* Correct documentation for dashboards

* Exclude .git and use 'make run-dev' in 'make continuous'

* Fix dashboard deletion bug where id serialization was wrong

* Commence creation of overlay technology, add autoRefresh props to DashboardPage

* Enhance overlay magnitude of overlay technology

* Add confirm buttons to overlay technology

* Refactor ResizeContainer to accommodate arbitrary containers

* Refactor ResizeContainer to require explicit ResizeTop and ResizeBottom for clarity

* Add markup and styles for OverlayControls

* CellEditorOverlay needs a larger minimum bottom height to accommodate more things

* Revert Visualization to not use ResizeTop or flex-box

* Remove TODO and move to issue

* Refactor CellEditorOverlay to allow selection of graph type

* Style Overlay controls, move confirm buttons to own stylesheet

* Fix toggle buttons in overlay so active is actually active

* Block user-select on a few UI items

* Update cell query shape to support Visualization and LayoutRenderer

* Code cleanup

* Repair fixture schema; update props for affected components

* Wired up selectedGraphType and activeQueryID in CellEditorOverlay

* Wire up chooseMeasurements in QueryBuilder

Pass queryActions into QueryBuilder so that DataExplorer can provide
actionCreators and CellEditorOverlay can provide functions that
modify its component state

* semicolon cleanup

* Bind all queryModifier actions to component state with a stateReducer

* Overlay Technologies™ can add and delete a query from a cell

* Semicolon cleanup

* Add conversion of InfluxQL to QueryConfig for dashboards

* Update go deps to add influxdb at af72d9b0e4ebe95be30e89b160f43eabaf0529ed

* Updated docs for dashboard query config

* Update CHANGELOG to mention InfluxQL to QueryConfig

* Make reducer’s name more specific for clarity

* Remove 'table' as graphType

* Make graph renaming prettier

* Remove duplicate DashboardQuery in swagger.json

* Fix swagger to include name and links for Cell

* Refactor CellEditorOverlay to enable graph type selection

* Add link.self to all Dashboard cells; add bolt migrations

* Make dash graph names only hover on contents

* Consolidate timeRange format patterns, clean up

* Add cell endpoints to dashboards

* Include Line + Stat in Visualization Type list

* Add cell link to dashboards

* Enable step plot and stacked graph in Visualization

* Overlay Technologies are summonable and dismissable

* OverlayTechnologies saves changes to a cell

* Convert NameableGraph to createClass for state

This was converted from a pure function to encapsulate the state of the
buttons. An attempt was made previously to store this state in Redux,
but it proved too convoluted with the current state of the reducers for
cells and dashboards. Another effort must take place to separate a cell
reducer to manage the state of an individual cell in Redux in order for
this state to be sanely kept in Redux as well.

For the time being, this state is being kept in the component for the
sake of expeditiousness, since this is needed for Dashboards to be
released. A refactor of this will occur later.

* Cells should contain a links key in server response

* Clean up console logs

* Use live data instead of a cellQuery fixture

* Update docs for dashboard creation

* DB and RP are already present in the Command field

* Fix LayoutRenderer’s understanding of query schema

* Return a new object, rather that mutate in place

* Visualization doesn’t use activeQueryID

* Selected is an object, not a string

* QueryBuilder refactored to use query index instead of query id

* CellEditorOverlay refactored to use query index instead of query id

* ConfirmButtons doesn’t need to act on an item

* Rename functions to follow convention

* Queries are no longer guaranteed to have ids

* Omit WHERE and GROUP BY clauses when saving query

* Select new query on add in OverlayTechnologies

* Add click outside to dash graph menu, style menu also

* Change context menu from ... to a caret

More consistent with the rest of the UI, better affordance

* Hide graph context menu in presentation mode

Don’t want people editing a dashboard from presentation mode

* Move graph refreshing spinner so it does not overlap with context menu

* Wire up Cell Menu to Overlay Technologies

* Correct empty dashboard type

* Refactor dashboard spec fixtures

* Test syncDashboardCell reducer

* Remove Delete button from graph dropdown menu (for now)

* Update changelog
2017-03-23 17:12:33 -07:00
Hunter Trujillo 50093d18ff Add singular dashboard assertions to dashboard ui spec. 2017-03-14 11:16:07 -06:00
Hunter Trujillo 86512bda08 Can rename cell by pressing enter key. Clean up in reducers and actions. Added updateDashboardCells reducer, tested. 2017-03-14 11:01:27 -04:00
Tim Raymond aaf49d1d81 Implement NameableGraph as a stateless component
NameableGraph is now a stateless component, with all its ephemeral state
held within Redux. This improves its testability, and two tests have
been added for the two needed Reducer cases.

Also, since NameableGraph's behavior is entirely controlled by its
props, the component itself can be tested, though this has not yet been
done.
2017-03-14 11:01:27 -04:00
Andrew Watkins 57be2b90b9 Move editMode state into redux 2017-02-22 11:05:20 -06:00
Andrew Watkins f8f1507379 Use redux for dashboard time range 2017-02-22 11:05:20 -06:00
Andrew Watkins eee44a2d42 Add dashboard timeRange to reducer 2017-02-22 11:05:20 -06:00
Andrew Watkins de644286cb Move current dashboard into dashboard reducer 2017-02-22 11:05:20 -06:00
Andrew Watkins efeffd4fa2 Introduce dashboard ui reducer 2017-02-22 11:05:20 -06:00