Alexander Zobnin
a7e721e987
Access control: Make Admin/Users UI working with the permissions ( #33176 )
...
* API: authorize admin/users views
* Render admin/users components based on user's permissions
* Add LDAP permissions (required by admin/user page)
* Extend default admin role by LDAP permissions
* Show/hide LDAP debug views
* Render LDAP debug page if user has access
* Authorize LDAP debug view
* fix permissions definitions
* Add LDAP page permissions
* remove ambiguous permissions check
* Hide logout buttons in sessions table
* Add org/users permissions
* Use org permissions for managing user roles in orgs
* Apply permissions to org/users
* Apply suggestions from review
* Fix tests
* remove scopes from the frontend
* Tweaks according to review
* Handle /invites endpoints
2021-04-22 13:19:41 +03:00
Torkel Ödegaard
10badea19e
Emotion: Upgrades emotion from 10 to 11 and updates all import paths ( #32541 )
...
* Babel: Updates babel dependencies to latest version
* Emotion: Upgrade form 10 to 11
* Fixing tests
* Updated to use emotion/css instead in test
2021-04-01 14:15:23 +02:00
Diana Payton
e5027982ef
Edit admin UI text ( #32454 )
...
* Update AdminEditOrgPage.tsx
* Update AdminOrgsTable.tsx
* Update AdminSettings.tsx
* Update UserCreatePage.tsx
* Update UserLdapSyncInfo.tsx
* Update UserListAdminPage.tsx
* Update UserOrgs.tsx
* Update UserProfile.tsx
* Update UserSessions.tsx
2021-03-29 21:52:40 +02:00
Hugo Häggmark
ffd39933d4
Admin: Fixes so whole org drop down is visible when adding users to org ( #30481 )
...
* Modal: Admin: Fixes so whole org drop down is visible
* Tests: fixes failing tests
* Chore: cleans up the return type
* Chore: changes after PR comments
* Chore: changes after PR comments
2021-01-21 13:59:46 +01:00
Torkel Ödegaard
8f78b0e7bc
Chore: Fix all Typescript strict null errors ( #26204 )
...
* Chore: Fix typescript strict null errors
* Added new limit
* Fixed ts issue
* fixed tests
* trying to fix type inference
* Fixing more ts errors
* Revert tsconfig option
* Fix
* Fixed code
* More fixes
* fix tests
* Updated snapshot
* Chore: More ts strict null fixes
* More fixes in some really messed up azure config components
* More fixes, current count: 441
* 419
* More fixes
* Fixed invalid initial state in explore
* Fixing tests
* Fixed tests
* Explore fix
* More fixes
* Progress
* Sub 300
* Now at 218
* Progress
* Update
* Progress
* Updated tests
* at 159
* fixed tests
* Progress
* YAy blow 100! at 94
* 10,9,8,7,6,5,4,3,2,1... lift off
* Fixed tests
* Fixed more type errors
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2020-07-10 12:46:59 +02:00
Tobias Skarhed
f15593684a
Form migrations: Last components from Forms namespace ( #23556 )
...
* Migrate RadioButtonGroup
* Migrate Label
* Migrate Form
* Migrate Field
* Missing Form import
* Migrate InputControl
* Migrate Checkbox
* Move InputControl and uncomment
* Fix small issues
* inor fix
* Fix import
* Fix stuff
2020-04-14 18:52:56 +02:00
Torkel Ödegaard
1ba8f1647e
Theme: Refactoring theme colors variables ( #23513 )
...
* Theme: Typography updates
* Updated
* Updated snapshot
* Renamed colors to palette
* Introduce colors namespace
* Massive theme color move
* Removing color selection logic with more abstract concepts
* Updates
* Minor sidemenu change
2020-04-12 15:05:49 +02:00
Tobias Skarhed
69259d62a0
Forms migration: User edit ( #23110 )
...
* Forms for UserProfile
* Migrate to new Form styles
* Add remove icon
* Remove unused import
* Update public/app/features/admin/UserOrgs.tsx
* Remove comment
* Remove icon and add text
* Make every ButtonGroup unique - regardless of values
* Remove visual glitch etc.
* Fic failing typecheck
2020-04-01 17:36:08 +02:00
Tobias Skarhed
5cdb8f8e44
Form Migrations: Button ( #23019 )
...
* Update legacy exports and fix Type errors
* Remove Button and LinkButton from Forms namespace
* Fix errors
* Update snapshots
* Move Legacy button
* Migrate more Buttons
* Remove legacy button dependency
* Move button up
* Remove legacy button
* Update Snapshots
* Fix ComponentSize issues
* Switch primary button
* Switch primary
* Add classNames and fix some angular directive issues
* Fix failing build and remove log
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-03-26 11:50:27 +01:00
Alexander Zobnin
8505d90768
Admin: New Admin User page ( #20498 )
...
* admin: user page to react WIP
* admin user page: basic view
* admin user page: refactor, extract orgs and permissions components
* admin user: change sessions actions styles
* admin user: add disable button
* user admin: add change grafana admin action
* user admin: able to change org role and remove org
* user admin: confirm force logout
* user admin: change org button style
* user admin: add confirm modals for critical actions
* user admin: lock down ldap user info
* user admin: align with latest design changes
* user admin: add LDAP sync
* admin user: confirm button
* user admin: add to org modal
* user admin: fix ConfirmButton story
* admin user: handle grafana admin change
* ConfirmButton: make styled component
* ConfirmButton: completely styled component
* User Admin: permissions section refactor
* admin user: refactor (orgs and sessions)
* ConfirmButton: able to set confirm variant
* admin user: inline org removal
* admin user: show ldap sync info only for ldap users
* admin user: edit profile
* ConfirmButton: some fixes after review
* Chore: fix storybook build
* admin user: rename handlers
* admin user: remove LdapUserPage import from routes
* Chore: fix ConfirmButton tests
* Chore: fix user api endpoint tests
* Chore: update failed test snapshots
* admin user: redux actions WIP
* admin user: use new ConfirmModal component for user profile
* admin user: use new ConfirmModal component for sessions
* admin user: use lockMessage
* ConfirmButton: use primary button as default
* admin user: fix ActionButton color
* UI: use Icon component for Modal
* UI: refactor ConfirmModal after Modal changes
* UI: add link button variant
* UI: able to use custom ConfirmButton
* Chore: fix type errors after ConfirmButton refactor
* Chore: revert Graph component changes (works with TS 3.7)
* Chore: use Forms.Button instead of ActionButton
* admin user: align items
* admin user: align add to org modal
* UI: organization picker component
* admin user: use org picker for AddToOrgModal
* admin user: org actions
* admin user: connect sessions actions
* admin user: updateUserPermissions action
* admin user: enable delete user action
* admin user: sync ldap user
* Chore: refactor, remove unused code
* Chore: refactor, move api calls to actions
* admin user: set user password action
* Chore: refactor, remove unused components
* admin user: set input focus on edit
* admin user: pass user into debug LDAP mapping
* UserAdminPage: Ux changes
* UserAdminPage: align buttons to the left
* UserAdminPage: align delete user button
* UserAdminPage: swap add to org modal buttons
* UserAdminPage: set password field to empty when editing
* UserAdminPage: fix tests
* Updated button border
* Chore: fix ConfirmButton after changes introduced in #21092
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-01-13 17:10:19 +01:00