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
kay delaney
e19e934178
UserListAdminPage: Reset page when changing filters ( #47958 )
2022-04-20 16:02:33 +01:00
renovate[bot]
d87cd6f26c
Update dependency prettier to v2.5.1 ( #43473 )
...
* Update dependency prettier to v2.5.1
* prettier fixes
* chore(toolkit): bump prettier to 2.5.1
* style(eslint): bump grafana config to 2.5.2 in core and toolkit
* style(mssql-datasource): fix no-inferrable-types eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
Alex Khomenko
b5f39637d4
Admin: Enable extending filters ( #39825 )
...
* Setup extensible filters
* Fix test
* Handle filter as array
* Add className
* Abstract getFilters
* Make docs link external
* Use underline for links in tooltips instead of link color
Co-authored-by: Selene <selenepinillos@gmail.com>
2021-10-07 17:41:52 +03:00
Alex Khomenko
ea8d9d77f4
Admin: User list tweaks ( #38750 )
...
* Setup filter
* Enable filtering users by active in last 30 days
* Add loading state
* Update last active age strings
* Tweak user list
* Use theme spacing
* Improve table's accessibility
* Add more aria-labels
2021-09-01 16:53:58 +03:00
kay delaney
0f81703c35
Chore: Fix more strict typescript errors ( #35514 )
2021-06-14 15:13:48 +01:00
Harrison Shoff
e63028e8c6
AdminUsers: reset page to zero on query change ( #26293 )
2020-07-13 20:01:48 +02:00
Hugo Häggmark
044bea0935
Chore: Fixes various strict null errors ( #21763 )
...
* Chore: Removes strict null checks in ReducerTester
* Chore: Fixes strict null errors in ConfigureStore
* Chore: Fixes strict null errors in reducer tests
* Chore: Fixes strict null errors in reducers tests
* Chore: Fixes strict null errors in reducers tests
* Chore: Fixes strict null errors in toggleLogActionsMiddleware
* Chore: Fixes strict null errors in navModelReducer
* Core: Fixes strict null errors in public/app/features/admin/state
* Chore: Fixes strict null errors in public/app/features/dashboard/state/reducers.test.ts
* Chore: Fixes strict null errors in public/app/features/explore/state/reducers.test.ts
* Chore: Fixes strict null errors in public/app/features/datasources/state/reducers.test.ts
* Chore: Fixes strict null errors in public/e2e-test/scenarios/templating/templatevariables-crud.test.ts
* Chore: Fixes strict null errors in public/app/features/dashboard/containers/DashboardPage.test.tsx
2020-01-28 09:13:56 +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
Hugo Häggmark
4f0fa776be
Chore: Migrates reducers and actions to Redux Toolkit ( #21287 )
...
* Refactor: Adds Redux Toolkit package
* Refactor: Uses configureStore from Redux Toolkit
* Refactor: Migrates applicationReducer
* Refactor: Migrates appNotificationsReducer
* Refactor: Migrates locationReducer
* Refactor: Migrates navModelReducer
* Refactor: Migrates teamsReducer and teamReducer
* Refactor: Migrates cleanUpAction
* Refactor: Migrates alertRulesReducer
* Refactor: Cleans up recursiveCleanState
* Refactor: Switched to Angular compatible reducers
* Refactor: Migrates folderReducer
* Refactor: Migrates dashboardReducer
* Migrates panelEditorReducer
* Refactor: Migrates dataSourcesReducer
* Refactor: Migrates usersReducer
* Refactor: Migrates organizationReducer
* Refactor: Migrates pluginsReducer
* Refactor: Migrates ldapReducer and ldapUserReducer
* Refactor: Migrates apiKeysReducer
* Refactor: Migrates exploreReducer and itemReducer
* Refactor: Removes actionCreatorFactory and reducerFactory
* Refactor: Moves mocks to test section
* Docs: Removes sections about home grown framework
* Update contribute/style-guides/redux.md
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Refactor: Cleans up some code
* Refactor: Adds state typings
* Refactor: Cleans up typings
* Refactor: Adds comment about ImmerJs autoFreeze
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-01-13 08:03:22 +01:00
Peter Holmberg
3c61b563c3
Ldap: Add LDAP debug page ( #18759 )
...
* Add items for navmodel and basic page
* add reducer and actions
* adding user mapping table component
* adding components for ldap tables
* add alert box on error
* close error alert box
* LDAP status page: connect APIs WIP
* LDAP debug: fetch connection status from API
* LDAP debug: fetch user info from API
* LDAP debug: improve connection error view
* LDAP debug: connection error tweaks
* LDAP debug: fix role mapping view
* LDAP debug: role mapping view tweaks
* LDAP debug: add bulk-sync button stub
* LDAP debug: minor refactor
* LDAP debug: show user teams
* LDAP debug: user info refactor
* LDAP debug: initial user page
* LDAP debug: minor refactor, remove unused angular wrapper
* LDAP debug: add sessions to user page
* LDAP debug: tweak user page
* LDAP debug: tweak view for disabled user
* LDAP debug: get sync info from API
* LDAP debug: user sync info
* LDAP debug: sync user button
* LDAP debug: clear error on page load
* LDAP debug: add user last sync info
* LDAP debug: actions refactor
* LDAP debug: roles and teams style tweaks
* Pass showAttributeMapping to LdapUserTeams
* LDAP debug: hide bulk sync button
* LDAP debug: refactor sessions component
* LDAP debug: fix loading user sessions
* LDAP debug: hide sync user button
* LDAP debug: fix fetching unavailable /ldap-sync-status endpoint
* LDAP debug: revert accidentally added fix
* LDAP debug: show error when LDAP is not enabled
* LDAP debug: refactor, move ldap components into ldap/ folder
* LDAP debug: styles refactoring
* LDAP debug: ldap reducer tests
* LDAP debug: ldap user reducer tests
* LDAP debug: fix connection error placement
* Text update
* LdapUser: Minor UI changes moving things around
* AlertBox: Removed icon-on-top as everywhere else it is centered, want to have it be consistent
2019-09-16 18:56:01 +03:00