Commit Graph

1485 Commits (a32ae24264e15a5b2c990e07e882dcf00e695b42)

Author SHA1 Message Date
Alex P 62e0bc50cc Merge branch 'master' into some-amount-of-polish 2017-03-31 09:10:36 -07:00
Andrew Watkins a9e3aa34d8 Fix padding bug 2017-03-30 18:40:52 -07:00
Andrew Watkins 94f6cd171d Fix tests for new approach 2017-03-30 18:40:37 -07:00
lukevmorris 16a7da4ab1 Clean up Kapacitor Alert configuration for HipChat (#1137)
* Text and placeholder updates

* Peel types off PropTypes

* Revert to parseMode

* Update copy to be more descriptive of resulting behavior

* Add question mark tooltips to Chat ID and Token

* Expand tooltips to be hoverable with clickable contents

* Extract QuestionMarkComponent to its own file

* Update CHANGELOG

* url is never changed, so omit this field

* Extract constants to their own file

* Refactor PropTypes

* Clear up Kapacitor Alert HipChat configuration

* Update CHANGELOG

* your-room => room

* Extract this tooltip to its own file

* Reorder CHANGELOG entries
2017-03-30 17:01:25 -07:00
Jared Scheib c60c3f37c8 Fix Kapacitor Telegram config to display correct disableNotification setting (#1142)
* Fix render value for disableNotification

* Update changelog
2017-03-30 16:58:01 -07:00
lukevmorris 0964bc7803 Clean up Kapacitor Alert configuration for Telegram (#1135)
* Text and placeholder updates

* Peel types off PropTypes

* Revert to parseMode

* Update copy to be more descriptive of resulting behavior

* Add question mark tooltips to Chat ID and Token

* Expand tooltips to be hoverable with clickable contents

* Extract QuestionMarkComponent to its own file

* Update CHANGELOG

* url is never changed, so omit this field

* Extract constants to their own file
2017-03-30 16:23:51 -07:00
Andrew Watkins 179478e97a Lint fix all tests 2017-03-30 15:57:33 -07:00
Andrew Watkins 1f9c8ae1ea Remove series highlighting 2017-03-30 15:57:33 -07:00
lukevmorris b77d8466af Active sidebar items should have a blue indicator (#1132)
* NavBlocks without NavListItem children are valid

Some sidebar NavBlocks consist of just a header,
and clicking on that header should mark the NavBlock
as active

* Update CHANGELOG

* Leverage markdown to cut down on merge conflicts
2017-03-30 11:27:51 -07:00
Alex P a36039fc6f Make react grid placeholders appear at actual size
Was a couple pixels off before
2017-03-30 11:01:19 -07:00
Alex P 1585a7217b Make default source indicators darker for contrast 2017-03-30 11:01:00 -07:00
Hunter Trujillo 17390366a0 Merge branch 'master' into feature/1054-alert-history-spinner
# Conflicts:
#	ui/src/alerts/containers/AlertsApp.js
2017-03-30 10:16:58 -06:00
Hunter Trujillo 1ba35df2ab Add simple loading spinner to kapacitor Alert History page. 2017-03-30 10:13:03 -06:00
Andrew Watkins 15c660076e Merge pull request #1109 from influxdata/feature/alert-time
Alert time range
2017-03-30 09:12:23 -07:00
Alex P 30514a3d32 Style custom time range component 2017-03-30 08:14:58 -07:00
Alex P 18a04d6964 Change dropdown scrollbar type to "Round" 2017-03-30 08:14:58 -07:00
Alex P ec6bc815a7 Add 2nd kind of scrollbar mixin
Square corners vs round, good for dropdowns
2017-03-30 08:14:58 -07:00
Andrew Watkins 6783248eb0 Semicolon destruction 2017-03-30 08:14:58 -07:00
Andrew Watkins 71762c8b30 Refactor to js class 2017-03-30 08:14:58 -07:00
Alex P ac7559c4a9 Give time range caret more breathing room 2017-03-30 08:14:02 -07:00
Alex P ed0ab2842d Change "to" to an em dash
Mo’ elegant
2017-03-30 08:14:02 -07:00
Alex P 034e2d611d Resolve conflict 2017-03-30 08:14:02 -07:00
Andrew Watkins adbaec0089 Format time display 2017-03-30 08:14:01 -07:00
Andrew Watkins e3282bc505 Enable date picker for alerts page 2017-03-30 08:14:01 -07:00
Jade McGough 2c925dad98 Change password (#1120)
Add ability to change a user's password via Admin page
2017-03-29 17:40:46 -07:00
Hunter Trujillo e89e30bc35 Fix visualizations not showing graph name (#1125)
* Pass cell name through to Visualization component.

* Rename Header components in Dashboard page to better match their actual component names.

* Update changelog.

* Fix number on update changelog
2017-03-29 17:39:20 -07:00
Andrew Watkins 3cecd6d49b Set default time for alerts page 2017-03-29 16:39:39 -07:00
Alex P ebd5c87b86 Make filter bar buttons same size as create DB button 2017-03-29 16:39:14 -07:00
Alex P 20f83ba1b6 Make custom time range's visibility toggleable 2017-03-29 16:38:17 -07:00
Andrew Watkins b046e13340 Collect selected time ranges 2017-03-29 16:37:02 -07:00
Andrew Watkins 0e966b7b5d WIP Introduce date time picker 2017-03-29 16:37:02 -07:00
Alex P ed968012e4 Fix #1083 2017-03-29 16:35:53 -07:00
Alex P 094b47f808 Clean up dashboards table 2017-03-29 16:35:14 -07:00
Jared Scheib 635ebc5dd2 Refactor some notifications to use consolidated dispatcher in Admin and Dashboards (#1116)
* Separate notification dispatchers from actions, share constants, simplify, clean up

* Replace 'addFlashMessage' with 'notify' pattern throughout Admin and Dashboards, clean up

* Remove semicolons

* Notify success upon AJAX success
2017-03-29 16:06:31 -07:00
Hunter Trujillo bffeebbd35 The line must be drawn here. This far, no further. 2017-03-29 14:03:52 -06:00
Hunter Trujillo c67a151679 Ran eslint fix on current codebase. Only file affected was this. 2017-03-29 13:59:32 -06:00
Jared Scheib fb6a0e14c2 Auto-dismiss notification 2017-03-29 11:23:46 -07:00
Jared Scheib 4a5eb775d5 Use try/catch with async/await 2017-03-29 10:55:16 -07:00
Jared Scheib a72b3d996d Use simpler destructuring shorthand 2017-03-29 10:53:44 -07:00
Jared Scheib 012c0fbbdd Add tests for deleteDashboard and deleteDashboardFailed 2017-03-28 20:03:33 -07:00
Jared Scheib 889c55efa7 Rename action on delete dashboard failed to follow effect style rather than affect 2017-03-28 19:37:35 -07:00
Jared Scheib f905ad36ed Fix DashboardPage to handle null values for and until loaded 2017-03-28 19:03:15 -07:00
Jared Scheib 7439f19053 Refactor DashboardsPage to load dashboards via action creator and to use mapStateToProps so delete is Reactive 2017-03-28 18:30:34 -07:00
Jared Scheib e68e1903c5 DashboardsPage can now delete a dashboard (tho not reflected in UI except on refresh) 2017-03-28 17:51:34 -07:00
Jared Scheib 1142067aa9 Merge remote-tracking branch 'origin/master' into 1107-refactor_delete_row 2017-03-28 16:07:10 -07:00
Jared Scheib 4640676925 Rename component to follow convention 2017-03-28 16:06:37 -07:00
Jared Scheib b4fae7b55b Share ConfirmButtons among pages 2017-03-28 16:02:49 -07:00
Jared Scheib 56861f4d7f Refactor DeleteConfirmButtons as shared component, compose as DeleteConfirmTableCell, clean up 2017-03-28 15:59:22 -07:00
Chris Goller 7a8b482239 Merge branch 'master' into hotfix/windows-hosts 2017-03-28 16:19:26 -05:00
Chris Goller 4fad6de974 Fix host page loading for windows systems 2017-03-28 16:01:11 -05:00
Andrew Watkins bc9dca4b6f Move Header into separate component 2017-03-28 11:44:22 -07:00
lukevmorris 48de1a95d3 Persist and render Dashboard Cell groupby queries (#1092)
* Rename selectStatement to buildInfluxQLQuery

* Moved `influxql/select` to `utils/influxql`

* Replace `buildQuery` with `buildInfluxQLQuery` util function

* Retain GROUP BY clause when saving cell query

* Revert "Replace `buildQuery` with `buildInfluxQLQuery` util function"

This reverts commit d932d99bfa0de54d07be4b42cc13d1b34fbe950b.

* Build DashboardCell queries with buildInfluxQLQuery util

Retain old LayouRenderer.buildQuery functionality for
canned dashboards, and anything else that isn’t using
the queryConfig schema. Rename this function to make
it clear that it is legacy behavior, and that it 
should not be a dependency of any new code.

* Update CHANGELOG
2017-03-28 11:02:49 -07:00
Alex Paxton 6c4ceedcfa Merge pull request #1093 from influxdata/ui-polish
Custom Cursors + Other Polish
2017-03-28 10:55:15 -07:00
Chris Goller b3c954a4f3 WIP to get windows hosts working again 2017-03-28 11:11:12 -05:00
Timothy J. Raymond 67c2b98f68 Redirect to default source when deleting sources (#1074)
* Redirect to default source on invalid source ID

When supplied with an invalid source ID, the CheckSources component
would redirect the user to a "Create Source" page. This caused
surprising behavior when a source was deleted because that source ID
would become invalid. The effect being that deleting a source brought
users immediately to the create source page, rather than back to the
sources list.

This instead redirects users to the default source when provided an
invalid source id. The backend automatically re-assigns the "default"
source, so this will always succeed, since sources are fetched again
from the backend.

The regex used is slightly dependent on URL structure that has been
stable over the lifetime of this project. Also it relies on URL
structure more than the previous redirecting implementation.

* Force sources to reload after deletion

Deleting a source invalidates the state held by the client because of
automatic re-assignment of the default source by the backend. Without
duplicating backend logic, it is impossible for the frontend to discover
the new source without reloading sources.

The ManageSources page now uses an async-action creator which deletes
the requested source and reloads all sources. The source action creators
have also been refactored to use implicit returns like other action
creators.

* Remove Dead removeSource action

removeSource is no longer used because the API invalidates its
assumptions. For more information, see 04bf3ca.

* Update Changelog with source deletion redirect fix

Users are no longer unexpectedly redirected to the "create source" page
whenever they delete a source that they are connected to.

* Return 404 when deleting non-existent source

When deleting a source, a new default is assigned automatically. If a
non-existent source ID was provided, previously this would result in a
500. This is a violation of the Swagger docs. The solution is to examine
the error and if it was an ErrSourceNotFound, invoke the notFound
handler.

* Add Error handling to source deletion

There are two kinds of errors that can be encountered when deleting a
source: a 404 and a 500 (from either the delete or the subsequent
fetch).

The 404 is a precondition failure of the action creator. The source.id
requested can be non-existent for two reasons: 1) The action creator was
passed garbage by the caller. 2) A concurrent write occurred which
silently invalidated this session's state. For the first case, we can
ensure that the caller is sane by having an assertion check that the
requested source is among some set of sources. This could be
circumvented by a caller, but chances are good that both the full set of
sources and the desired source are both available to callers of this
action creator. The second case is not an error. In this case, we should
proceed reloading sources, since the deletion that was requested has
already been performed by someone else.

Finally, 500s can only occur if there is something broken with the API.
In this situation, we provide a notification that tells the user to
check the API logs for more information.

* Remove duplicate CHANGELOG entries

These were introduced due to a naive merge conflict resolution.

* Remove assertion

This was decided to be confusing and unnecessary.

* Remove remnants of removed assertion

These were needed for an assertion that has been removed. It's no longer
necessary to pass `sources` to the action creator.
2017-03-28 08:53:11 -07:00
Alex P 1cbe69e231 Merge branch 'master' into ui-polish 2017-03-27 19:01:10 -07:00
Alex P 1220d5a6b5 Comment out cell dragging css
Going to re-implement later when we have a way to differentiate between
editable and non-editable cells
2017-03-27 18:57:29 -07:00
Alex P 674f3768a1 Make custom cursors slightly smaller and higher contrast 2017-03-27 18:17:48 -07:00
Alex P 454244d91f Polish and small refactor of query builder styles 2017-03-27 17:27:52 -07:00
Alex P f4a820697b Bring the cool edit mode styles out of edit mode
However does need to be scoped to “editable” cells
2017-03-27 17:23:01 -07:00
Hunter Trujillo 211af6b68a No need to coerce a string into another string. 2017-03-27 18:03:06 -06:00
Hunter Trujillo 707c8eefb3 Merge branch 'master' into bugfix/1003-hosts-loading-message
# Conflicts:
#	CHANGELOG.md
2017-03-27 17:42:57 -06:00
Hunter Trujillo 8c77440107 Remove up property from HostsPage component. It does nothing. 2017-03-27 17:31:37 -06:00
Hunter Trujillo 5747f5d561 Fix messaging for hosts page when there are no hosts. Add appropriate error messages. 2017-03-27 17:29:39 -06:00
Jared Scheib 861730fb3f (Fix) Graphs are now resizable again (#1085)
* (Fix) Graphs are now resizable again

* Update changelog
2017-03-27 15:32:40 -07:00
Andrew Watkins 766fb91e38 Fix DBRP page bugs (#1072)
* Fix confirm button not deleting a DB

* Fix cancel delete button

* Fix no name pass on creation of RP
2017-03-27 14:14:42 -07:00
Alex P f2a7ecded4 Merge branch 'master' into ui-polish 2017-03-27 12:24:58 -07:00
Alex P a7187e585b show Invert cursor on graphs 2017-03-27 12:24:50 -07:00
Alex P 1fc76f1d99 Replace standard cursors with custom ones 2017-03-27 12:24:24 -07:00
Alex P 1eced38f82 Add custom cursors and stylesheet 2017-03-27 12:23:58 -07:00
Alex P f7478d78c3 Add 2 new icons to font
Solid style Crown & Server
2017-03-27 12:08:10 -07:00
Jared Scheib 69b6de3e51 Graphs are no longer editable from a Host Page (#1069)
* Graphs can now not be edited in on a HostPage

* Update changelog
2017-03-24 17:33:48 -07:00
lukevmorris f690e4a546 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
Andrew Watkins 0deae63eee Merge pull request #1063 from influxdata/dbm-polish
Fix DB manager table column sizing
2017-03-24 14:04:19 -07:00
Andrew Watkins c0d430712f Fix DB manager table column sizing
The delete RP button was not rendered if
there was only one RP for that RP's database.
This caused the table columns to render in different
sizes.  Hiding the button keep the same functionality but
preserves the sizing for the table.
2017-03-24 13:51:49 -07:00
Luke Morris 2fd9bf220a Merge branch 'master' into 1060-remove_visualizations_bar 2017-03-24 13:32:25 -07:00
Luke Morris 9470bd1a41 Remove VisualizationSelector from Dashboard Edit Mode 2017-03-24 13:29:10 -07:00
Andrew Watkins d6038cced4 Make div a button 2017-03-24 13:26:22 -07:00
lukevmorris 853ec5fa60 NameableGraph Dropdown now contains an active Delete button (#1058)
* Dropdown now contains an active Delete button

* Prefer `filter` over `findIndex` => `slice`
2017-03-24 13:24:11 -07:00
Andrew Watkins aa504b3640 Merge pull request #1029 from influxdata/feature/db-manager
Feature/db manager
2017-03-24 10:57:12 -07:00
Andrew Watkins a6f15dde43 Pass delete retention policy down down down 2017-03-24 10:42:59 -07:00
Andrew Watkins 95b1479d40 Remove ability to update name 2017-03-24 09:49:32 -07:00
lukevmorris 668a1c5fc8 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 b90ff76670 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 af72d9b0e4

* 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
Andrew Watkins cc5327c931 Fix update retention policy 2017-03-23 17:10:13 -07:00
Andrew Watkins d82e84bb9a Fix update sync 2017-03-23 17:09:47 -07:00
Andrew Watkins 9b5e05795e Remove delete for _internal db 2017-03-23 16:21:19 -07:00
Andrew Watkins bf4583129b Remove ability to delete if last RP 2017-03-23 16:12:59 -07:00
Andrew Watkins 2f34553b96 Disable add rp button if currently adding an RP 2017-03-23 16:06:17 -07:00
Andrew Watkins 5e8f18a05e Disable creation of DB when currently creating one 2017-03-23 15:58:28 -07:00
Andrew Watkins e75e2581bc Add database naming styles 2017-03-23 15:36:48 -07:00
Andrew Watkins 7b59cefb0f Remove noops from confirm db buttons 2017-03-23 15:11:03 -07:00
Andrew Watkins 374dcae053 Hook up DBRP manager to backend 2017-03-23 15:06:22 -07:00
Jared Scheib 68a5cc7cff Fix typo 2017-03-23 12:55:08 -07:00
Alex P 6bf9f9828b Make Table rows slightly less condensed 2017-03-23 12:53:43 -07:00
Alex P 81cebdc0dd Prevent host table headers from overlapping sort arrows 2017-03-23 12:45:27 -07:00
Andrew Watkins 5241dbd487 Introduce create dashbaord 2017-03-23 12:24:10 -07:00
Andrew Watkins 26296ef461 Remove replication factor for OSS and simplify rf formatting 2017-03-22 17:15:45 -07:00
Alex P 78bc7d7456 Adjust copy on create rule button to match other create buttons 2017-03-22 15:08:49 -07:00
Alex P a7bff2911a Add create dashboard button to dashboards index 2017-03-22 15:08:26 -07:00
Andrew Watkins 74d87aed6c Update delete code requirements 2017-03-22 12:29:48 -07:00
Andrew Watkins 8f38d52493 Add validation for database name input 2017-03-22 10:00:21 -07:00
Andrew Watkins e2eabbaed6 Add edit rp tests and refactor edit rp action 2017-03-21 17:08:02 -07:00
Andrew Watkins e293acc78d Add remove and add rp tests 2017-03-21 16:54:39 -07:00
Andrew Watkins e80b1634d7 Add remove database code test 2017-03-21 16:27:30 -07:00
Andrew Watkins c86d50ecaf Remove redundant action 2017-03-21 16:11:42 -07:00
Andrew Watkins b8cd78b67d Add database delete code test 2017-03-21 15:56:41 -07:00
Andrew Watkins 3d9584d79d Introduce remove database test 2017-03-21 15:51:14 -07:00
Andrew Watkins b35271a197 Add edit database test 2017-03-21 15:47:51 -07:00
Andrew Watkins df76ebf1fd Introduce add database test 2017-03-21 15:34:13 -07:00
Andrew Watkins 50ae8cc964 Pull out default objects into constants dir 2017-03-21 15:33:30 -07:00
Andrew Watkins 453e91eaff Fix test to use ∞ 2017-03-21 15:32:41 -07:00
Andrew Watkins d208cc474c Use links instead of ids 2017-03-21 14:49:08 -07:00
Andrew Watkins fecd009539 Remove default flag from default rp 2017-03-21 14:35:01 -07:00
Andrew Watkins f36000bbb8 Fix cancel new rps 2017-03-21 14:31:00 -07:00
Andrew Watkins c22367e21f Add ∞ for infinite duration 2017-03-21 14:03:12 -07:00
Andrew Watkins f65630036f Add rp input validation 2017-03-21 14:00:48 -07:00
Andrew Watkins e1517ba976 Change DatabaseRow to stateful to handle editing 2017-03-21 12:55:48 -07:00
Andrew Watkins 3df565f37e Make inputs uncontrolled 2017-03-21 10:56:51 -07:00
Andrew Watkins cef0e15bcd Handle new rp on click outside 2017-03-20 14:56:46 -07:00
Andrew Watkins b33aa32feb Make rp not able to be empty 2017-03-20 14:53:49 -07:00
Andrew Watkins aa33b622a5 Cancel edit rp on click outside 2017-03-20 14:53:26 -07:00
Andrew Watkins 0fa7767cfd Introduce cancel edit retention policy 2017-03-20 14:26:03 -07:00
Andrew Watkins 9748f5049b Handle confirm button creation of RP 2017-03-20 11:53:00 -07:00
Andrew Watkins b096e13825 Add skeleton for retention policy creation 2017-03-17 14:56:06 -07:00
Andrew Watkins cd4307ce74 Introduce remove rp from state 2017-03-17 13:48:57 -07:00
Andrew Watkins 1841decb99 Introduce editing rp state 2017-03-17 11:51:42 -07:00
Andrew Watkins 31092993c9 Remove cruft component 2017-03-15 16:25:18 -07:00
Andrew Watkins 965a05cea2 Introduce add retention policy to state 2017-03-15 16:21:38 -07:00
Andrew Watkins 38b0ef8db4 Introduce delete confirmation for database 2017-03-15 13:57:28 -07:00
Hunter Trujillo 733125b480 Merge pull request #1024 from influxdata/bugfix/tr-broken-host-page
Fix Broken Host Page
2017-03-15 11:53:27 -06:00
Andrew Watkins 8f0d1b9c9b Remove unnecessary handler 2017-03-15 10:00:23 -07:00
Andrew Watkins 5d5331a244 Introduce skeleton for confirming and canceling db creation 2017-03-15 09:52:40 -07:00
Andrew Watkins 8f1752aa3b Merge pull request #1019 from influxdata/admin-polish
Admin Polish
2017-03-15 08:38:05 -07:00
Tim Raymond efa3b029db Make NameableGraph optionally editable
This allows the renameability of NameableGraph to be controlled by the
presence of any one of the editing handler functions. Since we don't
pass any of these when rendering a HostPage, those graphs will have
static names, and will prevent the user from editing the names of those
graphs to no avail. Also, because the handlers were marked required, it
caused the HostPage to entirely break, which is fixed by this commit.
2017-03-15 11:11:14 -04:00
Tim Raymond 4b7592ab27 Make coords numbers in NameableGraph PropTypes
Cell coordinates were previously strings, which disagreed with how they
were being delivered from components which used NameableGraph. This
caused errors in the console.
2017-03-15 11:08:56 -04:00
Andrew Watkins 55a07a2f3f Introduce add and edit database to state 2017-03-14 17:56:30 -07:00
Andrew Watkins a3c0b2ad46 Move local components to independent files 2017-03-14 15:45:39 -07:00
Andrew Watkins bfb002d43d Introduce addDatabase to store 2017-03-14 15:45:04 -07:00
Andrew Watkins 1454aa8d67 Move dbs and rps to redux store 2017-03-14 13:54:54 -07:00
Alex P 826ed98e7a Make Multiselect dropdown open state persist in admin tables 2017-03-14 12:06:11 -07:00
Alex P 2e26b874e8 Fix error in console for using <li> outside of <ul> 2017-03-14 12:05:43 -07:00
Alex P 7fc60b9f90 Capitalize item name in filter bar
Mo’ proppa
2017-03-14 12:05:17 -07:00
Andrew Watkins e563c22f57 Display db and rp info 2017-03-14 11:51:25 -07:00
Hunter Trujillo f6466bc61e Add singular dashboard assertions to dashboard ui spec. 2017-03-14 11:16:07 -06:00
Hunter Trujillo 8c072cd240 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 bcac76f399 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
Tim Raymond 9eeffb7b18 Use implicit returns for dashboard action creators
Implicit returns are more concise here, and considered more idiomatic.
Also, async action creators have been collected together and moved
towards the end of the file for ease of navigation.
2017-03-14 11:01:27 -04:00
Tim Raymond 7052f7b152 Fix I/O Burn when editing cell name
Previously, editing a cell name caused a PUT to the API for every
character typed by the user when renaming a cell. This was obviously not
ideal, but kept the initial implementation simple.

This limits PUTs to update cells to only when blur events happen on the
<input>. This is accomplished by maintaining the state of the input
field within the component and using a separate handler for the onBlur
to actually PUT the dashboard using a handler provided by the caller.
2017-03-14 11:01:27 -04:00
Tim Raymond ba200b5b4f Fix Cell Rename to '' on layout change
`l.name` was being copied from the cells provided by React Grid Layout,
which have no concept of name, which is why this was undefined. This
caused cells to be renamed '' whenever the layout changed or the page
was reloaded.
2017-03-14 11:01:27 -04:00
Tim Raymond 9283fc07a9 Alter cell renaming to use Redux for PUT
Cell renaming was previously done without using any of the existing
Redux logic. This goes against the ethos of the rest of the code used
for dashboards. This commit is an initial attempt to bring NameableGraph
into compliance with that.
2017-03-14 11:01:27 -04:00
Tim Raymond c320c9bcab Implement Cell Renaming on Dashboards
This is an initial implementation of cell renaming on dashboards. It
maintains its state locally to the component and reuses the
onPositionChange handler provided by the DashboardPage container
component to persist changes to the cells.

Redux wasn't used in this implementation because it was something we
wanted to refactor into, which will happen in subsequent commits.

There is a known bug in this implementation where cell names are
overwritten with an empty string when the dashboard initially loads and
when the cell layout changes.
2017-03-14 11:01:27 -04:00
Andrew Watkins 42a3fa0f7c WIP introduce database manager 2017-03-13 18:59:37 -07:00
Andrew Watkins 1c1d84a5cf Merge pull request #1012 from influxdata/feature/ent-validation
bugfix/ent validation
2017-03-13 16:49:34 -07:00
Andrew Watkins 07b7a5ef3c Handle creation error 2017-03-13 16:39:06 -07:00
Alex P 5f1dd3e12c Merge branch 'master' into alert-message-polish 2017-03-13 16:10:04 -07:00
Alex P b43e6702bc Move admin page styles to 1 page, join admin tabs to adjacent panel 2017-03-13 16:06:29 -07:00
Alex P c95df7fcff Make tables borderless 2017-03-13 15:50:38 -07:00
Alex P aa0ae58761 Make admin pages more space efficient 2017-03-13 15:50:24 -07:00
Andrew Watkins 3178f22366 Change replace create with update 2017-03-13 15:19:55 -07:00
Andrew Watkins 2eae1a033d Only display meta url input if enterprise
This also fixes bug #1009.
2017-03-13 15:15:43 -07:00
Andrew Watkins a1f042a411 WIP only display metaURL if enterprise server 2017-03-13 14:42:05 -07:00
Andrew Watkins 31d7eaecf6 Change ADMIN order on side nav 2017-03-13 13:28:47 -07:00
Andrew Watkins c3a6ca49a6 Change input type to password 2017-03-13 13:28:26 -07:00
Alex P 415255ed2e Rearranged rule message UI
Dropdown is at the top, so less likely to push down the page
2017-03-13 11:36:34 -07:00
Jared Scheib 26716ad280 Merge branch 'master' into feature/admin
Conflicts:
	CHANGELOG.md
	enterprise/users.go
	server/admin.go
	server/admin_test.go
	ui/.eslintrc
	ui/src/shared/constants/index.js
	ui/src/store/configureStore.js
	ui/src/style/theme/theme-dark.scss
2017-03-10 18:36:37 -08:00
Jared Scheib 3380d11c8b Return errors from AJAX 2017-03-10 17:37:45 -08:00
Jared Scheib a82db6be2b Add tests for role create and update, refactor user create test 2017-03-10 16:48:56 -08:00
Jared Scheib 410d0beb56 Fix update dropdown when adding users, roles, and permissions (except users/roles), rename success actions for use across AJAX update requests, pass through error on AJAX update failure 2017-03-10 16:22:03 -08:00
Jared Scheib 5f851863a3 Move admin constant to admin constants 2017-03-10 14:47:45 -08:00
Andrew Watkins eab3e55b9a Remove warnings 2017-03-10 14:25:09 -08:00
Andrew Watkins c089da310c Introduce update user 2017-03-10 14:24:15 -08:00
Andrew Watkins 8ed77eae3b Introduce update permissions for users 2017-03-10 13:30:17 -08:00
Andrew Watkins 6216bba5ab Remove plural 2017-03-10 13:01:22 -08:00
Andrew Watkins acc2444883 Fix tests 2017-03-10 12:52:18 -08:00
Andrew Watkins 0e0f89b995 Editing rows cleanup 2017-03-10 12:47:53 -08:00
Jared Scheib c2ed3b306c Add ability to add a role 2017-03-10 12:00:45 -08:00
Andrew Watkins 931bd634ea Merge pull request #990 from influxdata/feature/add-perms-to-users
Feature/ populate user perms from server
2017-03-10 11:36:42 -08:00
Alex P 2588a67968 Style new rows in admin tables
New users looking fly
2017-03-10 11:22:39 -08:00
Alex P 4e34a3f6ec Remove commented out styles 2017-03-10 11:22:11 -08:00
Andrew Watkins ef1056b1eb Remove redundant nav item 2017-03-10 10:08:44 -08:00
Andrew Watkins e4f7dc98e5 Reintroduce hasRoles boolean 2017-03-10 10:08:26 -08:00
Andrew Watkins f878d8f14c Make roles not appear on OSS 2017-03-10 09:44:16 -08:00
Andrew Watkins fa91d66669 Populate user permissions from server 2017-03-10 09:28:09 -08:00
Andrew Watkins 0e0127c042 Add LOAD_PERMISSIONS reducer logic 2017-03-10 08:40:35 -08:00
Andrew Watkins 868156313f Add getPermissions AJAX 2017-03-10 08:40:12 -08:00
Andrew Watkins e45da1dc25 Remove old linter overrides 2017-03-10 08:39:40 -08:00
Andrew Watkins 910f50a1fe Introduce loadPermissionsAsync action creator 2017-03-10 08:36:33 -08:00
Andrew Watkins cca6e0450c Add permissions to redux store 2017-03-10 08:35:51 -08:00
Andrew Watkins 96c6a770d2 Populate role multiselect 2017-03-10 08:10:45 -08:00
Jared Scheib 93cdcd4485 Fix roles bug when no users 2017-03-09 17:15:39 -08:00
Andrew Watkins ee7cf96ddb Remove dup import 2017-03-09 14:52:01 -08:00
Andrew Watkins 83b33b2f40 Add TODO 2017-03-09 14:44:55 -08:00
Andrew Watkins 33baa2fffc Change order of arguments 2017-03-09 14:44:00 -08:00
Andrew Watkins 13aa2b2580 Add better name to actions 2017-03-09 14:44:00 -08:00
Andrew Watkins b2f8e4abe8 Implement update role permissions 2017-03-09 14:43:17 -08:00
Andrew Watkins 7ce3a6babc Update linter to allow console.error 2017-03-09 14:43:17 -08:00
Andrew Watkins 20c68fae84 Implement add users to roles 2017-03-09 14:43:16 -08:00
Andrew Watkins e7c4b297c0 Show display all users in MultiSelect 2017-03-09 14:41:14 -08:00
Andrew Watkins bf7ce84372 Merge pull request #975 from influxdata/feature/934-ew-admin_add-user
Add ability to add a new user
2017-03-09 14:17:55 -08:00