Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « work_items_hierarchy « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c14fe67af4dec013f44d8c3e4edf36339fd954ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { __ } from '~/locale';

export const WORK_ITEMS_SURVEY_COOKIE_NAME = 'hide_work_items_hierarchy_survey';

/**
 * Hard-coded strings since we're rendering hierarchy
 * items from mock responses. Remove this when we
 * have a real hierarchy endpoint.
 */
export const LICENSE_PLAN = {
  FREE: 'free',
  PREMIUM: 'premium',
  ULTIMATE: 'ultimate',
};

export const workItemTypes = {
  EPIC: {
    title: __('Epic'),
    icon: 'epic',
    color: '#694CC0',
    backgroundColor: '#E1D8F9',
  },
  ISSUE: {
    title: __('Issue'),
    icon: 'issues',
    color: '#1068BF',
    backgroundColor: '#CBE2F9',
  },
  TASK: {
    title: __('Task'),
    icon: 'task-done',
    color: '#217645',
    backgroundColor: '#C3E6CD',
    isWorkItem: true,
  },
  INCIDENT: {
    title: __('Incident'),
    icon: 'issue-type-incident',
    backgroundColor: '#db2a0f',
    color: '#FDD4CD',
    iconSize: 16,
  },
  SUB_EPIC: {
    title: __('Child epic'),
    icon: 'epic',
    color: '#AB6100',
    backgroundColor: '#F5D9A8',
  },
  REQUIREMENT: {
    title: __('Requirement'),
    icon: 'requirements',
    color: '#0068c5',
    backgroundColor: '#c5e3fb',
  },
  TEST_CASE: {
    title: __('Test case'),
    icon: 'issue-type-test-case',
    backgroundColor: '#007a3f',
    color: '#bae8cb',
    iconSize: 16,
  },
};