Commit Graph

5702 Commits (5bb2ac1cf4fd071323cc2361160da354a40a454f)

Author SHA1 Message Date
Alex P 5bb2ac1cf4 Improve clarity of copy in manage sources page by including the current organization name 2017-11-07 01:20:52 -08:00
Alex P 9604463ae1 Render current organization name in InfluxTable header 2017-11-07 01:01:56 -08: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
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