Commit Graph

4801 Commits (980df66b16c1d09aaefed0dff89007fcd461b25b)

Author SHA1 Message Date
Alex P 61765822b5 Add expand/collapse interaction to each kapacitor log item 2018-02-02 17:25:43 -08:00
Iris Scholten 9ca6d1852e refactor of update methods in ProvidersTableRow 2018-02-02 16:57:26 -08:00
Iris Scholten 9ecbf9daf7 make scheme a dropdown, update the redux store for a mapping change corectly, and add an empty state for the provider mappings page 2018-02-02 15:26:31 -08:00
Alex Paxton 44339a5b25 Merge pull request #2746 from influxdata/saving-tickscript
Saving tickscript
2018-02-02 11:37:31 -08:00
Alex P 5c090c970d Cleanup
Based on feedback from @lukevmorris
2018-02-02 11:25:59 -08:00
Iris Scholten 4015b79351 repair failing specs 2018-02-01 17:13:34 -08:00
Iris Scholten adaff3e9e8 Merge branch 'master' into feature/global-users 2018-02-01 16:40:14 -08:00
Alex P b814f0d5a0 Redesign tick script editor console
Moved to bottom, color coded, is larger
2018-02-01 15:34:59 -08:00
Alex P 0b60d11829 Replace validation with consoleMessage and render in console component
Also, if error returned from kapacitor it does not save
2018-02-01 15:34:06 -08:00
Alex P 31473cf559 Remove static legend toggle from cell menu 2018-02-01 13:13:48 -08:00
Alex P 5ea8aa4cdd WIP Prepare for incoming legend key on cell
@goller is going to add a legend key to cell with a specific shape
2018-02-01 13:11:17 -08:00
deniz kusefoglu 30fa3b730e Improve copy on Tickscript editing notifications 2018-02-01 13:09:09 -08:00
Alex P fb7ca944a6 Add static legend option to cell editor state and pass into children
Toggle is visible in AxesOptions as it only pertains to dygraph graphs
2018-02-01 11:26:06 -08:00
Alex P 51f04fdfce Improve appearance of display options on smaller screens 2018-02-01 11:25:08 -08:00
deniz kusefoglu f6f418c48c Detect unsaved changes outside the tickscript editor 2018-02-01 11:02:45 -08:00
Alex P b801a806c9 Set a maximum height for the static legend with overflow 2018-02-01 10:21:04 -08:00
Luke Morris de2e755f82 Add confirm dialog to removing Organization Tag 2018-01-31 17:39:05 -08:00
Luke Morris 34c52e17ee Improve of user deletion messaging 2018-01-31 17:20:53 -08:00
Alex P 522ce0df27 Replace create & exit with just exit 2018-01-31 17:17:15 -08:00
Alex P 9a130b435a Change exit confirmation to be a question 2018-01-31 16:55:13 -08:00
Alex P 9ba31713c9 Make confirm button tooltip positioning smarter
Could be improved further, but this solves the immediate problem of the
tooltip extending beyond the right edge of the screen
2018-01-31 16:54:53 -08:00
Iris Scholten 2cb9026364 add better messaging for removing own user record 2018-01-31 16:43:51 -08:00
Alex Paxton b02fede610 Add unsavedChanges state to TickscriptPage
Signed-off-by: Deniz Kusefoglu <denizk@gmail.com>
2018-01-31 16:05:28 -08:00
Alex Paxton bc35463b09 Fix Visbility typo
Signed-off-by: Deniz Kusefoglu <denizk@gmail.com>
2018-01-31 16:04:27 -08:00
Alex Paxton 05c41fdcc1 Add ConfirmButton
Signed-off-by: Deniz Kusefoglu <denizk@gmail.com>
2018-01-31 16:02:39 -08:00
Iris Scholten 8f844ac0f8 improve the flash message verbiage when deleting a user from the userspage and standardized the duration time for flash messages to be 4s 2018-01-31 15:57:24 -08:00
Iris Scholten 2b1dc00cf0 improve the flash message verbiage to explicitly state the changes made 2018-01-31 15:25:28 -08:00
Alex P bb84d73209 WIP Polish annotation tooltip delete
Trying to make this thing look nice and not be obscured by the page
header
2018-01-31 12:41:08 -08:00
Alex P f4af440e99 Fix legend hiding logic
Was getting mad errors before
2018-01-31 12:40:41 -08:00
Alex P 475d369811 Enable deletion of annotation range from endpoint 2018-01-31 12:07:23 -08:00
Alex P e6bbf7fa4b Make it harder to accidentally mouse out of an annotation 2018-01-31 11:53:07 -08:00
Alex P 64a0fcfaa4 Prevent render of legend during annotation edit mode 2018-01-31 11:43:47 -08:00
Jean-François YUEN 723bbe9f12 Remove useless withRouter 2018-01-31 13:05:31 +01:00
Jean-François YUEN 80db6212b5 Add refresh widget to hosts page 2018-01-31 13:05:31 +01:00
Alex P 9578bb0c87 Remove secondary "text" field from annotation tooltips 2018-01-30 20:16:03 -08:00
Alex P b80b93208e Mention keyboard/mouse interactions in helper component
Good UX brahhhh
2018-01-30 16:00:36 -08:00
Alex P 81be8ddfcb Allow static legend to grow as necessary
Also resizing the annotations and dygraph containers to fit
2018-01-30 15:49:56 -08:00
Iris Scholten 343f417474 WIP fully connect redux to provider react componenets 2018-01-30 15:26:08 -08:00
Alex P 2f4b1fdfbe Prevent static legend items from text wrapping 2018-01-30 14:31:12 -08:00
Iris Scholten 04144c8192 WIP delete mapping in redux 2018-01-30 11:27:30 -08:00
Iris Scholten 50d7da02b0 WIP add new mappings in redux 2018-01-30 11:09:26 -08:00
deniz kusefoglu ca945cf627 Rename Persistent Legend to Static Legend 2018-01-29 17:44:46 -08:00
Iris Scholten 5d9062e82f WIP load mappings fixture into redux 2018-01-29 17:40:02 -08:00
deniz kusefoglu 929c84ce25 Add ability to Toggle the visibility of the static legend. 2018-01-29 16:35:07 -08:00
deniz kusefoglu 8c5b5e16d5 Fix linter error 2018-01-29 15:12:17 -08:00
deniz kusefoglu 630f5051e7 Add regular click behavior to persistent legend 2018-01-29 15:02:16 -08:00
deniz kusefoglu 92c4923568 Add shift and meta key onclick behavior to persistent legend 2018-01-29 14:40:48 -08:00
deniz kusefoglu 8e82c78fa3 Add series colors to persistent legend 2018-01-29 11:35:24 -08:00
Deniz Kusefoglu 956b4b504b Merge pull request #2708 from influxdata/linkable-config-tabs
Link directly to the right config tab from handler section in rule creator.
2018-01-29 10:01:01 -08:00
Alex P 499be94163 Merge branch 'feature/global-users' into feature/global-users-styles 2018-01-26 20:20:37 -08:00
Alex P ad84ac864e Set more appropriate column sizes for global users table and remove dropdown 2018-01-26 20:18:51 -08:00
Alex P c91e35e10f Refactor Tags component to include optional Add button 2018-01-26 20:16:31 -08:00
Alex P 2c709f1863 Allow for a custom class to be passed in to ConfirmButton
Also some cleanup
2018-01-26 20:15:54 -08:00
Jared Scheib 89eeedb27f Filter out organizations from Add to Organization where the user has a role
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2018-01-26 20:15:42 -08:00
Jared Scheib e4fc1c2ca7 Wire up remove & add user to organization from AllUsersPage 2018-01-26 20:07:02 -08:00
Jared Scheib 37eacef8c9 Show different success message for user delete from AllUsersPage vs UsersPage 2018-01-26 19:13:11 -08:00
Jared Scheib 8d494d4588 Comment, remove consoles, cleanup 2018-01-26 18:53:48 -08:00
Jared Scheib 7134153cb5 Fix linksReducer return state & make reducer default consistent
Remove actionTypes constants for links actions.
2018-01-26 18:53:08 -08:00
Alex P f62c42b847 Use ConfirmButton instead of DeleteConfirmButtons 2018-01-26 18:51:48 -08:00
Jared Scheib 91dfe6bcf0 Refresh links every time current org is switched 2018-01-26 18:51:34 -08:00
Alex P 4b3c9aed17 Introduce ConfirmButton component
In essence the same as ConfirmDeleteButtons just adheres to the latest
patterns and is more compact
2018-01-26 18:51:04 -08:00
Jared Scheib aea9b5b918 Un-blackout LINKS_ actions from errors middleware so dispatch registers with Redux 2018-01-26 18:50:24 -08:00
deniz kusefoglu fe9407422f Fix passing hash routes through router.push and address bar url 2018-01-26 18:08:20 -08:00
Alex P a36dad3e38 Prevent text wrap of user is me label 2018-01-26 17:58:48 -08:00
Alex P c765dd0df6 Style all users superadmins toggle 2018-01-26 17:56:00 -08:00
Alex P 80d5fee016 Fix weird classname output in SlideToggle
empty string does the trick
2018-01-26 17:55:44 -08:00
Alex P de306fc393 Redesign disabled state of slide toggle 2018-01-26 17:44:40 -08:00
Luke Morris 177b56c4d2 WIP Create New Mapping in ProviderTable 2018-01-26 17:07:29 -08:00
deniz kusefoglu 30a7bf10d4 Transmit location information in hash instead of locationState and use object.keys to access index of alert tabs 2018-01-26 16:05:35 -08:00
Alex P 99d11bd4c7 Render dots next to each persistent legend item 2018-01-26 15:17:08 -08:00
Alex P 8867352305 Remove measurement from persistent legend labels to conserve space 2018-01-26 14:41:45 -08:00
Alex P 13c83f8985 WIP polish appearance of toggleable persistent legends 2018-01-26 14:41:23 -08:00
Alex P 4e24376a31 Introduce stylesheet and styles for persistent legend
WIP
2018-01-26 13:06:40 -08:00
Alex P 152e49a7b2 Can't escape the funk 2018-01-26 13:06:40 -08:00
deniz kusefoglu 4f1a1ea57e Add missing proptype 2018-01-26 13:06:40 -08:00
deniz kusefoglu a0b50352d2 WIP persistent legend with onClick setVisibility 2018-01-26 13:06:40 -08:00
Alex P f3c1f2ae51 Render cell edit button only if there are queries 2018-01-25 14:03:05 -08:00
Alex P 8f4b9a44c3 Format timestamp in annotation tooltip to match timestamp in legend 2018-01-25 13:48:28 -08:00
Alex P ac3cf8bd12 Enable editing of Annotations
By default annotations are view only, user must enter “edit mode” to
make changes to annotations. Also refactored a bit so LayoutCellMenu
gets its actions directly rather than passing down from the dashboard
container
2018-01-25 13:22:39 -08:00
Nathan Haugo 9a0d0ad54d Update changelog for 1.4.0.1 2018-01-25 13:09:45 -08:00
Andrew Watkins 2b0deac7b8 Style of creating annotations with a durations --Alex Paxton 2018-01-22 16:52:40 -08:00
Andrew Watkins 61d656ecd1 Make circle happy 2018-01-22 13:40:17 -08:00
Andrew Watkins 79d2d8a4b4 Introduce add annotation with duration to UX 2018-01-22 13:40:09 -08:00
Andrew Watkins 01c9b855b6 Remove resetting of callbacks on unmount: 2018-01-20 15:43:14 -08:00
Alex P 77b80760e6 Polish interactions and style for add annotation flow 2018-01-19 20:36:26 -08:00
Alex P c953205baf Consolidating annotation in redux 2018-01-19 17:46:28 -08:00
Alex P f473fc0872 WIP Introduce NewAnnotation component
This will be used during the creation flow for annotations
2018-01-19 16:21:41 -08:00
Andrew Watkins 68f24e64d4 Move legendComponent ref out of Dygraph and introduce annotationMode 2018-01-19 16:14:24 -08:00
Andrew Watkins b36ab14b24 Introduce addAnnotation action and reducer 2018-01-19 14:18:57 -08:00
Alex P a3dc0789fd Refactor and redesign cell context menus to have tooltip menus on each button
Introducing the MenuTooltipButton which is easily configurable
2018-01-19 12:55:16 -08:00
Andrew Watkins 8656b340a6 Add delete Annotation functionality 2018-01-19 12:41:32 -08:00
Alex P 62a9e40138 Polish annotation styles
- Drag color is light blue
- Flags for start/end of durations are triangles
- Window is more subtle and has dotted border
- Timestamp doesn’t jitter between drag and hover state
2018-01-18 21:52:40 -08:00
Alex P bf0acce250 WIP Delete annotation 2018-01-18 17:52:36 -08:00
Alex P 76bd672e4c Make annotation tooltip editable 2018-01-18 17:49:19 -08:00
Alex P eff562b501 Refactor InputClickToEdit into AnnotationInput
It has diverged enough to not be the same
2018-01-18 17:49:01 -08:00
Alex P 648f9b43a1 Fix comment error 2018-01-18 15:19:44 -08:00
Alex P a3ba069e4b Introduce InputClickToEdit Component 2018-01-18 15:19:36 -08:00
Alex P c3f9b3c310 Introduce AnnotationTooltip component 2018-01-18 14:18:33 -08:00
Alex P d67cde2cc9 Make annotation tooltips persist on hover 2018-01-18 13:49:17 -08:00
Andrew Watkins 4c11e5327c Merge branch 'feature/annotationz' of github.com:influxdata/chronograf into feature/annotationz 2018-01-18 13:19:22 -08:00
Andrew Watkins c11398b3f4 Handle drag from start point annotation with duration 2018-01-18 13:18:57 -08:00
Andrew Watkins e00558d171 Enable dragging to update of annotation endpoint 2018-01-18 13:00:19 -08:00
Alex P b39461c4b0 Introduce JS version of color palette 2018-01-18 12:22:15 -08:00
Alex P aaa44df0d9 Move styles into separate file and convert into functions
Seems easier to generate styles based on state
2018-01-17 22:52:25 -08:00
Jared Scheib d504af713d WIP Refactor AJAX links state management to use Redux
Ensures that links are always updated when me current organization
is changed, so that Admin Chronograf / Current Org Users works.

