Commit Graph

3559 Commits (30df9c2f259f15bfacfb3c4df71e7391856bbd48)

Author SHA1 Message Date
Alex Paxton 30df9c2f25 Fix nav block route for split Admin
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-31 20:09:25 -07:00
Alex P 8ef6353968 Merge remote-tracking branch 'origin/multitenancy' into multitenancy_ui_superadmin_admin_panel 2017-10-31 20:08:12 -07:00
Alex P 6e93b13ddb Make chronograf admin table header into component 2017-10-31 20:00:43 -07:00
Alex P 8c64c34c57 Remove HTML placeholder for chronograf admin table filter input 2017-10-31 19:40:53 -07:00
Alex P 66fd43b3bb Make chronograf admin page header into stateless component 2017-10-31 19:37:00 -07:00
Alex P 507972b6d7 WIP Implement create organization overlay 2017-10-31 19:28:14 -07:00
Jared Scheib 3e0d53fa5a Clear console logs on batch actions for now
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-31 18:45:17 -07:00
Alex P f8e213a351 Vertically center items within each table row 2017-10-31 18:41:37 -07:00
Alex P 9ae7f891fd Add margin between role and org column items 2017-10-31 18:41:24 -07:00
Alex P ac07768879 Make plaintext items in the users table the same height as dropdowns
Prevents jitter and jank
2017-10-31 18:29:31 -07:00
Alex Paxton efcf7199dc Show Org dropdown when User not part of org
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-31 18:19:11 -07:00
Alex Paxton 3b64cbc605 Add No Role string const & update No Org str const
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-31 18:18:51 -07:00
Jared Scheib fd48cc274c Add Role dropdown to All Users table that logs req'd data for now
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-31 18:10:33 -07:00
Jared Scheib d30cda22f2 Rename chronograf/AllUsersTable to chronograf/UsersTable since serves as single-stop table 2017-10-31 17:50:12 -07:00
Alex P 9d8463db28 Prevent table column sizing jitter 2017-10-31 14:48:40 -07:00
Alex P ac24614c82 Make chronograf users table always show organizations and roles in separate columns 2017-10-31 14:13:25 -07:00
Alex P b07e9c35b2 WIP Implement batch actions functionality 2017-10-31 13:18:17 -07:00
Alex P 8a3bd54d2a Render Delete users button if users are selected 2017-10-31 10:47:37 -07:00
Alex P 17e6495528 Create Batch Actions bar above table 2017-10-31 10:47:04 -07:00
Alex P 5d2a6a799d Make table rows selectable from name column as well as entire checkbox column 2017-10-30 23:05:39 -07:00
Alex Paxton efa3b8406e Cleanup styles for Chronograf admin users table header
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-30 19:52:54 -07:00
Jared Scheib d885cc403d Clear users selected when filtering by non-default org
Make number of users selected & org filter dropdown always show.

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-30 19:44:01 -07:00
Alex Paxton fa61ce5353 Make Organizations dropdown that filters by org
Add concept of default organization to all users.
Don't show default org among roles.
Show user as None if only member of default org.

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-30 19:31:36 -07:00
Jared Scheib 07a294c7b3 Show number of users selected on Chronograf admin page
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-30 17:58:49 -07:00
Alex P 611988b222 Style checkboxes in Chronograf admin page 2017-10-30 17:51:43 -07:00
Alex P 2fde98beb4 Implement toggling selection of all Chronograf users
Refactor AllUsersTable and AdminChronografPage to make SelectedUsers
and FilteredUsers available via state in the parent component
2017-10-30 17:35:47 -07:00
Alex Paxton 9cc29fd269 Implement toggling selection of users
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-30 16:32:35 -07:00
Alex P fa294fc6fc WIP Implement chronograf admin users table 2017-10-30 14:03:03 -07:00
Alex P 7ac57e7a6d Create fixture for chronograf users 2017-10-30 13:54:51 -07:00
Luke Morris c06e8a8c57 Refactor SideNav & NavBlock to remove unnecessary cloneElement
Remove additionalProps & some cloneElement need from Authorized.
Incidentally fix dispatch error from throwing.
Clean up.

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:37:17 -07:00
Jared Scheib 8acd015131 Refactor Authorized return logic to be in the affirmative
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-10-27 17:24:50 -07:00
Alex Paxton bec27b0fd5 Fix & clean up Authorized render logic
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:06:06 -07:00
Jared Scheib 6704e2b6ee Rename source-indicator.scss to info-indicators.scss for role-indicator addition 2017-10-27 16:46:44 -07:00
Jared Scheib 0a4d395747 Simplify return logic if replaceWith is undefined 2017-10-27 16:42:41 -07:00
Jared Scheib 8153f57394 Use lodash to more safely get me role 2017-10-27 16:42:20 -07:00
Jared Scheib f75cc475fe Bifurcate AdminPage into InfluxDB and initial Chronograf versions
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-26 18:49:15 -07:00
Jared Scheib 9fd9ffa4f5 Revert "Render link to Rule Builder based on user authorization"
This reverts commit 31a00ca7f9.
2017-10-26 18:03:45 -07:00
Jared Scheib 3fbc07bf89 Revert "Render Create Rule & Write TICKscript buttons based on user authorization"
This reverts commit 51ab78cc3f.
2017-10-26 18:02:26 -07:00
Jared Scheib 8ff10b58b3 Revert "Render Delete & Edit TICKscript buttons in Rules Table based on user authorization"
This reverts commit 8ffa4cbe5b.
2017-10-26 17:58:58 -07:00
Jared Scheib 396bf3f215 Revert "Render Edit TICKscript and Delete buttons in TaskTable based on user authorization"
This reverts commit 32f4167b9f.
2017-10-26 17:56:34 -07:00
Jared Scheib fddb603d59 Revert "Disable rule Enabled toggle in TaskTable based on user authorization"
This reverts commit 71645a6b11.
2017-10-26 17:55:33 -07:00
Jared Scheib eeb5ad5817 Revert "Render Write Data button based on user authorization"
This reverts commit 4fee049820.
2017-10-26 17:54:00 -07:00
Jared Scheib 71645a6b11 Disable rule Enabled toggle in TaskTable based on user authorization 2017-10-26 13:31:44 -07:00
Alex P af5847fedf Render Add Graph button in empty cell based on user authorization 2017-10-25 20:13:54 -07:00
Alex P 1ae3b7a743 Render Add Config button in sources table based on user authorization 2017-10-25 18:40:48 -07:00
Alex P 43d06f2e81 Override layout resize and drag functionality based on user authorization 2017-10-25 18:37:45 -07:00
Alex P 6fa91466ec Allow render of Authorized child if propsOverride has been specified
In this case we don’t want to obscure the wrapped component, just
render it with some props modified
2017-10-25 18:31:25 -07:00
Alex P 448c276f20 Guard against empty arrays of dropdown actions 2017-10-25 18:30:35 -07:00
Alex Paxton 8ef461e7fa Remove location required from NavItems propTypes since not always available immediately
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 17:00:27 -07:00
Alex Paxton b51429a954 WIP Introduce propsOverride to Authorized HOC to limit props based on authorization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 16:58:47 -07:00