File tree Expand file tree Collapse file tree 11 files changed +51
-19
lines changed
work-provider/work-functions
tools/work/work-table/work-table-title-renderer Expand file tree Collapse file tree 11 files changed +51
-19
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ workflows:
75
75
filters :
76
76
branches :
77
77
only :
78
- - develop
78
+ # - develop
79
+ - qa
79
80
80
81
# Production builds are exectuted only on tagged commits to the
81
82
# master branch.
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ import * as IconSolid from '@heroicons/react/solid'
5
5
import { ReactComponent as ActiveTabTipIcon } from './activetab-tip-icon.svg'
6
6
import { ReactComponent as LogoIcon } from './logo.svg'
7
7
import { ReactComponent as TooltipArrowIcon } from './tooltip-arrow.svg'
8
- import { ReactComponent as WorkTypeDataExplorationIcon } from './work-type-data-exploration .svg'
9
- import { ReactComponent as WorkTypeUnknownIcon } from './work-type-unknown .svg'
10
- import { ReactComponent as WorkTypeWebsiteDesignIcon } from './work-type-website-design .svg'
8
+ import { ReactComponent as WorkTypeCategoryDataIcon } from './work-type-category-data .svg'
9
+ import { ReactComponent as WorkTypeCategoryDesignIcon } from './work-type-category-design .svg'
10
+ import { ReactComponent as WorkTypeCategoryUnknownIcon } from './work-type-category-unknown .svg'
11
11
12
12
export { ActiveTabTipIcon }
13
13
export { IconOutline }
14
14
export { IconSolid }
15
15
export { LogoIcon }
16
16
export { TooltipArrowIcon }
17
- export { WorkTypeDataExplorationIcon }
18
- export { WorkTypeUnknownIcon }
19
- export { WorkTypeWebsiteDesignIcon }
17
+ export { WorkTypeCategoryDataIcon }
18
+ export { WorkTypeCategoryDesignIcon }
19
+ export { WorkTypeCategoryUnknownIcon }
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ export {
4
4
} from './work.functions'
5
5
export {
6
6
type Work ,
7
+ workFactoryCreate ,
8
+ workFactoryGetStatus ,
7
9
type WorkProgress ,
8
10
type WorkProgressStep ,
9
11
WorkStatus ,
10
12
WorkType ,
11
- workFactoryCreate ,
12
- workFactoryGetStatus ,
13
+ WorkTypeCategory ,
13
14
} from './work-factory'
14
15
export {
15
16
type Challenge ,
Original file line number Diff line number Diff line change 1
1
export * from './work-progress.model'
2
2
export * from './work-progress-step.model'
3
3
export * from './work-status.enum'
4
+ export * from './work-type-category.enum'
4
5
export * from './work-type.enum'
5
6
export {
6
7
create as workFactoryCreate ,
Original file line number Diff line number Diff line change
1
+ export enum WorkTypeCategory {
2
+ data = 'Data' ,
3
+ design = 'Design' ,
4
+ dev = 'Development' ,
5
+ qa = 'QA' ,
6
+ unknown = '' ,
7
+ }
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { ChallengeStatus } from './challenge-status.enum'
15
15
import { WorkProgressStep } from './work-progress-step.model'
16
16
import { WorkProgress } from './work-progress.model'
17
17
import { WorkStatus } from './work-status.enum'
18
+ import { WorkTypeCategory } from './work-type-category.enum'
18
19
import { WorkType } from './work-type.enum'
19
20
import { Work } from './work.model'
20
21
@@ -38,6 +39,7 @@ export function create(challenge: Challenge): Work {
38
39
submittedDate,
39
40
title : challenge . name ,
40
41
type,
42
+ typeCategory : getTypeCategory ( type ) ,
41
43
}
42
44
}
43
45
@@ -231,3 +233,20 @@ function getType(challenge: Challenge): WorkType {
231
233
const output : WorkType = ! ! workTypeKey ? WorkType [ workTypeKey ] : WorkType . unknown
232
234
return output
233
235
}
236
+
237
+ function getTypeCategory ( type : WorkType ) : WorkTypeCategory {
238
+
239
+ switch ( type ) {
240
+
241
+ case WorkType . data :
242
+ case WorkType . findData :
243
+ return WorkTypeCategory . data
244
+
245
+ case WorkType . design :
246
+ return WorkTypeCategory . design
247
+
248
+ // TOOD: other categories: qa and dev
249
+ default :
250
+ return WorkTypeCategory . unknown
251
+ }
252
+ }
Original file line number Diff line number Diff line change 1
1
import { WorkProgress } from './work-progress.model'
2
2
import { WorkStatus } from './work-status.enum'
3
+ import { WorkTypeCategory } from './work-type-category.enum'
3
4
import { WorkType } from './work-type.enum'
4
5
5
6
export interface Work {
@@ -16,4 +17,5 @@ export interface Work {
16
17
submittedDate ?: Date
17
18
title : string
18
19
type : WorkType
20
+ typeCategory : WorkTypeCategory
19
21
}
You can’t perform that action at this time.
0 commit comments