Teams page replace mobx (#13219)

* creating types, actions, reducer

* load teams and store in redux

* delete team

* set search query action and tests

* Teampages page

* team members, bug in fetching team

* flattened team state, tests for TeamMembers

* test for team member selector

* team settings

* actions for group sync

* tests for team groups

* removed comment

* remove old stores

* fix: formating of datasource.go

* fix: minor changes to imports

* adding debounce and fixing issue in teamlist

* refactoring: moving types to their own files
This commit is contained in:
Peter Holmberg
2018-09-11 14:14:03 +02:00
committed by Torkel Ödegaard
parent 1ce9001141
commit 9f73f13091
42 changed files with 2493 additions and 595 deletions

View File

@@ -1,3 +1,4 @@
import { updateLocation } from './location';
import { updateNavIndex, UpdateNavIndexAction } from './navModel';
export { updateLocation };
export { updateLocation, updateNavIndex, UpdateNavIndexAction };

View File

@@ -1,13 +1,17 @@
export type Action = UpdateNavIndexAction;
import { NavModelItem } from '../../types';
// this action is not used yet
// kind of just a placeholder, will be need for dynamic pages
// like datasource edit, teams edit page
export interface UpdateNavIndexAction {
type: 'UPDATE_NAV_INDEX';
export enum ActionTypes {
UpdateNavIndex = 'UPDATE_NAV_INDEX',
}
export const updateNavIndex = (): UpdateNavIndexAction => ({
type: 'UPDATE_NAV_INDEX',
export type Action = UpdateNavIndexAction;
export interface UpdateNavIndexAction {
type: ActionTypes.UpdateNavIndex;
payload: NavModelItem;
}
export const updateNavIndex = (item: NavModelItem): UpdateNavIndexAction => ({
type: ActionTypes.UpdateNavIndex,
payload: item,
});