NOTE: Next step is understanding why dispatch isn't registering
LINKS_GET_REQUESTED or LINKS_GET_COMPLETED actions with Redux.
2018-01-17 19:01:16 -08:00
Jared Scheib 1ad652a3d2 Name excludeBasepath AJAX config option so options can be extended 2018-01-17 16:35:21 -08:00
Alex P 93702fa694 WIP Make annotation duration draggable 2018-01-17 15:40:13 -08:00
Alex P f169e756ee Make annotation lines draggable
Including action creators, tests, etc.
2018-01-17 15:29:56 -08:00
Jared Scheib 8979e042f7 Update rawUsers to allUsers per /users API change 2018-01-17 15:13:17 -08:00
Jared Scheib ccd29bf97e Fix OpsGenieConfig delete handlers & standardize with TagInput's 2018-01-17 14:55:19 -08:00
Jared Scheib 81eea19400 Wire up user organizations as Tags in AllUsersTable 2018-01-17 14:03:01 -08:00
Jared Scheib ca59e8fcf4 Factor out Tags, Tag, & TagInput into shared components 2018-01-17 13:07:17 -08:00
Jared Scheib 77b1531ac8 Add blank shared Tags & TagInput components files 2018-01-17 13:02:39 -08:00
Andrew Watkins c3bb4f4cd8 Fix lingering annotation window 2018-01-17 10:58:14 -08:00
Andrew Watkins 694f708ccc Fix call to visibility() on empty dygraph 2018-01-17 10:10:59 -08:00
Andrew Watkins cbb007cdba Introduce annotation reducer 2018-01-17 10:10:21 -08:00
Andrew Watkins d325cbf3be Clean up annotation helper 2018-01-17 08:53:25 -08:00
Andrew Watkins 46dc4e9bbd Hide annotations panned out of view on right 2018-01-17 08:53:11 -08:00
Alex P ed8ebb10ad Render triangles at the top of annotation lines 2018-01-16 21:27:09 -08:00
Alex P 11f754776b Render annotation window only if duration is present 2018-01-16 21:02:36 -08:00
Alex P e60e1f2c17 Add dummy annotation for testing 2018-01-16 21:02:14 -08:00
Alex P b5b96e22b5 Prevent annotation window from exceeding x axis range 2018-01-16 20:53:54 -08:00
Alex P c3fa2caa1d Improve debuggability of annotations
This is ultimately going to be removed
2018-01-16 20:53:22 -08:00
Alex P 3e5228744f Move pageX state into Legend
For improved performance rendering logic
2018-01-16 19:29:44 -08:00
Alex P 8ddbce141b Cleanup 2018-01-16 19:28:53 -08:00
Alex P 01e606a684 Fix legend positioning bug 2018-01-16 19:14:25 -08:00
Alex P 4163e78da5 Refactor annotations styles to accommodate new DOM structure 2018-01-16 18:37:05 -08:00
deniz kusefoglu 6baa7b49ca Convert promise pattern to async await 2018-01-16 18:12:18 -08:00
Andrew Watkins 5318e79ce8 Make annotations move smoothly with graph 2018-01-16 17:58:43 -08:00
deniz kusefoglu 7a84d3f654 Send state with router push to config pages from handler tabs, and display corresponding config tab 2018-01-16 16:46:46 -08:00
Andrew Watkins 8d49db4892 Move legend state into legend component
Moving legend state into the LegendComponent drastically reduced
the number of re-renders the Dygraph component was making.  This
was necessary for fluid rendering of annotations.  As a bonus, future
graph performance should now greatly improve.
2018-01-16 16:29:53 -08:00
Andrew Watkins fe24eba6be Hide annotation and duration window if less than start time 2018-01-16 16:28:57 -08:00
Andrew Watkins 28041ccd29 Add more annotation specs 2018-01-16 16:27:28 -08:00
Andrew Watkins 335ef5afaf Introduce annotations spec 2018-01-16 10:30:13 -08:00
Andrew Watkins 2e93c5d222 Remove storybook 2018-01-16 09:41:36 -08:00
Andrew Watkins 57a5a23908 Remove unused tests 2018-01-16 09:39:54 -08:00
Andrew Watkins b1a3807939 Export annotation logic 2018-01-16 09:39:29 -08:00
Alex P 487877e2d4 WIP render annotation ranges 2018-01-16 09:24:48 -08:00
Alex Paxton 2b4ca0e506 Merge pull request #2698 from influxdata/sources-nomenclature-fix
Improve Sources Nomenclature
2018-01-12 15:43:16 -08:00
Andrew Watkins eb822bae5d Introduce Annotations component corresponding styles 2018-01-12 13:41:47 -08:00
deniz kusefoglu 564e296d6b Resolve console errors in Kapacitor Config 2018-01-12 13:26:11 -08:00
deniz kusefoglu 1434e71381 Change flash message for successfully triggered alert 2018-01-12 13:00:04 -08:00
Andrew Watkins fd9dd2d7a4 Store left in var 2018-01-12 12:59:46 -08:00
Andrew Watkins ccc18d1da5 WIP initial annotation 2018-01-12 12:33:42 -08:00
Alex P 7149a4b8c6 Improve micro-copy based on Russ' feedback 2018-01-12 12:02:55 -08:00
deniz kusefoglu afc572a61a Stop event propagation on test button click 2018-01-12 11:23:03 -08:00
deniz kusefoglu c04e709127 Implement PR review suggestions 2018-01-12 10:57:16 -08:00
Jared Scheib b31190975c Add mdash Public table cell to OrganizationsTableRowNew
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2018-01-11 18:37:55 -08:00
Alex Paxton 2a4952cdbb Fix style of centered mdash when creating new organization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2018-01-11 18:35:00 -08:00
Jared Scheib 06f7a91bff Fix style for button width on current organization
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2018-01-11 18:29:15 -08:00
Jared Scheib 9a52d55aea Fix subtle font clipping in Admin Chronograf table headers
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2018-01-11 18:23:52 -08:00
Jared Scheib 34fd8970ac Refactor & simplify InputClickToEdit to use declarative state
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2018-01-11 18:23:24 -08:00
Alex P b44c95bb03 Rename components to match existing naming pattern 2018-01-11 17:53:18 -08:00
Alex P 21cbd433c7 Refactor organizations table to use fancy-table styles and InputClickToEdit 2018-01-11 17:53:18 -08:00
Alex P f402faa936 Cleanup redundant styles 2018-01-11 17:36:51 -08:00
Alex P 09e772d8f0 Introduce common set of styles for non-table tables 2018-01-11 17:36:51 -08:00
Alex P d40f086f4a Update providers page to fit into admin tabs UI 2018-01-11 17:36:51 -08:00
Alex P d39c71d9cb Create page for managing mappings between providers and chronograf organizations 2018-01-11 17:34:10 -08:00
Alex P 0819d6f8e2 Introduce InputClickToEdit component
Now is a decent time to make this pattern a component for easier re-use
and consistency
2018-01-11 17:33:05 -08:00
Jared Scheib fd429aaeee Move All New Users Are SuperAdmin toggle to AllUsersTable 2018-01-11 17:18:05 -08:00
Jared Scheib 0e99bbc1a9 Remove unnecessary Authorized HOC around AllNewUsersSuperAdmin toggle 2018-01-11 17:00:40 -08:00
deniz kusefoglu 5b5f807a16 Improve copy on flash messages 2018-01-11 15:50:10 -08:00
deniz kusefoglu 9001b6cf3c Place save and test buttons on all config sections 2018-01-11 14:52:59 -08:00
deniz kusefoglu c54905b21a Fix error and success flash messages 2018-01-11 14:46:07 -08:00
deniz kusefoglu b421207766 Fix slack config save and test button behaviors 2018-01-11 14:45:24 -08:00
Alex P 9848d49d91 Enforce add new / configure paradigm for influxdb and kapacitor connections 2018-01-11 14:00:17 -08:00
Alex P 0dbbf1d441 Update influxdb connection alert text 2018-01-11 13:59:47 -08:00
deniz kusefoglu 24a182874a Disable test alert button if endpoint is disabled at construction 2018-01-11 13:40:09 -08:00
deniz kusefoglu 60d2ff014f Style Save and Test buttons, Enable test button on save, Disable on edit 2018-01-11 13:29:58 -08:00
Alex P fbfe565b44 Change 'Source' to 'Connection' in configuration pages 2018-01-11 11:58:02 -08:00
deniz kusefoglu 2c32772387 Use async-await syntax to call test-config 2018-01-10 17:46:57 -08:00
Jared Scheib 1c380eb55e Add Organizations column with temp spans for orgs
Move Role column to right & remove Role table header.
Move table sizing constants out of component classes.
2018-01-10 16:27:03 -08:00
Jared Scheib 1856484670 Move AllUsersTable SuperAdmin column & toggles to right-most 2018-01-10 16:12:25 -08:00
Jared Scheib 679d2374e2 Make AllUsersTableEmpty an SFC 2018-01-10 16:09:49 -08:00
Jared Scheib a9877bc1cf Remove obsolete Authorized HOC from AllUsersTableEmpty 2018-01-10 16:08:22 -08:00
Jared Scheib 6e5b5c2790 Make UsersTableEmpty an SFC 2018-01-10 16:06:48 -08:00
Jared Scheib 5231218c5e Rename 'Create User' to 'Add User' in both Chronograf Admin pages 2018-01-10 15:55:20 -08:00
Jared Scheib 6728ec5d82 Reorient AllUsersTable around organizations, not roles
Use new links.rawUsers route to get users for AllUsersPage.
Introduce '*' role name to tell server to assign org defaultRole.
Update table header to display number of users & num orgs.
Remove concept of roles from AllUsers UI.

