Commit Graph

1506 Commits (d50374c7e97ab2f7127ef6629cd5566c1855c08a)

Author SHA1 Message Date
Andrew Watkins d3643f88a4 Change empty how we handle empty state 2017-04-03 13:10:05 -07:00
Andrew Watkins 9d4a047ca9 Handle empty rawText case 2017-04-03 13:10:05 -07:00
Andrew Watkins 73f6f286cc Fix spacing on input with no status 2017-04-03 13:10:05 -07:00
Andrew Watkins 1c730a25ef Handle empty results 2017-04-03 13:10:05 -07:00
Andrew Watkins 1aa7b4770a Start query editor with placeholder text 2017-04-03 13:10:05 -07:00
Alex P 20ca434e97 Clean up styles 2017-04-03 13:10:05 -07:00
Alex P dba23a8ff1 Remove vestiges of "active" graphs in DE styles 2017-04-03 13:10:05 -07:00
Alex P e8698d376c Make DE table empty state more readable 2017-04-03 13:08:41 -07:00
Alex P dbc3c411e0 Style raw text status bar
is responsive
2017-04-03 13:08:41 -07:00
Alex P 88df7e99bc Change editor queries to be blue 2017-04-03 13:08:41 -07:00
Alex P bd2b630ffd Disable text selection in query editor empty states 2017-04-03 13:08:41 -07:00
Alex P 822f8b3b44 Make builder queries vertically centered (again) 2017-04-03 13:08:41 -07:00
Alex P 4de5c55b63 Make query tab delete buttons scale with everything else
They looked mad tiny on big screens
2017-04-03 13:08:41 -07:00
Alex P 1ba8b99014 Make visualization toggle capitalized 2017-04-03 13:08:40 -07:00
Alex P adb2de0504 Make query builder query tabs allow for more text before truncating 2017-04-03 13:08:40 -07:00
Andrew Watkins 170b15a3f0 Update table CSS 2017-04-03 13:08:40 -07:00
Andrew Watkins 3a4c955474 Remove MultiTable 2017-04-03 13:08:40 -07:00
Andrew Watkins afde7fcf69 Change tabs in the table when builder changes tabs 2017-04-03 13:08:40 -07:00
Andrew Watkins 3183544f6b Update some primatives to use constants 2017-04-03 13:08:40 -07:00
Andrew Watkins 53f9b806ac Not change view state if query is the same 2017-04-03 13:08:40 -07:00
Andrew Watkins 9ba0f87151 Show table when query editor is selected 2017-04-03 13:08:40 -07:00
Andrew Watkins 8f3d036951 Add warn status type to rawStatus 2017-04-03 13:08:40 -07:00
Andrew Watkins 5eae6463ca Add warn status type to rawStatus 2017-04-03 13:08:00 -07:00
Andrew Watkins b942b15aaf Pull list items onto variable 2017-04-03 13:08:00 -07:00
Andrew Watkins 7670558202 Improve builder semantics 2017-04-03 13:08:00 -07:00
Andrew Watkins 0fd98ee1d1 Fix linter errors 2017-04-03 13:08:00 -07:00
Andrew Watkins fc4a5c57a9 Display errors in admin console 2017-04-03 13:08:00 -07:00
Andrew Watkins bef987023a Introduce editRawQueryStatus action 2017-04-03 13:08:00 -07:00
Andrew Watkins 78615099e9 Bubble AJAX errors up to fetchTimeSeries 2017-04-03 13:06:06 -07:00
Andrew Watkins 359ff48077 Allow user to type :) 2017-04-03 13:06:06 -07:00
Andrew Watkins 0d26936a14 Include missing prop 2017-04-03 13:06:06 -07:00
Andrew Watkins 3beaa3c7a0 Fix spacing 2017-04-03 13:06:06 -07:00
Andrew Watkins cb7ec4fa6e Keep focus on enter while preventing new line 2017-04-03 13:06:06 -07:00
Andrew Watkins ee24c0d2b1 Remove console option 2017-04-03 13:06:06 -07:00
Andrew Watkins 2c4676a26b Add vis header and console tab 2017-04-03 13:06:06 -07:00
Andrew Watkins 248dcb757a Create vis header 2017-04-03 13:06:05 -07:00
Hunter Trujillo 2d5a5e0445 Fix kapacitor form submit bug. 2017-04-03 10:49:41 -06:00
Hunter Trujillo f4af30c26b Small refactor for ES6ness. 2017-04-03 10:49:25 -06:00
Jade McGough d2e9cd7821 Merge pull request #1152 from influxdata/column-widening
widen single column to entire table width (#1123)
2017-04-01 11:38:10 -07:00
Jade McGough 95cabba40f make linter happy 2017-03-31 18:56:32 -07:00
Andrew Watkins cd68c6cae8 Merge pull request #1124 from influxdata/some-amount-of-polish
Some Amount of Polish
2017-03-31 16:56:45 -07:00
Andrew Watkins 007219f901 Merge pull request #1151 from influxdata/bugfix/threshold-value
Bugfix/threshold value
2017-03-31 16:48:57 -07:00
Alex Paxton d59487b00c Merge branch 'master' into some-amount-of-polish 2017-03-31 16:22:42 -07:00
Alex P beddd2f82d Polish dash cell dragging interaction 2017-03-31 15:59:10 -07:00
Alex P 29d681e851 Change DE page title to match corresponding navbar label 2017-03-31 15:39:27 -07:00
Jade McGough e27317cdd1 widen single column to entire table width (#1123) 2017-03-31 15:32:05 -07:00
Alex P ab7fbe754f Make dash renaming more clear 2017-03-31 15:27:16 -07:00
Alex P 13d528a9ed Make Add Cell button in dash more obvious for new users 2017-03-31 15:27:06 -07:00
Alex P 82f571b645 Use graphTips component in dash header & DE header 2017-03-31 15:26:45 -07:00
Alex P 8c7e787f84 Give icons in buttons some more generous spacing 2017-03-31 15:25:23 -07:00
Alex P 1de362e04a Change style of Source Indicator such that it does not look like a button 2017-03-31 15:25:08 -07:00
Alex P 0b76c8685e Create GraphTips component 2017-03-31 15:24:37 -07:00
Alex P f9f5980c82 Fix #1106 2017-03-31 14:46:39 -07:00
Jade McGough 4cbe22d816 cleanup function 2017-03-31 14:45:53 -07:00
Alex P 8c7549fdc4 Move graph refreshing spinner to top-center of graph
Looks nice in all contexts, does not overlap with anything
2017-03-31 14:41:37 -07:00
Alex P a07c86bfaa Make dashboards table conform to reveal-on-hover pattern 2017-03-31 14:28:30 -07:00
Alex P 82b817c762 Make admin queries table conform to reveal-on-hover pattern 2017-03-31 14:24:27 -07:00
Alex P 04bf17c02e Polish DB Management page 2017-03-31 14:03:39 -07:00
Alex P 500d144634 Make input placeholders more legible 2017-03-31 12:42:50 -07:00
Andrew Watkins e4369549eb Refactor tests 2017-03-31 12:22:03 -07:00
Alex P 9e6fb2f207 Style password change interaction 2017-03-31 12:16:07 -07:00
Alex P b1ca55e316 Prevent admin panel from appearing shorter than the admin tabs 2017-03-31 12:15:50 -07:00
Alex P e71756725c Use odd number for question mark icon size
Looks more centered
2017-03-31 11:46:24 -07:00
Jade McGough 6e4a139aeb remove comment 2017-03-31 11:35:28 -07:00
Jade McGough ce08d884d4 exit presentation mode when path changes 2017-03-31 11:31:08 -07:00
Andrew Watkins 6e2672d520 Add tests 2017-03-31 10:57:00 -07:00
Alex P ec8a8af878 Style question mark tooltips 2017-03-31 09:49:56 -07:00
Alex P 833f9442fc Add line breaks in kap tooltip copy for legibility
Also reduced width of Tooltip
2017-03-31 09:49:47 -07:00
Alex P f9a12f7223 Fix rogue mouse cursor on form labels 2017-03-31 09:49:19 -07:00
Alex P a4d3056402 Merge branch 'master' into some-amount-of-polish 2017-03-31 09:10:36 -07:00
Andrew Watkins 90e2874287 Fix padding bug 2017-03-30 18:40:52 -07:00
Andrew Watkins 1ac908888e Fix tests for new approach 2017-03-30 18:40:37 -07:00
lukevmorris f1937c75dc 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 ae00aa16a0 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 184235db27 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 d9f8208dc3 Lint fix all tests 2017-03-30 15:57:33 -07:00
Andrew Watkins c0f9964a29 Remove series highlighting 2017-03-30 15:57:33 -07:00
lukevmorris 7bb955baa3 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 2461ea76c9 Make react grid placeholders appear at actual size
Was a couple pixels off before
2017-03-30 11:01:19 -07:00
Alex P bf655e7aeb Make default source indicators darker for contrast 2017-03-30 11:01:00 -07:00
Hunter Trujillo 2e52adfc61 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 5847c50dfc Add simple loading spinner to kapacitor Alert History page. 2017-03-30 10:13:03 -06:00
Andrew Watkins 84d1fc6d47 Merge pull request #1109 from influxdata/feature/alert-time
Alert time range
2017-03-30 09:12:23 -07:00
Alex P b2d5410e8c Style custom time range component 2017-03-30 08:14:58 -07:00
Alex P bf71511d0e Change dropdown scrollbar type to "Round" 2017-03-30 08:14:58 -07:00
Alex P 3791de473c Add 2nd kind of scrollbar mixin
Square corners vs round, good for dropdowns
2017-03-30 08:14:58 -07:00
Andrew Watkins 60f0a5c4e4 Semicolon destruction 2017-03-30 08:14:58 -07:00
Andrew Watkins 5aa585b69c Refactor to js class 2017-03-30 08:14:58 -07:00
Alex P d1f8365d9b Give time range caret more breathing room 2017-03-30 08:14:02 -07:00
Alex P dd5b14c71e Change "to" to an em dash
Mo’ elegant
2017-03-30 08:14:02 -07:00
Alex P 52d35e2c43 Resolve conflict 2017-03-30 08:14:02 -07:00
Andrew Watkins 96d69ce1c0 Format time display 2017-03-30 08:14:01 -07:00
Andrew Watkins 55c52c9baf Enable date picker for alerts page 2017-03-30 08:14:01 -07:00
Jade McGough 7389167e76 Change password (#1120)
Add ability to change a user's password via Admin page
2017-03-29 17:40:46 -07:00
Hunter Trujillo f7c5e0f2e2 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 172c8369ad Set default time for alerts page 2017-03-29 16:39:39 -07:00
Alex P 24d7593af5 Make filter bar buttons same size as create DB button 2017-03-29 16:39:14 -07:00
Alex P feb89dda2d Make custom time range's visibility toggleable 2017-03-29 16:38:17 -07:00
Andrew Watkins bd4bd64bd5 Collect selected time ranges 2017-03-29 16:37:02 -07:00
Andrew Watkins 03b8c659ce WIP Introduce date time picker 2017-03-29 16:37:02 -07:00
Alex P 34316a5f45 Fix #1083 2017-03-29 16:35:53 -07:00
Alex P a468668f35 Clean up dashboards table 2017-03-29 16:35:14 -07:00
Jared Scheib 2510388651 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 cd8df84db8 The line must be drawn here. This far, no further. 2017-03-29 14:03:52 -06:00
Hunter Trujillo fbd0ee84e3 Ran eslint fix on current codebase. Only file affected was this. 2017-03-29 13:59:32 -06:00
Jared Scheib 36cc368bf1 Auto-dismiss notification 2017-03-29 11:23:46 -07:00
Jared Scheib cb5f6fbdc8 Use try/catch with async/await 2017-03-29 10:55:16 -07:00
Jared Scheib 627d65e39f Use simpler destructuring shorthand 2017-03-29 10:53:44 -07:00
Jared Scheib ed564e4ed3 Add tests for deleteDashboard and deleteDashboardFailed 2017-03-28 20:03:33 -07:00
Jared Scheib e8b119f405 Rename action on delete dashboard failed to follow effect style rather than affect 2017-03-28 19:37:35 -07:00
Jared Scheib 6a39277a40 Fix DashboardPage to handle null values for and until loaded 2017-03-28 19:03:15 -07:00
Jared Scheib b9b28da860 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 c2c805a596 DashboardsPage can now delete a dashboard (tho not reflected in UI except on refresh) 2017-03-28 17:51:34 -07:00
Jared Scheib 5b7d6bd0ae Merge remote-tracking branch 'origin/master' into 1107-refactor_delete_row 2017-03-28 16:07:10 -07:00
Jared Scheib 840f8aa472 Rename component to follow convention 2017-03-28 16:06:37 -07:00
Jared Scheib 06117edae3 Share ConfirmButtons among pages 2017-03-28 16:02:49 -07:00
Jared Scheib 1fb2b283da Refactor DeleteConfirmButtons as shared component, compose as DeleteConfirmTableCell, clean up 2017-03-28 15:59:22 -07:00
Chris Goller b39d5ee4e7 Merge branch 'master' into hotfix/windows-hosts 2017-03-28 16:19:26 -05:00
Chris Goller c2a302c43a Fix host page loading for windows systems 2017-03-28 16:01:11 -05:00
Andrew Watkins 7ee3130bba Move Header into separate component 2017-03-28 11:44:22 -07:00
lukevmorris 1f279584f3 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 d932d99bfa.

* 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 ec3ebb855a Merge pull request #1093 from influxdata/ui-polish
Custom Cursors + Other Polish
2017-03-28 10:55:15 -07:00
Chris Goller e6322616fa WIP to get windows hosts working again 2017-03-28 11:11:12 -05:00
Timothy J. Raymond 54dd3e5eee 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 3d2563b693 Merge branch 'master' into ui-polish 2017-03-27 19:01:10 -07:00
Alex P b467d53358 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 078e72fd78 Make custom cursors slightly smaller and higher contrast 2017-03-27 18:17:48 -07:00
Alex P b1d13d29ff Polish and small refactor of query builder styles 2017-03-27 17:27:52 -07:00
Alex P 65860b3512 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 4312297896 No need to coerce a string into another string. 2017-03-27 18:03:06 -06:00
Hunter Trujillo 84fba8a5a0 Merge branch 'master' into bugfix/1003-hosts-loading-message
# Conflicts:
#	CHANGELOG.md
2017-03-27 17:42:57 -06:00
Hunter Trujillo e810a173ff Remove up property from HostsPage component. It does nothing. 2017-03-27 17:31:37 -06:00
Hunter Trujillo f51c0c5b54 Fix messaging for hosts page when there are no hosts. Add appropriate error messages. 2017-03-27 17:29:39 -06:00
Jared Scheib 660d764b7e (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 9fd25569a5 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 81aef4e42a Merge branch 'master' into ui-polish 2017-03-27 12:24:58 -07:00
Alex P 74b9268a62 show Invert cursor on graphs 2017-03-27 12:24:50 -07:00
Alex P c751ccc014 Replace standard cursors with custom ones 2017-03-27 12:24:24 -07:00
Alex P e0789f1ca6 Add custom cursors and stylesheet 2017-03-27 12:23:58 -07:00
Alex P fef01356d6 Add 2 new icons to font
Solid style Crown & Server
2017-03-27 12:08:10 -07:00
Jared Scheib a694f25425 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 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
Andrew Watkins 130156dfbe Merge pull request #1063 from influxdata/dbm-polish
Fix DB manager table column sizing
2017-03-24 14:04:19 -07:00
Andrew Watkins eb3454802a 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 a45e1a0816 Merge branch 'master' into 1060-remove_visualizations_bar 2017-03-24 13:32:25 -07:00
Luke Morris 1c2711241f Remove VisualizationSelector from Dashboard Edit Mode 2017-03-24 13:29:10 -07:00
Andrew Watkins 89f1d0b4b4 Make div a button 2017-03-24 13:26:22 -07:00
lukevmorris 148140effa 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 01ec21b483 Merge pull request #1029 from influxdata/feature/db-manager
Feature/db manager
2017-03-24 10:57:12 -07:00
Andrew Watkins 43c0961e69 Pass delete retention policy down down down 2017-03-24 10:42:59 -07:00