This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(board): Board components added to planner
* fix(actions): add action for BoardView * feat(card): add planner card component * fix(actions): add actions for to get Board api * fix(navigation): board side panel navigation added * feat(column): add column component * fix(effects): call boardApi in getBoards Effect * fix(board): add mapper in workitem and Board * fix(board): use action to update board * fix(board): add reducer for boardColumn * fix(board): add states and reducer to board module * fix(board): add column-workItem reducer * fix(board): fix tests for board service, reducer, model * fix(reducer): add unit test for column-workitem reducer * fix(board): remove board-api-url action from boardAction * fix(workitem): add getWorkItemWithIds query to WorItemQuery * fix(board): integrate board components with action, effects and model * fix(type): using proper type for side panel context * fix(board):add drag and drop * fix(board): assign value in board effects, change type of columnIds, fix unit tests, fix column-workItem reducer * fix(board): change structure of column component * fix(css): fix linter error for css * fix(board): get workitems for each column in board query * fix(columnWorkitem/board): use switchMap, add dafault to reducer switch case * fix(board-ngrx): Board State, Actions, Effects, Reducers (#2708) * fix(states): add BoardState to app.state * fix(actions): add action for BoardView * fix(actions): add actions for to get Board api * fix(common): add optional parameter to have different key in normalization * fix(reducersBoard): add reducers for BoardView * fix(effectsBoard): add effects for boardView * fix(effects): call boardApi in getBoards Effect * fix(common): add test for nprmalize array * fix(board): add mapper in workitem and Board * fix(column-workitem): add state for column-workitem * fix(board): add reducer for boardColumn * fix(board): add states and reducer to board module * fix(board): add column-workItem reducer * fix(board): fix tests for board service, reducer, model * fix(reducer): add unit test for column-workitem reducer * fix(board): remove board-api-url action from boardAction * fix(workitem): add getWorkItemWithIds query to WorItemQuery * fix(board): assign value in board effects, change type of columnIds, fix unit tests, fix column-workItem reducer * fix(board): add default for column workItem reducer * fix(columnWorkitem): add unit test for default case * fix(card): add assignee component * fix(board): preparing board model to fetch work items * fix(board): fetch work item for board * fix(board): fetch work item bug fixed * fix(board): send patch and reorder requests * fix(board): initialize column on updateSuccess if not created * fix(tests): unit test for column workItem reducer * fix(workItem): fix workItemMapper test * fix(board): use array instead of set, update unit tests * fix(board): send array of column ids in column workitem Update action * fix(column-workitem): handled column update fail * fix(board): add quick preview to board view * fix(workitem-effect): unnecessary code is removed for column change * fix(board): add unit test for columnWorkitem actions and reduces * fix(board): board ui state added with board lockdown feature * fix(quick-preview): add condition to check if request coming from board or list * fix(quick preview): add context input to correctly redirect to detail page route * fix(card): fix child iteration name * fix(board): fix 404 error on redirect to profile * fix(customQuery): add modal component to board for custom query delete * fix(board): disable drag n drop for non-collaborators * fix(board): change username to full name * fix(field): meta state field is removed from the detail page * fix(board): add board view For iterations * fix(card): fix workitem type icon * fix(grouptype): select the default group type on load * fix(workItemUtil): check if query is present in current route or not * fix(package-lock): update package-lock.json
- Loading branch information
Showing
47 changed files
with
20,794 additions
and
5,834 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Action } from '@ngrx/store'; | ||
import { BoardState } from '../states/board.state'; | ||
|
||
export const LOCK_BOARD = '[board-ui] Lock'; | ||
export const UNLOCK_BOARD = '[board-ui] Unlock'; | ||
|
||
|
||
export class LockBoard implements Action { | ||
readonly type = LOCK_BOARD; | ||
} | ||
|
||
export class UnlockBoard implements Action { | ||
readonly type = UNLOCK_BOARD; | ||
} | ||
|
||
|
||
export type All | ||
= LockBoard | ||
| UnlockBoard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,3 @@ export type All | |
= Get | ||
| GetSuccess | ||
| GetError; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { WorkItemUI } from '../models/work-item'; | ||
import * as ColumnWorkItemActions from './column-workitem.action'; | ||
|
||
describe('Unit Test :: ColumnWorkItem Actions', () => { | ||
it('UpdateColumnWorkItem :: should create update action', () => { | ||
const payload = { | ||
workItem: {} as WorkItemUI, | ||
reorder: { | ||
workitem: {} as WorkItemUI, | ||
destinationWorkitemID: '', | ||
direction: 'above' | ||
}, | ||
prevColumnId: '' | ||
}; | ||
const action = new ColumnWorkItemActions.Update(payload); | ||
expect({...action}).toEqual({ | ||
type: ColumnWorkItemActions.UPDATE, | ||
payload: payload | ||
}); | ||
}); | ||
|
||
it('UpdateColumnWorkitemSuccess :: should create UpdateSuccess action', () => { | ||
const payload = { | ||
workItemId: '', | ||
prevColumnId: '', | ||
newColumnIds: ['', ''] | ||
}; | ||
const action = new ColumnWorkItemActions.UpdateSuccess(payload); | ||
expect({...action}).toEqual({ | ||
type: ColumnWorkItemActions.UPDATE_SUCCESS, | ||
payload: payload | ||
}); | ||
}); | ||
|
||
it('UpdateColumnWorkitemError :: should create UpdateError action', () => { | ||
const payload = { | ||
prevColumnId: '', | ||
newColumnIds: ['', ''] | ||
}; | ||
const action = new ColumnWorkItemActions.UpdateError(payload); | ||
expect({...action}).toEqual({ | ||
type: ColumnWorkItemActions.UPDATE_ERROR, | ||
payload: payload | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { Action } from '@ngrx/store'; | ||
import { WorkItemService, WorkItemUI } from './../models/work-item'; | ||
|
||
export const UPDATE = '[column workitem] Update'; | ||
export const UPDATE_SUCCESS = '[column workitem] UpdateSuccess'; | ||
export const UPDATE_ERROR = '[column workitem] UpdateError'; | ||
|
||
export class Update implements Action { | ||
payload: { | ||
workItem: WorkItemUI, | ||
reorder: { | ||
workitem: WorkItemUI, | ||
destinationWorkitemID: string, | ||
direction: string | ||
}, | ||
prevColumnId: string | ||
}; | ||
|
||
constructor(payload: { | ||
workItem: WorkItemUI, | ||
reorder: { | ||
workitem: WorkItemUI, | ||
destinationWorkitemID: string, | ||
direction: string | ||
}, | ||
prevColumnId: string | ||
}) { | ||
this.payload = payload; | ||
} | ||
readonly type = UPDATE; | ||
} | ||
|
||
export class UpdateSuccess implements Action { | ||
payload: { | ||
workItemId: string, | ||
prevColumnId: string, | ||
newColumnIds: string[] | ||
}; | ||
|
||
constructor(payload: { | ||
workItemId: string, | ||
prevColumnId: string, | ||
newColumnIds: string[] | ||
}) { | ||
this.payload = payload; | ||
} | ||
readonly type = UPDATE_SUCCESS; | ||
} | ||
|
||
export class UpdateError implements Action { | ||
payload: { | ||
prevColumnId: string, | ||
newColumnIds: string[] | ||
}; | ||
|
||
constructor(payload: { | ||
prevColumnId: string, | ||
newColumnIds: string[] | ||
}) { | ||
this.payload = payload; | ||
} | ||
readonly type = UPDATE_ERROR; | ||
} | ||
|
||
export type All | ||
= Update | ||
| UpdateSuccess | ||
| UpdateError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.