@spotify/backstage-plugin-pulse-common 0.8.0 → 0.10.0
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/CHANGELOG.md +28 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.d.ts +75 -71
- package/dist/index.esm.js +19 -19
- package/package.json +9 -5
- package/src/templates/schema/survey-template-schema.json +30 -52
- package/src/templates/surveys/pulse-default-alpha.yaml +147 -140
|
@@ -113,12 +113,9 @@
|
|
|
113
113
|
"type": "string",
|
|
114
114
|
"description": "An optional boolean expression that decides if the surveyee should see the questions in this section."
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"type": "
|
|
118
|
-
"description": "
|
|
119
|
-
"items": {
|
|
120
|
-
"$ref": "#/$defs/question"
|
|
121
|
-
}
|
|
116
|
+
"hide_progress_bar": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"description": "When set, the survey progress bar will not be shown during this section."
|
|
122
119
|
},
|
|
123
120
|
"pages": {
|
|
124
121
|
"type": "array",
|
|
@@ -129,15 +126,7 @@
|
|
|
129
126
|
}
|
|
130
127
|
},
|
|
131
128
|
"additionalProperties": false,
|
|
132
|
-
"required": ["id", "name"]
|
|
133
|
-
"oneOf": [
|
|
134
|
-
{
|
|
135
|
-
"required": ["questions"]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"required": ["pages"]
|
|
139
|
-
}
|
|
140
|
-
]
|
|
129
|
+
"required": ["id", "name", "pages"]
|
|
141
130
|
},
|
|
142
131
|
"page": {
|
|
143
132
|
"type": "object",
|
|
@@ -165,10 +154,6 @@
|
|
|
165
154
|
"type": "string",
|
|
166
155
|
"description": "The question description, in markdown"
|
|
167
156
|
},
|
|
168
|
-
"text_html": {
|
|
169
|
-
"type": "string",
|
|
170
|
-
"description": "The question description, in HTML"
|
|
171
|
-
},
|
|
172
157
|
"type": {
|
|
173
158
|
"type": "string",
|
|
174
159
|
"enum": [
|
|
@@ -191,10 +176,6 @@
|
|
|
191
176
|
"type": "string",
|
|
192
177
|
"description": "A boolean expression with logic if this question should be displayed or not"
|
|
193
178
|
},
|
|
194
|
-
"display_logic_in_page": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"description": "Similar to display_logic, but enables the question to appear on the same page as the depending question"
|
|
197
|
-
},
|
|
198
179
|
"required": {
|
|
199
180
|
"type": "string",
|
|
200
181
|
"enum": ["required", "optional", "request"],
|
|
@@ -224,7 +205,7 @@
|
|
|
224
205
|
"dynamic_statements": {
|
|
225
206
|
"type": "string",
|
|
226
207
|
"description": "Carry forward statements from a previous question",
|
|
227
|
-
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*/(all|selected|all_entered_text|selected_entered_text|not_selected|
|
|
208
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*/(all|selected|all_entered_text|selected_entered_text|not_selected|for_matrix_choice\\([\\-a-zA-Z0-9_]+\\)|unselected_for_matrix_choice\\([\\-a-zA-Z0-9_]+\\))$"
|
|
228
209
|
},
|
|
229
210
|
"statement_groups": {
|
|
230
211
|
"type": "array",
|
|
@@ -266,7 +247,7 @@
|
|
|
266
247
|
"dynamic_choices": {
|
|
267
248
|
"type": "string",
|
|
268
249
|
"description": "Carry forward choices from a previous question",
|
|
269
|
-
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*/(all|selected|all_entered_text|selected_entered_text|not_selected|
|
|
250
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_]*/(all|selected|all_entered_text|selected_entered_text|not_selected|for_matrix_choice\\([\\-a-zA-Z0-9_]+\\)|unselected_for_matrix_choice\\([\\-a-zA-Z0-9_]+\\))$"
|
|
270
251
|
},
|
|
271
252
|
"choice_groups": {
|
|
272
253
|
"type": "array",
|
|
@@ -301,38 +282,35 @@
|
|
|
301
282
|
},
|
|
302
283
|
"randomization": {
|
|
303
284
|
"$ref": "#/$defs/randomization"
|
|
285
|
+
},
|
|
286
|
+
"configuration": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"properties": {
|
|
289
|
+
"choice_column_width_pixels": {
|
|
290
|
+
"type": "integer",
|
|
291
|
+
"description": "Size of the column with the choice descriptions in a matrix question"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"additionalProperties": false
|
|
304
295
|
}
|
|
305
296
|
},
|
|
306
297
|
"additionalProperties": false,
|
|
307
|
-
"
|
|
298
|
+
"required": ["text"],
|
|
299
|
+
"oneOf": [
|
|
308
300
|
{
|
|
309
|
-
"
|
|
310
|
-
{
|
|
311
|
-
"required": ["text"]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"required": ["text_html"]
|
|
315
|
-
}
|
|
316
|
-
]
|
|
301
|
+
"$ref": "#/$defs/question-mc-horizontal"
|
|
317
302
|
},
|
|
318
303
|
{
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
{
|
|
330
|
-
"$ref": "#/$defs/question-text"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"$ref": "#/$defs/question-description"
|
|
334
|
-
}
|
|
335
|
-
]
|
|
304
|
+
"$ref": "#/$defs/question-mc-vertical"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"$ref": "#/$defs/question-matrix"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"$ref": "#/$defs/question-text"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"$ref": "#/$defs/question-description"
|
|
336
314
|
}
|
|
337
315
|
]
|
|
338
316
|
},
|
|
@@ -574,7 +552,7 @@
|
|
|
574
552
|
"type": "string",
|
|
575
553
|
"description": "A boolean expression determining if the choice should be displayed"
|
|
576
554
|
},
|
|
577
|
-
"
|
|
555
|
+
"text_input": {
|
|
578
556
|
"type": "string",
|
|
579
557
|
"enum": ["no", "optional", "forced"],
|
|
580
558
|
"description": "If a textbox should appear next to the choice, and if it should be mandatory to fill it in if the choice is selected"
|
|
@@ -10,161 +10,168 @@ parameters: []
|
|
|
10
10
|
sections:
|
|
11
11
|
- id: welcome
|
|
12
12
|
name: Welcome
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
pages:
|
|
14
|
+
- questions:
|
|
15
|
+
- text: |
|
|
16
|
+
This survey checks the Pulse of your engineering organization.
|
|
17
|
+
All submissions are anonymized and aggregated before results are shared. The results will be available on the Pulse results page after the survey results have been published.
|
|
18
|
+
Please consider your last three months at the organization when responding to the survey.
|
|
18
19
|
|
|
19
20
|
- id: productivity
|
|
20
21
|
name: Productivity
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
pages:
|
|
23
|
+
- questions:
|
|
24
|
+
- id: work_productivity
|
|
25
|
+
text: In general, how would you describe your ability to be productive at work?
|
|
26
|
+
type: mc-single
|
|
27
|
+
layout: horizontal
|
|
28
|
+
required: optional
|
|
29
|
+
choices:
|
|
30
|
+
- display: I feel very unproductive
|
|
31
|
+
value: -2
|
|
32
|
+
- display: I feel somewhat unproductive
|
|
33
|
+
value: -1
|
|
34
|
+
- display: Neutral
|
|
35
|
+
value: 0
|
|
36
|
+
- display: I feel somewhat productive
|
|
37
|
+
value: 1
|
|
38
|
+
- display: I feel very productive
|
|
39
|
+
value: 2
|
|
38
40
|
|
|
39
41
|
- id: satisfaction
|
|
40
42
|
name: Satisfaction
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
43
|
+
pages:
|
|
44
|
+
- questions:
|
|
45
|
+
- id: task_satisfaction
|
|
46
|
+
text: In general, how satisfied are you with the tasks you do at work?
|
|
47
|
+
type: mc-single
|
|
48
|
+
layout: horizontal
|
|
49
|
+
required: optional
|
|
50
|
+
choices:
|
|
51
|
+
- display: Very dissatisfied
|
|
52
|
+
value: -2
|
|
53
|
+
- display: Somewhat dissatisfied
|
|
54
|
+
value: -1
|
|
55
|
+
- display: Neutral
|
|
56
|
+
value: 0
|
|
57
|
+
- display: Somewhat satisfied
|
|
58
|
+
value: 1
|
|
59
|
+
- display: Very satisfied
|
|
60
|
+
value: 2
|
|
61
|
+
- id: tool_satisfaction
|
|
62
|
+
text: How satisfied are you with the tools that are available for you to do your work?
|
|
63
|
+
type: mc-single
|
|
64
|
+
layout: horizontal
|
|
65
|
+
required: optional
|
|
66
|
+
choices:
|
|
67
|
+
- display: Very dissatisfied
|
|
68
|
+
value: -2
|
|
69
|
+
- display: Somewhat dissatisfied
|
|
70
|
+
value: -1
|
|
71
|
+
- display: Neutral
|
|
72
|
+
value: 0
|
|
73
|
+
- display: Somewhat satisfied
|
|
74
|
+
value: 1
|
|
75
|
+
- display: Very satisfied
|
|
76
|
+
value: 2
|
|
74
77
|
|
|
75
78
|
- id: achieving_flow
|
|
76
79
|
name: Achieving flow
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
pages:
|
|
81
|
+
- questions:
|
|
82
|
+
- id: steady_flow
|
|
83
|
+
text: How often are you able to make steady progress on your tasks without interruptions?
|
|
84
|
+
type: mc-single
|
|
85
|
+
layout: horizontal
|
|
86
|
+
required: optional
|
|
87
|
+
choices:
|
|
88
|
+
- display: Rarely or never
|
|
89
|
+
value: -2
|
|
90
|
+
- display: Sometimes
|
|
91
|
+
value: -1
|
|
92
|
+
- display: About half the time
|
|
93
|
+
value: 0
|
|
94
|
+
- display: Most of the time
|
|
95
|
+
value: 1
|
|
96
|
+
- display: All or almost all the time
|
|
97
|
+
value: 2
|
|
94
98
|
|
|
95
99
|
- id: sense_of_accomplishment
|
|
96
100
|
name: Sense of accomplishment
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
101
|
+
pages:
|
|
102
|
+
- questions:
|
|
103
|
+
- id: task_impact
|
|
104
|
+
text: In general, how would you describe the overall impact of your accomplished tasks?
|
|
105
|
+
type: mc-single
|
|
106
|
+
layout: horizontal
|
|
107
|
+
choices:
|
|
108
|
+
- display: Not at all impactful
|
|
109
|
+
value: -2
|
|
110
|
+
- display: Slightly impactful
|
|
111
|
+
value: -1
|
|
112
|
+
- display: Moderately impactful
|
|
113
|
+
value: 0
|
|
114
|
+
- display: Very impactful
|
|
115
|
+
value: 1
|
|
116
|
+
- display: Extremely impactful
|
|
117
|
+
value: 2
|
|
118
|
+
- id: meaning_in_work
|
|
119
|
+
text: In general, how meaningful do you find your work?
|
|
120
|
+
type: mc-single
|
|
121
|
+
layout: horizontal
|
|
122
|
+
required: optional
|
|
123
|
+
choices:
|
|
124
|
+
- display: Not at all meaningful
|
|
125
|
+
value: -2
|
|
126
|
+
- display: Slightly meaningful
|
|
127
|
+
value: -1
|
|
128
|
+
- display: Moderately meaningful
|
|
129
|
+
value: 0
|
|
130
|
+
- display: Very meaningful
|
|
131
|
+
value: 1
|
|
132
|
+
- display: Extremely meaningful
|
|
133
|
+
value: 2
|
|
129
134
|
|
|
130
135
|
- id: personal_judgment
|
|
131
136
|
name: Personal judgment
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
137
|
+
pages:
|
|
138
|
+
- questions:
|
|
139
|
+
- id: welcomed_judgement
|
|
140
|
+
text: In general, how often is your expertise welcomed in decision-making in your organization?
|
|
141
|
+
type: mc-single
|
|
142
|
+
layout: horizontal
|
|
143
|
+
required: optional
|
|
144
|
+
choices:
|
|
145
|
+
- display: Rarely or never
|
|
146
|
+
value: -2
|
|
147
|
+
- display: Sometimes
|
|
148
|
+
value: -1
|
|
149
|
+
- display: About half the time
|
|
150
|
+
value: 0
|
|
151
|
+
- display: Most of the time
|
|
152
|
+
value: 1
|
|
153
|
+
- display: All or almost all the time
|
|
154
|
+
value: 2
|
|
155
|
+
- id: autonomy_satisfaction
|
|
156
|
+
text: In general, how satisfied are you with your level of autonomy when carrying out your tasks?
|
|
157
|
+
type: mc-single
|
|
158
|
+
layout: horizontal
|
|
159
|
+
required: optional
|
|
160
|
+
choices:
|
|
161
|
+
- display: Very dissatisfied
|
|
162
|
+
value: -2
|
|
163
|
+
- display: Somewhat dissatisfied
|
|
164
|
+
value: -1
|
|
165
|
+
- display: Neutral
|
|
166
|
+
value: 0
|
|
167
|
+
- display: Somewhat satisfied
|
|
168
|
+
value: 1
|
|
169
|
+
- display: Very satisfied
|
|
170
|
+
value: 2
|
|
165
171
|
|
|
166
172
|
- id: wrap_up
|
|
167
173
|
name: Wrap Up
|
|
168
|
-
|
|
169
|
-
-
|
|
170
|
-
|
|
174
|
+
pages:
|
|
175
|
+
- questions:
|
|
176
|
+
- text: |
|
|
177
|
+
We appreciate your time in completing the Pulse survey. Your involvement is important and will help the organization in improving the engineering experience.
|