Note: The update & create AJAX are both broken or disabled until
the server is modified to accept '*' for role.
2018-01-10 15:51:21 -08:00
deniz kusefoglu 39757d86d3 WIP add test buttons to alert handler config sections 2018-01-10 15:34:18 -08:00
Andrew Watkins 743105b22f Merge pull request #2687 from influxdata/bugfix/legend-no-value
Remove no-value from list
2018-01-10 13:46:13 -08:00
Deniz Kusefoglu 1080e9b730 Merge pull request #2409 from influxdata/multiple-event-handlers
Multiple event handlers
2018-01-10 12:32:22 -08:00
Jared Scheib 68a0a54afd Rename EmptyUsersTable to UsersTableEmpty for new consistency 2018-01-09 18:08:07 -08:00
Jared Scheib 97739e84be Duplicate UsersPage components into AllUsersPage; remove SuperAdmin 2018-01-09 18:01:15 -08:00
Jared Scheib a5ba7b035b Add temp duplicate UsersPage for All Users 2018-01-09 17:27:31 -08:00
Jared Scheib b2b34adaae Rename Users tab to Current Org Users 2018-01-09 17:21:25 -08:00
Andrew Watkins 18571bdbd5 Remove no-value from list 2018-01-08 17:00:57 -08:00
deniz kusefoglu c9632185c5 Adjust dropdown height 2018-01-05 15:11:13 -08:00
deniz kusefoglu 6fa1ef69fb Fix NameSection ruleID reference 2018-01-05 14:53:24 -08:00
deniz kusefoglu ce4a586ffd Remove promises 2018-01-05 11:25:40 -08:00
Hunter Trujillo 177d81b21e Hotfix synchronization. Small quick fix. Reviewed by Watts while pairing. 2018-01-05 12:15:35 -07:00
Andrew Watkins 4330d43c7a Merge pull request #2664 from influxdata/bugfix/custom-time-overlap
Fix positioning of CustomTimeIndicator
2018-01-05 11:05:29 -08:00
Andrew Watkins 4bd9572761 Fix style name 2018-01-04 18:21:04 -08:00
deniz kusefoglu b45c88eae8 Merge branch 'master' into multiple-event-handlers 2018-01-04 18:14:06 -08:00
deniz kusefoglu 83e09b8637 Add a separator to the dropdown 2018-01-04 17:48:21 -08:00
deniz kusefoglu 35cdd6969f Change copy on buttons that take users to config section 2018-01-04 16:09:57 -08:00
deniz kusefoglu 510882bb7f Correct default rule id name 2018-01-04 15:47:32 -08:00
deniz kusefoglu 6d62350400 Revert "WIP add test buttons to alert handler config sections"
This reverts commit dce542c74f.
2018-01-03 15:53:20 -08:00
Andrew Watkins f92148a323 Make the time proportional to the group by interval 2018-01-03 15:23:18 -08:00
Andrew Watkins d01f3ea09e Refactor multiple promises to use async await 2018-01-03 14:53:34 -08:00
Andrew Watkins 340f26cf1e Add environment variables and links to chronograf 2018-01-03 13:13:56 -08:00
Andrew Watkins 8ea050e0bf WIP handle telegrafSystemInterval env 2018-01-03 11:50:34 -08:00
deniz kusefoglu dce542c74f WIP add test buttons to alert handler config sections 2018-01-02 17:33:11 -08:00
Andrew Watkins 924960bbcc Fix positioning of CustomTimeIndicator 2018-01-02 16:35:26 -08:00
deniz kusefoglu fc4d590d52 Display backend errors on alert save 2018-01-02 16:00:06 -08:00
deniz kusefoglu b7aae4fabc Fix inputfield id bug 2018-01-02 12:32:45 -08:00
deniz kusefoglu 3aeeae1bb8 Sort handlers dropdown so that enabled ones are at top 2018-01-02 11:21:13 -08:00
deniz kusefoglu 1bea21f274 Fix dropdown sizing 2018-01-02 11:19:30 -08:00
deniz kusefoglu b1f16adc7b Improve copy around un-configured handlers 2018-01-02 11:19:08 -08:00
Nathan Haugo 711cb48d14 Update package.json 2017-12-22 13:09:03 -08:00
Nathan Haugo dabd2ccb1a Merge pull request #2652 from influxdata/fix/sourcepage_render_styles
Fix SourcePage render & render Page Header for user context when adding initial source
2017-12-22 12:53:31 -08:00
Alex Paxton da2d8a4fbd Merge pull request #2598 from influxdata/single-stat-colors-polish
Single Stat Colors Polish
2017-12-22 12:48:50 -08:00
Jared Scheib a5b3370197 Show Page Header & 'Add a New Source' copy when adding initial source 2017-12-22 12:30:04 -08:00
Jared Scheib 95911f4385 Fix SourcePage styles to render edit source page successfully 2017-12-22 12:30:04 -08:00
Nathan Haugo efbb71e9d7 Update version 2017-12-21 11:36:03 -08:00
Alex P dbdaa160db Do not require suffix in single stat graph 2017-12-21 00:13:50 -08:00
Alex P 0ad61caab4 Fix color validation logic 2017-12-21 00:13:27 -08:00
Hunter Trujillo 4c103d8eac Merge branch 'master' into bugfix/rls-pls 2017-12-20 19:56:44 -07:00
Alex P 1ed028f5db Fix merge issues 2017-12-20 18:00:10 -08:00
Alex P 367c3d61ba Merge branch 'master' into single-stat-colors-polish 2017-12-20 17:59:52 -08:00
Jared Scheib aee4636d79 Merge branch 'master' into feature/superadmin_gets_default_role 2017-12-20 17:49:29 -08:00
Jared Scheib 023705d9ab Notify user what role & organization they switched to
Show that notification for 4 seconds.
Change copy from 'signed in' to 'logged in'.
Remove concept of userHasRoleInOrg since now obsolete.
2017-12-20 16:20:12 -08:00
Alex P ac43e3b50b Disable SuperAdmin slide toggle on users own row 2017-12-20 16:05:07 -08:00
Alex P e53b702c31 Add disabled state logic to SlideToggle component 2017-12-20 16:04:37 -08:00
Alex P 66a635e84e Add styles for slide toggle disabled state 2017-12-20 16:00:34 -08:00
Hunter Trujillo ebcde4a3fd FIx issue with DE UI state not also updating Redux state when first used. 2017-12-20 16:49:57 -07:00
Chris Goller 9eca2c156a Revert "Merge branch 'master' into 1.4.0.x"
This reverts commit f2869813ca, reversing
changes made to 7f5aea6414.
2017-12-19 19:31:18 -06:00
Chris Goller f2869813ca Merge branch 'master' into 1.4.0.x 2017-12-19 18:48:52 -06:00
Chris Goller ace51b1553 Update CHANGELOG and versions to prep for 1.4.0.0-rc1 2017-12-19 18:38:46 -06:00
Michael Desa 2dd7a971f4 Change default org id in client to "default" 2017-12-19 14:02:02 -08:00
Hunter Trujillo 7dadfd8060 Merge pull request #2612 from influxdata/2585-accept-days-units
Days is a valid duration value
2017-12-18 17:45:52 -07:00
Luke Morris c476b44d11 Repair specs 2017-12-18 16:11:35 -08:00
Jared Scheib 0b6ac8da25 Change logout to log out, because consistency 2017-12-18 15:53:35 -08:00
Luke Morris bf21fde425 Account for days in formatter matcher 2017-12-18 15:49:45 -08:00
Jared Scheib 6f2b175fb3 Merge branch '1.4.0.x' into multitenancy_ui_userspage_2583 2017-12-18 15:36:26 -08:00
Luke Morris df75b96116 Update regex to accept days as valid input 2017-12-18 15:28:29 -08:00
Jared Scheib fd187238a7 Await organizations & users via Promise.all to simplify render logic 2017-12-18 15:23:01 -08:00
Hunter Trujillo 74a138d767 Merge branch '1.4.0.x' of github.com:influxdata/chronograf into 1.4.0.x 2017-12-18 16:11:10 -07:00
Hunter Trujillo e522cd44f7 Add default uuid to defaultQueryConfig in case it's not supplied. Fix how a new query config is added if there is not one present in the DE. 2017-12-18 16:10:59 -07:00
Jared Scheib b6d18e3f23 Steve Bang where nhowgo created more bugs 2017-12-18 15:01:48 -08:00
Luke Morris c64b12e706 Prettier 2017-12-18 14:05:52 -08:00
Nathan Haugo 57a8f0c72e Actually make @stevebang approved 2017-12-18 13:55:32 -08:00
Nathan Haugo ebaa43c0ca Fix login bug 2017-12-18 13:49:30 -08:00
Jared Scheib 7c61a91191 Merge pull request #2591 from influxdata/multitenancy_no_switch_to_orgs_where_no_role
Allow SuperAdmin to switch to orgs where they have no role
2017-12-18 13:44:21 -08:00
Jared Scheib 1e361ec80e Add & render EmptyUsersTable if users & organizations are loading
Allow UsersTableHeader to be used in empty state via defaultProps

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-12-18 12:45:18 -08:00
Jared Scheib 2a50e90746 Move AdminChronografPage to /admin/chronograf 2017-12-18 12:10:02 -08:00
Jared Scheib b70f5704ed Remove obsolete code that reloaded users upon org switching 2017-12-18 12:08:37 -08:00
Jared Scheib db91aca339 Refactor AdminChronograf into UsersPage to ensure correct users via AJAX & guard
Move OrganizationsPage into /chronograf & cleanup
2017-12-18 12:08:20 -08:00
Jared Scheib 5bfed911b3 Fix destructuring bug in arg with default value 2017-12-15 16:05:57 -08:00
Jared Scheib cb88e31a7a Update copy of notification upon switch & become Admin 2017-12-15 16:05:57 -08:00
Jared Scheib 531b0d2afd Notify SuperAdmin of new Admin role switching to organization where they had no role 2017-12-15 16:05:51 -08:00
Jared Scheib 92c7dabf59 Revert "Add 'Join' button to the left of Organizations where a SuperAdmin has no role"
This reverts commit dffde0e5371ce82d2a3f2c785bdcdf43cf6a2c3b.
2017-12-15 16:05:45 -08:00
Jared Scheib 34301cb371 Add 'Join' button to the left of Organizations where a SuperAdmin has no role 2017-12-15 16:05:38 -08:00
Jared Scheib e5c4a4a403 Disable 'Switch to' button in OrganizationsTable for any orgs user has no role in
Signed-off-by: Deniz Kusefoglu <denizk@gmail.com>
2017-12-15 16:05:27 -08:00
Jared Scheib 5213d66544 Show spinner until UsersTable has users & organizations data 2017-12-15 15:31:58 -08:00
Luke Morris f9798d671f Load admin's organizations when loading users table 2017-12-15 13:57:00 -08:00
Jared Scheib ad22233adb Merge pull request #2590 from influxdata/2544-missing-dashboard-should-404
Attempting to access missing dashboard should redirect user to `/sources/:sources_id/dashboards`
2017-12-15 11:48:55 -08:00
Alex Paxton abdb5f5244 Merge pull request #2575 from influxdata/three-new-icons
Add Auth0, OAuth, and stacked hard disks icons
2017-12-15 10:18:08 -08:00
Alex P bd3aec99ad Allow users to toggle between coloring text or background with single stat thresholds 2017-12-14 19:07:19 -08:00
Alex P 35cbdd4fe3 Add field in single-stat options for setting a suffix 2017-12-14 19:06:35 -08:00
Luke Morris 7b1d32c26b Tell the user what went wrong 2017-12-14 18:36:18 -08:00
Jared Scheib 4448b187ba Only attempt to access error.data.message if error is 403'd AJAX
Use lodash to avoid destructuring

