Commit Graph

5655 Commits (b771f9b53ec6ec212045280dd61815f4eed590c1)

Author SHA1 Message Date
Alex P b771f9b53e Create dropdown for SuperAdmin status in super admin table view 2017-11-02 11:11:26 -07:00
Alex P 5a082d9357 Prevent false initial select all users checkbox state 2017-11-01 17:51:20 -07:00
Alex Paxton a04d2a86b4 Render admin vs superadmin version of table based on authorization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-01 17:45:40 -07:00
Jared Scheib 6187e8dc3a 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 b432a12edd Render SuperAdmin column in Chronograf Admin Table based on Authorization 2017-11-01 16:32:01 -07:00
Alex P dafaed6531 Use separate table row components for viewing all orgs and viewing a single org 2017-11-01 16:16:26 -07:00
Alex P 4eabe22a93 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 250d5608e5 Introduce UserNavBlock component to handle authenticated user actions 2017-11-01 14:28:30 -07:00
Alex P 719c88c871 Refactor UsersTable into sub-components 2017-11-01 14:28:23 -07:00
Jared Scheib 7637c21cfd Accommodate superadmin and member roles
Add top-level redux key for me.role
2017-11-01 13:16:35 -07:00
Jared Scheib d31d9e6cf0 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 aee3c9643d Add ID, Links, all Providers, & capitalize OAuth2 in dummy User data 2017-11-01 00:06:41 -07:00
Jared Scheib bd299f121e Specify Admin.InfluxDB as test name in influxdb admin reducer 2017-10-31 22:52:52 -07:00
Jared Scheib 1c55ae512a Rename adminSpec.js to influxdbSpec.js 2017-10-31 22:44:05 -07:00
Jared Scheib 23a09f2e97 Clarify name & import of adminInfluxDB reducer 2017-10-31 22:42:31 -07:00
Jared Scheib cb4d4d3aab Rename admin/apis/index.js to admin/apis/influxdb.js 2017-10-31 22:20:03 -07:00
Jared Scheib 9725520711 Rename 'admin' reducer to 'adminInfluxDB'
Rename actions/admin.js to actions/influxdb.js
2017-10-31 22:15:02 -07:00
Jared Scheib 5f457ca673 Prefix InfluxDB actions with 'INFLUXDB_' 2017-10-31 21:35:18 -07:00
Jared Scheib bb56b0ef45 Remove console logs 2017-10-31 21:22:17 -07:00
Jared Scheib 83326ea22e 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 56416ae629 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 627e1eae9c Merge remote-tracking branch 'origin/multitenancy' into multitenancy_ui_superadmin_admin_panel 2017-10-31 20:08:12 -07:00
Alex Paxton 17561bd1d6 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 54251f7f19 Make chronograf admin table header into component 2017-10-31 20:00:43 -07:00
Alex P b8faa7525e Remove HTML placeholder for chronograf admin table filter input 2017-10-31 19:40:53 -07:00
Alex P f312a61dcc Make chronograf admin page header into stateless component 2017-10-31 19:37:00 -07:00
Alex P d733caddbf WIP Implement create organization overlay 2017-10-31 19:28:14 -07:00
Jared Scheib a0720061c8 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 48f203e33e Vertically center items within each table row 2017-10-31 18:41:37 -07:00
Alex P 13269958c0 Add margin between role and org column items 2017-10-31 18:41:24 -07:00
Alex P cc3b21087c 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 a1668f6bb4 Fix merge conflicts 2017-10-31 18:26:54 -07:00
Alex Paxton bb12e6d13c 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 6c1746b8b4 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 67f32be6ba 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 e28bf13c99 Rename chronograf/AllUsersTable to chronograf/UsersTable since serves as single-stop table 2017-10-31 17:50:12 -07:00
Jared Scheib 4bf7fafdbd Rename chronograf/AllUsersTable to chronograf/UsersTable since serves as single-stop table 2017-10-31 15:39:23 -07:00
Jared Scheib 8ad034fcef Add Role dropdown to All Users table that logs req'd data for now 2017-10-31 15:36:10 -07:00
Alex P 0fc0d7cff7 Prevent table column sizing jitter 2017-10-31 14:48:40 -07:00
Alex P cb25c9ca10 Make chronograf users table always show organizations and roles in separate columns 2017-10-31 14:13:25 -07:00
Alex P 4f4b710375 WIP Implement batch actions functionality 2017-10-31 13:18:17 -07:00
Alex P e3e96a393c Render Delete users button if users are selected 2017-10-31 10:47:37 -07:00
Alex P a680e8e7c9 Create Batch Actions bar above table 2017-10-31 10:47:04 -07:00
Alex P 39cc358c66 Make table rows selectable from name column as well as entire checkbox column 2017-10-30 23:05:39 -07:00
Alex Paxton 45e9216011 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 595a9718e8 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 c6db74f658 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 fb0bd02f5e 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 aef52ddcbb Style checkboxes in Chronograf admin page 2017-10-30 17:51:43 -07:00
Alex P 8fc20d0718 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