Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
J Guerreiro
056e143664
AccessControl: Present user edit actions according to AC metadata ( #43602 )
...
* AccessControl: Add user metadata to user detail view
* AccessControl: Do not present delete or disable buttons based on ac metadata in admin/users
* AccessControl: do not allow password changing or user editing without permission
* AccessControl: Fetch global:users scope for admin
* AccessControl: optimize org.user metadata fetch
* Chore: early return if ac metadata is not available
2022-01-05 09:59:17 +01:00
kay delaney
c8b7373016
A11y/UserAdminPage: Improves tab navigation and focus management ( #41321 )
2021-11-05 14:45:00 +00:00
kay delaney
3c5003373c
A11y: Fix various fastpass accessibility issues ( #41154 )
2021-11-02 15:27:07 +00:00
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
Hugo Häggmark
34b4f7c717
Chore: Reduces strict errors ( #33012 )
...
* Chore: reduces strict error in OptionPicker tests
* Chore: reduces strict errors in FormDropdownCtrl
* Chore: reduces has no initializer and is not definitely assigned in the constructor errors
* Chore: reduces has no initializer and is not definitely assigned in the constructor errors
* Chore: lowers strict count limit
* Tests: updates snapshots
* Tests: updates snapshots
* Chore: updates after PR comments
* Refactor: removes throw and changes signature for DashboardSrv.getCurrent
2021-04-15 14:21:06 +02: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
Dominik Prokop
8de606aa22
Various 7.0 UI tweaks ( #23972 )
...
* Set min height of panel pane to 200px
* Disable badge on viz picker when item is in disabled in search results
* Fix UserProfile inputs width
* Remove select caret in user admin permissions editor
* fix 23911
2020-04-27 23:28:24 +02:00
Tobias Skarhed
9bbc007cb9
Input: Width prop ( #23615 )
...
* Add width property
* Remove unused import
* Spelling mistake
* Add width to interface
* Make width optional
* Remove size
* Update snapshot
* Remove size from places
* Add size prop for button
* Update width
* Update snapshots
2020-04-21 10:42:57 +02:00
Alexander Zobnin
4d81cec34f
Admin: Fix Synced via LDAP message for non-LDAP external users ( #23477 )
...
* UserAdmin: remove Synced via LDAP message for non-LDAP users
* UserAdmin: show "Synced via <provider>" message for external users
2020-04-10 09:23:27 +03:00
Tobias Skarhed
2e58a65e8f
Forms migration: Remove Input from Forms namespace ( #23301 )
2020-04-03 10:04:19 +02:00
Tobias Skarhed
703476b3ae
Forms migration: Input namespace ( #23286 )
...
* Update exports
* Add LegacyForms namespace
* Update ci grep
2020-04-02 16:18:06 +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