Commit Graph

5702 Commits (5bb2ac1cf4fd071323cc2361160da354a40a454f)

Author SHA1 Message Date
Jared Scheib a844e7ac62 Set filteredUsers to users on props update to show all on load
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-11-01 17:03:48 -07:00
Alex P 5a5499ed87 Render SuperAdmin column in Chronograf Admin Table based on Authorization 2017-11-01 16:32:01 -07:00
Alex P 7baa97f7a5 Use separate table row components for viewing all orgs and viewing a single org 2017-11-01 16:16:26 -07:00
Alex P a73531f86f Ensure UsersTable sub-components return a single react element
Previously was returning an array in a couple instances. Unnoticed
mishap from refactor
2017-11-01 15:29:49 -07:00
Alex P 7928f2cb9d Introduce UserNavBlock component to handle authenticated user actions 2017-11-01 14:28:30 -07:00
Alex P bd2bbbf6ab Refactor UsersTable into sub-components 2017-11-01 14:28:23 -07:00
Jared Scheib 6f20e5b21d Accommodate superadmin and member roles
Add top-level redux key for me.role
2017-11-01 13:16:35 -07:00
Jared Scheib 616e4bbb98 Fetch live data from /chronograf/v1/users & load into Chronograf Admin Table
Move DUMMY_USERS data into admin/chronograf/loadUsers spec.
This adds a full roundtrip for populating the Chronograf Admin Table
with live data from the server. It includes a reducer & test, action
creator, and API request, which then loads the successful data into
the Redux and then the React component.
2017-11-01 00:51:40 -07:00
Jared Scheib 0376dc32b7 Add ID, Links, all Providers, & capitalize OAuth2 in dummy User data 2017-11-01 00:06:41 -07:00
Jared Scheib 077f129f7d Specify Admin.InfluxDB as test name in influxdb admin reducer 2017-10-31 22:52:52 -07:00
Jared Scheib f3456f25b6 Rename adminSpec.js to influxdbSpec.js 2017-10-31 22:44:05 -07:00
Jared Scheib 5e9ccef479 Clarify name & import of adminInfluxDB reducer 2017-10-31 22:42:31 -07:00
Jared Scheib 5a6df49604 Rename admin/apis/index.js to admin/apis/influxdb.js 2017-10-31 22:20:03 -07:00
Jared Scheib b4ad2a976f Rename 'admin' reducer to 'adminInfluxDB'
Rename actions/admin.js to actions/influxdb.js
2017-10-31 22:15:02 -07:00
Jared Scheib 7371158117 Prefix InfluxDB actions with 'INFLUXDB_' 2017-10-31 21:35:18 -07:00
Jared Scheib e4d6f790d0 Remove console logs 2017-10-31 21:22:17 -07:00
Jared Scheib 27aa5dd108 Render Create Org button & Filter Users dropdown based on Authorization
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-31 20:37:37 -07:00
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 Paxton 10e55376f5
Merge pull request #2174 from influxdata/multitenancy_ui_role_authorization
Implement Role-based authorization UI for Viewer and Editor roles
2017-10-31 20:03:01 -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 P 73c9818c5a Fix merge conflicts 2017-10-31 18:26:54 -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
Jared Scheib 4741a18eb7 Rename chronograf/AllUsersTable to chronograf/UsersTable since serves as single-stop table 2017-10-31 15:39:23 -07:00
Jared Scheib d5979bc4b2 Add Role dropdown to All Users table that logs req'd data for now 2017-10-31 15:36:10 -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