Alex P
f8fcd7a459
Use a more clear variable name
2017-11-07 17:18:06 -08:00
Alex P
01cd018ea5
Use semantic opposite to increase clarity
2017-11-07 17:17:12 -08:00
Alex P
69118ad628
Use simpler names for state in NewUsersTableRow
2017-11-07 17:16:18 -08:00
Alex P
c1e20b20e2
Explain purpose of component with comment
2017-11-07 17:07:44 -08:00
Alex P
05c8af5f75
Use Link component in UserNavBlock instead of anchor
2017-11-07 16:31:00 -08:00
Alex P
4dd14d6a5b
Render Manage Organizations link based on Authorization
2017-11-07 12:01:31 -08:00
Alex P
b69c066b00
Link to organizations page from user nav item
2017-11-07 11:58:35 -08:00
Alex P
4c4b0da5bb
Create route for organizations page
2017-11-07 11:58:20 -08:00
Alex P
38e0eeacf3
Introduce Organizations page
...
Same functionality as the Manage Organizations modal, just in its own
page
2017-11-07 11:54:44 -08:00
Alex P
ae863d9170
Re-arrange items in me nav item
2017-11-07 11:37:32 -08:00
Alex P
f6916d5f83
Move user nav item to top of side nav
...
Needs more vertical space than the other items
2017-11-07 11:36:56 -08:00
Alex P
5a33a958c9
Create skeleton for Purgatory page
2017-11-07 00:46:36 -08:00
Alex P
cd5483636a
Make chronograf admin table dropdowns appear like plaintext until hover
2017-11-06 15:40:09 -08:00
Alex P
bb3344e49f
Increase vertical padding on new user row cells
2017-11-06 13:41:19 -08:00
Alex P
efaa7e2afb
Change micro copy to be more of a Call to Action and less long
2017-11-06 12:46:54 -08:00
Alex P
e6d64b2200
Refactor CreateUserOverlay into NewUserTableRow to be consistent with primary table item creation pattern
2017-11-06 12:39:32 -08:00
Alex P
295762f646
Move Create User button closer to Users Table
2017-11-06 09:17:51 -08:00
Alex P
7e80e638dc
Replace super admin dropdown with slide toggle
2017-11-04 12:36:23 -07:00
Alex P
92e07ffd1f
Introduce SlideToggle Component
2017-11-04 12:35:47 -07:00
Alex P
bd2ec2a859
Make manage orgs overlay scrollable when there are many orgs
2017-11-04 12:34:19 -07:00
Jared Scheib
b77a1a39a2
Multitenancy is reeaaaaaaaalll!!!
...
Go to limbo if you're not authorized!
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-03 16:46:16 -07:00
Michael de Sa
1caa931860
Stop console from whining about null initializing propTypes
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:41:48 -07:00
Michael de Sa
b677aa0d50
Allow diff replaceWith component if not using auth in Authorized HOC
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:31:32 -07:00
Alex P
1ff3bd2a28
Make separate non-editable component for Default Org
2017-11-03 12:08:27 -07:00
Jared Scheib
6a0f8d61a2
Fix failing Me test by splitting Me actions by whether using auth
2017-11-03 09:40:47 -07:00
Jared Scheib
be24ccfe58
Import all role name constants in dummy data & fix missing MEMBER_ROLE
2017-11-03 09:38:13 -07:00
Jared Scheib
62de6310ca
Set me role in redux based on current organization
2017-11-03 08:17:04 -07:00
Jared Scheib
f2060d6c28
Wire up change current organization
2017-11-03 07:53:07 -07:00
Jared Scheib
335bb17005
Populate UserNavBlock with real user orgs & roles data
2017-11-03 07:08:04 -07:00
Jared Scheib
c8589849e9
Pass full links response into SideNav & down to UserNavBlock
2017-11-03 06:46:59 -07:00
Jared Scheib
59ca4e2c9e
Fix regression of custom links no longer opening in diff browser tab
2017-11-03 05:28:33 -07:00
Jared Scheib
4f235a3141
Remove org change dropdown from OrgTable view - only show org name
...
This clarifies the UX from within an Organization view. It was
confusing to be able to change a user's organization to another
while in a specific one's view.
This also passes organization obj down to OrgTable.
2017-11-03 05:23:25 -07:00
Jared Scheib
66c42aca9e
Wire up update superadmin status
2017-11-03 04:59:26 -07:00
Jared Scheib
7d7fcde6ba
Wire up update user role
2017-11-03 04:30:06 -07:00
Jared Scheib
08fa16e1af
Show current organization in CreateUserOverlay
2017-11-03 04:13:16 -07:00
Jared Scheib
db753563a2
Make order of create user options consistent with table
...
Only show Role selector if Organization is selected.
2017-11-03 04:13:16 -07:00
Jared Scheib
4d2a7132d8
Fix disable Create user button if required fields empty
2017-11-03 04:13:16 -07:00
Jared Scheib
60da04e217
Ensure in client that created user roles include member of default org
2017-11-03 04:13:06 -07:00
Jared Scheib
015d982e0c
Fix superAdmin bool display; refactor & clean up copy
2017-11-03 03:34:11 -07:00
Jared Scheib
032e036876
Wire up individual add user to org dropdown in Chronograf users table
2017-11-03 03:25:19 -07:00
Jared Scheib
77ebd593c3
Simplify & fix user org add & remove, and provide server errors
2017-11-03 02:47:02 -07:00
Jared Scheib
192fb9b877
Clarify 'Add to organization' copy on dropdown when no roles
2017-11-03 02:40:07 -07:00
Jared Scheib
30aa9883df
Derive num users selected from array length
2017-11-03 02:09:21 -07:00
Jared Scheib
a70fc766f2
Wire up remove user from organization
2017-11-03 02:08:19 -07:00
Jared Scheib
e4dae04859
Publish notification upon successful Update of Chronograf user
2017-11-03 02:07:25 -07:00
Jared Scheib
43f8f1d590
Fix org link & filtering by passing whole org object around
...
Does not fix the double-click bug introduced in c8f1cf1, which
is probably due to an unloaded curry on first click.
2017-11-03 01:19:42 -07:00
Jared Scheib
0115c9dc7a
Wire up updateUser in Chronograf admin via batch action bar
...
Change function names to more clearly expression that organizations
are being added and removed from users.
2017-11-03 00:24:47 -07:00
Jared Scheib
fcbaa1cbe1
Add action creator, thunk, reducer, & api for updating Chronograf uesr
2017-11-02 23:58:43 -07:00
Jared Scheib
040ddf4d9d
Wire up rename organization
2017-11-02 23:26:33 -07:00
Jared Scheib
19cdea74e7
Hide SuperAdmin table row cells if user is not superadmin
2017-11-02 23:26:33 -07:00
Jared Scheib
f21da96bce
Clean up console & comment orgs lacking id on optimistic update
2017-11-02 23:26:33 -07:00
Jared Scheib
d2e9f588a5
Reorder & comment action groups in Chronograf admin page file
...
Also create a delete method for a single user and have batch
delegate to that.
2017-11-02 23:26:29 -07:00
Jared Scheib
a19d000d2a
Disable trash icon if default org to prevent delete
2017-11-02 21:01:58 -07:00
Jared Scheib
cc3946ed16
Wire up delete organization
2017-11-02 20:56:39 -07:00
Jared Scheib
2f8e756155
Wire up create organization
...
Adds action creators & reducers for add, sync, & remove.
2017-11-02 20:44:37 -07:00
Jared Scheib
2152254a80
Wire up delete user for a single user via batch actions bar
2017-11-02 20:28:08 -07:00
Jared Scheib
6d3b0841c5
Fix CHRONOGRAF_REMOVE_USER to match via equal fields, not links
...
Refactor isSameUser into helper func for use across files
2017-11-02 20:02:50 -07:00
Jared Scheib
bd3f87611d
Rename deleteUser to removeUser since local state change in redux
2017-11-02 20:00:51 -07:00
Jared Scheib
5f0f353a85
Simplify bind all action creators in Chronograf admin
2017-11-02 19:42:29 -07:00
Jared Scheib
78e8ef4988
Wire up create user in Chronograf admin
2017-11-02 19:08:21 -07:00
Jared Scheib
1d05ccbe75
Get organizations from server to populate Chronograf Admin dropdown
...
Get & use chronograf/v1/organizations from server links
2017-11-02 17:47:14 -07:00
Jared Scheib
a6d65b0311
Get & use chronograf/v1/users from server links
2017-11-02 16:48:27 -07:00
Jared Scheib
237efc50f7
Update shape of currentOrganization to org object
2017-11-02 16:22:25 -07:00
Alex P
bb13b4f664
Add functional UI skeleton for Create User for admin & superadmin
...
Plan is to replace with "New Row" pattern soon
2017-11-02 16:05:06 -07:00
Alex P
5fa7260ebd
Implement overlay UI to handle CRUD operations for Organizations
2017-11-02 14:57:03 -07:00
Alex P
1ed28bfa57
Create empty state for chronograf admin table
2017-11-02 11:31:25 -07:00
Alex P
16a5bb99df
Create dropdown for SuperAdmin status in super admin table view
2017-11-02 11:11:26 -07:00
Alex P
66feffad6b
Prevent false initial select all users checkbox state
2017-11-01 17:51:20 -07:00
Alex Paxton
a391357ce4
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
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 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