complexqa_frontend_core 1.19.5 → 1.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.19.5",
3
+ "version": "1.19.6",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,6 +32,47 @@ function build_test_run_result_listing_columns(locale, { include_select = true }
32
32
  }
33
33
 
34
34
 
35
+ /**
36
+ * Колонки выбора результатов прогона (диалог связывания на bug/details).
37
+ * Без чекбокса, goto и completed_at; title шире listing на 50px.
38
+ *
39
+ * @param {string} locale
40
+ * @returns {import('../../../types/family_service/typeTableColumn.js').typeTableColumn[]}
41
+ */
42
+ function build_test_run_result_picker_columns(locale)
43
+ {
44
+ const model = new typeTestRunResult();
45
+
46
+ return [
47
+ createColumn(model, locale, 'test_case_id.test_case_title', {
48
+ header_field : 'test_case_title',
49
+ header_element_type : 'test_case',
50
+ width : '530',
51
+ is_editable : false,
52
+ is_required : true,
53
+ is_sortable : false,
54
+ is_filter : false,
55
+ }),
56
+ createColumn(model, locale, 'assigned_to', {
57
+ width : '220',
58
+ is_editable : false,
59
+ is_required : true,
60
+ is_sortable : false,
61
+ is_filter : false,
62
+ }),
63
+ createColumn(model, locale, 'created_at', { width: '170', is_required: true, is_sortable: false, is_filter: false }),
64
+ createColumn(model, locale, 'updated_at', { width: '170', is_required: true, is_sortable: false, is_filter: false }),
65
+ createColumn(model, locale, 'test_result_status', {
66
+ width : '150',
67
+ is_editable : false,
68
+ is_required : true,
69
+ is_sortable : false,
70
+ is_filter : false,
71
+ }),
72
+ ];
73
+ }
74
+
75
+
35
76
  function build_test_run_result_todo_columns(locale)
36
77
  {
37
78
  const model = new typeTestRunResult();
@@ -76,7 +117,7 @@ function build_test_run_result_details_columns(locale)
76
117
 
77
118
 
78
119
  /**
79
- * Секции `test_run_result`: `listing`, `todo`, `details`, `bugs`.
120
+ * Секции `test_run_result`: `listing`, `todo`, `details`, `bugs`, `picker`.
80
121
  *
81
122
  * @param {Object<string, Object<string, { config: import('../../../types/family_service/typeTableConfiguration.js').typeTableConfiguration }>>} config
82
123
  * @returns {void}
@@ -89,6 +130,10 @@ export function bootstrap_test_run_result(config)
89
130
  for: createListingFor([ 'project_id', 'test_case_id', 'test_run_id' ]),
90
131
  });
91
132
 
133
+ registerSection(config, 'test_run_result', 'picker', build_test_run_result_picker_columns(locale), {
134
+ for: createListingFor([ 'project_id' ]),
135
+ });
136
+
92
137
  registerSection(config, 'test_run_result', 'todo', build_test_run_result_todo_columns(locale), {
93
138
  contained_element_type: 'project',
94
139
  });