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
Uchechukwu Obasi
d03aef1951
SelectOrgPage: migrate API function calls to Redux ( #43133 )
...
* SelectOrgPage: migrate API function calls to Redux
* used a much better approach
* writes test for getUserOrganizations action
* writes test for userOrganizationsLoaded reducer
* change userOrg to plural
2021-12-16 09:57:18 +01:00
Uchechukwu Obasi
f16696a069
Orgs: move redirection logic to components ( #43160 )
...
* Orgs: move redirection logic to components
* removes error notification since it's been handled under the hood
2021-12-15 17:15:16 +01:00
Uchechukwu Obasi
ea71dafbfb
Orgs: move duplicate API calls to Redux ( #43030 )
...
* WIP: move user/using api call to redux
* WIP: use redux instead in NewOrgPage component
* moved all the createOrg logic into redux
* type the redux state and action creators automatically
* adds test for setUserOrganization thunk
* update selectOrgPage to use Redux instead
* removes unnecessary dispatch call
2021-12-15 09:42:52 +01:00
Torkel Ödegaard
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
Jake Krammer
bf3dcc809d
Admin: Fix updating organization name not updating configuration subtitle ( #26315 )
...
* Fix updating organization name not updating configuration subtitle
* PR feedback: Remove unnecessary square brackets
* Refactor code to update redux state in a safer way, add org action test
* Refactor updateConfigurationSubtitle test, remove jest.mock usage
* Consolidate dependency type
2020-08-07 09:00:44 +02: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
Ryan McKinley
96ba32d0c8
Add a @grafana/runtime package with backendSrv interface ( #16533 )
...
grafana-runtime/tsconfig.json imports query to avoid a build error ¯\_(ツ)_/¯
2019-06-03 17:55:59 +02:00
Torkel Ödegaard
e0b760e08e
Chore: No implict any fixes ( #17020 )
2019-05-13 09:38:19 +02:00
Mario Trangoni
ab9f65a4cf
public/app/features/*: Fix some misspell issues
2018-12-05 13:08:00 +01:00
Torkel Ödegaard
cf0db51659
Trying to reduce the amount of duplication with preferences
2018-11-15 13:37:29 +01:00
Torkel Ödegaard
99d0beeaa9
reload page after preferences update
2018-10-31 12:18:19 -07:00
Peter Holmberg
58e94fc0fa
moved state
2018-10-30 13:09:59 +01:00
Peter Holmberg
12a63b605f
rename type
2018-10-29 16:01:14 +01:00
Peter Holmberg
70f6100d53
fixed type
2018-10-29 15:08:36 +01:00
Peter Holmberg
ccbff592d2
adding default value and update actions
2018-10-26 14:51:33 +02:00
Peter Holmberg
affb04a3ce
moved state to redux, renamed entities
2018-10-26 14:15:37 +02:00
Peter Holmberg
a98f7e548f
simple select
2018-10-25 16:56:49 +02:00
Peter Holmberg
1f8b61f9a6
load preferences
2018-10-25 07:45:22 +02:00