error.data.message should only exist for failed AJAX requests.
Currently we only handle 403 (HTTP_FORBIDDEN) here.
2017-12-14 18:19:29 -08:00
Luke Morris ebbb98426c Should abort DashboardPage mount immediately after redirect 2017-12-14 17:38:22 -08:00
Luke Morris 59427db2e0 If dashboard is missing, redirect to dashboards index 2017-12-14 17:36:44 -08:00
Nathan Haugo c42ebb3a86 Bump version to 1.4.0.0-beta2 2017-12-14 12:47:41 -08:00
Nathan Haugo a91b3ef104 Bump version to 1.4.0.0-beta2 2017-12-14 12:45:44 -08:00
Nathan Haugo 008a540b90 Merge pull request #2582 from influxdata/1.4.0.x
Merge 1.4.0.x hot-fixes into master
2017-12-14 12:12:35 -08:00
Nathan Haugo c5f53e54df Merge branch '1.4.0.x' into fix-optin-cursor 2017-12-14 12:05:58 -08:00
Alex P 31b21620d2 Format auth0 link name to render correct icon 2017-12-14 11:55:03 -08:00
Jared Scheib 82871771e9 Remove superAdmin toggle & data when creating a new user
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-12-14 11:15:34 -08:00
Jared Scheib 0e1bcfc9c6 Merge pull request #2355 from influxdata/multitenancy_all_users_superadmin_toggle
UI Toggle & API for SuperAdminFirstUserOnly server config
2017-12-14 10:54:18 -08:00
Nathan Haugo 49a5036d4f Merge pull request #2571 from influxdata/switch-orgs-from-manage-sources-rebased
Switch orgs from manage sources rebased
2017-12-13 17:49:34 -08:00
Nathan Haugo aad8247aba Merge pull request #2572 from influxdata/bugfix/user-role-public-org
Fix organization default role being stale on chrono users page
2017-12-13 17:41:47 -08:00
Andrew Watkins 65089611e4 Remove cruft 2017-12-13 17:30:32 -08:00
Nathan Haugo 10172cc9fc Merge pull request #2563 from influxdata/bugfix/y-axis-undefined
y axis title undefined
2017-12-13 17:29:00 -08:00
Nathan Haugo 13a3393de3 Merge pull request #2564 from influxdata/2561-invert-only-user-nav
Invert only the user nav; leave alerting/admin untouched
2017-12-13 17:28:10 -08:00
Jared Scheib f7bbef2b30 Refactor handleChangeAuthConfig to be simpler & more modular 2017-12-13 17:23:30 -08:00
Andrew Watkins 6c786ef533 Merge branch '1.4.0.x' into bugfix/y-axis-undefined 2017-12-13 17:21:48 -08:00
Andrew Watkins ba9e5f2916 Update placeholder if y-axis default title is empty 2017-12-13 17:15:58 -08:00
Andrew Watkins 83aa2da7fa Do not return a label if provided with empty query config 2017-12-13 17:15:58 -08:00
Nathan Haugo 4fedf398d0 Fix tool tip verbiage and master the art of css 2017-12-13 16:58:44 -08:00
Alex P 67e9cbb741 Add Auth0, OAuth, and stacked hard disks icons 2017-12-13 16:27:43 -08:00
Andrew Watkins dcf7fdc010 Use organizations state instead of me: currentOrganization 2017-12-13 16:06:13 -08:00
Andrew Watkins f7ef728a3b Fix organization default role being stale on chrono users page
The 'currentOrganization' namespaced in the auth reducer does not get
updated when chronograf organizations reducer gets updated.  This
results in temporary stale state until `/me` is hit and the 'me auth'
state trickles through the application.
2017-12-13 15:43:57 -08:00
Jared Scheib 058f5fbc20 Rename superAdminFirstUserOnly to superAdminNewUsers & flip default logic accordingly
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-12-13 14:49:49 -08:00
deniz kusefoglu 5c9b4fc3e7 Make switch-orgs button take users to purgatory 2017-12-13 14:17:38 -08:00
Alex P 7dfd0c9312 Change design to be consistent with Purgatory logout button 2017-12-13 14:17:38 -08:00
Alex P 18b666660d WIP Add button to Manage Sources page for switching organizations
Also added some icons to the buttons
2017-12-13 14:17:38 -08:00
Jared Scheib 63ea69e679 Update state in SlideToggle when props update
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-12-13 13:57:09 -08:00
Jared Scheib 172b1f827d Rename css class to use 'config' instead of 'settings' 2017-12-13 13:55:06 -08:00
Jared Scheib a54712f600 Add config.self & config.auth routes, update client routes & make PATCH a PUT 2017-12-13 13:54:23 -08:00
Alex P fc83074612 Merge branch 'master' into single-stat-colors 2017-12-13 11:01:18 -08:00
Luke Morris 61ca26f09a Merge branch 'master' into fix-optin-cursor 2017-12-12 18:11:51 -08:00
Alex P 0bdb3d6233 Add hover and pressed state visual cues to opt-in label
After much debate this seems to check off the most “Good UX” boxes
2017-12-12 17:57:54 -08:00
Jared Scheib b2591828fe Pass through config link to redux 2017-12-12 15:10:54 -08:00
Luke Morris 438bca1fc1 Invert only the user nav; leave alerting/admin untouched 2017-12-12 14:48:22 -08:00
Jared Scheib 74ffdab074 Move & rename Settings boilerplate to dedicated shared Config boilerplate 2017-12-12 14:39:40 -08:00
Andrew Watkins b8d2421f23 Prevent inversion of graph 2017-12-12 14:34:30 -08:00
Jared Scheib 2119dcb60a Wire up SuperAdminFirstUserOnly toggle in UI
The API does not exist yet, and the shape and location
in redux may change.
2017-12-12 14:02:17 -08:00
Alex P 4bba4542be Create settings table beneath organizations table
Only 1 setting for now, when we have more we can find a better home for
it
2017-12-12 14:02:17 -08:00
Alex P e67dc7ebbf Render static text instead of kapacitor switching dropdown for Viewers 2017-12-12 13:40:01 -08:00
Jared Scheib 0050fddc03 Allow new Organization names to include spaces 2017-12-12 13:37:07 -08:00
deniz kusefoglu 2f05ceb537 Pretty print JSON in shared tests spec 2017-12-12 13:12:58 -08:00
Luke Morris 5688668c81 Allow for 2 custom links 2017-12-12 12:45:03 -08:00
Luke Morris 525f4ba18d Shift position of inverse dropdown 2017-12-12 12:45:03 -08:00
Luke Morris d4f2d97430 Control direction of sidebar-menu--user-nav with flexbox 2017-12-12 12:45:03 -08:00
Luke Morris 62213ee9cc visualViewport is supported in Chrome only 2017-12-12 12:37:30 -08:00
lukevmorris d92b7d29ac Merge pull request #2543 from influxdata/2520-firefox-login
Repair rendering bug in Firefox
2017-12-12 11:56:59 -08:00
deniz kusefoglu 26dc96ab18 Verify that log/tcp/exec and post are filled before adding them to alertnodes on rule 2017-12-12 10:54:18 -08:00
Alex P a949144ea0 Actually fix the issue 2017-12-12 10:25:57 -08:00
Luke Morris 552698a13a Allow for 2 custom links 2017-12-11 17:06:38 -08:00
Alex P a07e17a55b Render static text instead of kapacitor switching dropdown for Viewers 2017-12-11 16:59:01 -08:00
Luke Morris e0b6b01510 Shift position of inverse dropdown 2017-12-11 16:16:14 -08:00
Luke Morris 58966b4b1a Control direction of sidebar-menu--user-nav with flexbox 2017-12-11 15:20:58 -08:00
Luke Morris dd403c3de6 visualViewport is supported in Chrome only 2017-12-11 14:46:28 -08:00
Jared Scheib 17e3641ae4 Allow new Organization names to include spaces 2017-12-11 14:42:24 -08:00
deniz kusefoglu 98d0481da7 Add url and urlTitle fields back to pushover 2017-12-11 11:30:25 -08:00
Alex P c9134b3ce2 Inset colored portion of single-stat for contrast 2017-12-11 11:27:41 -08:00
Alex P e4bb94cc66 Vertically center single stat text in container instead of entire cell 2017-12-11 11:18:18 -08:00
Alex P c1897cc36c Optimize single stat text color based on background color 2017-12-11 11:16:38 -08:00
Alex P 41a989288c Introduce color operations constant for use in single stat
Could be useful elsewhere
2017-12-11 11:16:07 -08:00
deniz kusefoglu ca0ace0bc4 Improve the way post headers are set in reducer, and initialized 2017-12-11 11:09:21 -08:00
Alex P 8636930f65 Render single stat cells with background color of nearest exceeded threshold 2017-12-11 10:48:27 -08:00
Luke Morris da5ec796d5 Merge branch 'master' into fix-optin-cursor 2017-12-11 09:52:31 -08:00
deniz kusefoglu c09fd1f4fa Fix rule handler dropdown height 2017-12-08 19:38:07 -08:00
deniz kusefoglu a943e590c7 Test Multiple event handlers 2017-12-08 19:23:16 -08:00
deniz kusefoglu 9f1389aae5 remove unused RULE_ALERT_OPTIONS 2017-12-08 19:22:44 -08:00
deniz kusefoglu 91286c081c Prevent redacted fields from being saved in to rule. 2017-12-08 19:21:33 -08:00
Alex P a55d0c8fd5 Fix mistake 2017-12-08 15:55:56 -08:00
Alex P 853ed656d3 Pass colors into SingleStat 2017-12-08 15:50:46 -08:00
Alex P 09e5a66092 Make SingleStat into a pure component
Mimicking pattern seen in GaugeChart
2017-12-08 15:50:33 -08:00
deniz kusefoglu 1409b1e7a4 Change name of function-x from get-x 2017-12-08 15:44:22 -08:00
Alex P b2cf341b8a Prevent gauge needle from exceeding bounds of gauge 2017-12-08 15:40:32 -08:00
deniz kusefoglu 4ba5784764 Add button to config from each configured handler 2017-12-08 15:36:27 -08:00
Alex P 74ed08f987 Remove MIN & MAX type from gauge 2017-12-08 15:35:03 -08:00
Alex P 3bb1c577a6 WIP remove concept of threshold type 2017-12-08 15:29:44 -08:00
Alex P 99f88705f6 Validate MIN and MAX thresholds based on order in sort not colors.type
Moving away from using threshold type in the interest of making the
logic work for both single stat and gauges
2017-12-08 15:02:58 -08:00
Alex P f11f727997 Ensure single stat threshold values are unique 2017-12-08 15:02:03 -08:00
Alex P dadd133459 Do not enforce min and max values for single-stat thresholds 2017-12-08 14:54:14 -08:00
Alex P 739a661d5a Allow negative values for both gauge and single-stat thresholds 2017-12-08 14:53:23 -08:00
Alex P d595f8eaa8 Prevent addition of thresholds with a nonexistent color 2017-12-08 14:39:40 -08:00
Luke Morris b557ca2108 Bump dygraphs to 2.1.0 2017-12-08 14:33:03 -08:00
Alex P 3c95ba9f37 Sort colors by value and use first and last instead of explicit MIN & MAX
Using MIN & MAX is a nice guard but makes it incompatible with single
stat. This approach is a little more flexible. Starting to think we
might not need explicit threshold types anymore
2017-12-08 14:28:31 -08:00
Alex P 5c71a02e9c Only look for MIN and MAX values if visualization type is gauge 2017-12-08 14:24:39 -08:00
Alex P c8dd0ba4d3 Validate number of thresholds in proper place
Didn’t make sense to do this in two places. This prevents an issue that
occurs when you switch from a gauge to a single-stat and delete one
color, leaving one color remaining, then switch back to gauge
2017-12-08 14:19:42 -08:00
deniz kusefoglu e888836315 Add bracket to scss 2017-12-08 13:47:04 -08:00
Alex P 8cf13d36b8 Update bootstrap theme to make green dropdowns have greater contrast 2017-12-08 13:43:04 -08:00
deniz kusefoglu 50542fbf86 Merge branch 'multiple-event-handlers' of github.com:influxdata/chronograf into multiple-event-handlers 2017-12-08 13:40:21 -08:00
deniz kusefoglu d9a49e288b Christmas Tree 2017-12-08 13:27:34 -08:00
Deniz Kusefoglu ed7f38c943 Merge branch 'master' into multiple-event-handlers 2017-12-08 12:20:40 -08:00
Alex P 74f66b7503 Only enforce DEFAULT_COLORS when visualization type is gauge
Allows for fluid switching between single stat and gauge types without
conflict
2017-12-08 12:06:23 -08:00