@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.
@@ -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
- "questions": {
117
- "type": "array",
118
- "description": "The questions in the section (all in one page)",
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|displayed|not_displayed|for_matrix_choice\\([\\-a-zA-Z0-9_]+\\)|unselected_for_matrix_choice\\([\\-a-zA-Z0-9_]+\\))$"
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|displayed|not_displayed|for_matrix_choice\\([\\-a-zA-Z0-9_]+\\)|unselected_for_matrix_choice\\([\\-a-zA-Z0-9_]+\\))$"
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
- "allOf": [
298
+ "required": ["text"],
299
+ "oneOf": [
308
300
  {
309
- "oneOf": [
310
- {
311
- "required": ["text"]
312
- },
313
- {
314
- "required": ["text_html"]
315
- }
316
- ]
301
+ "$ref": "#/$defs/question-mc-horizontal"
317
302
  },
318
303
  {
319
- "oneOf": [
320
- {
321
- "$ref": "#/$defs/question-mc-horizontal"
322
- },
323
- {
324
- "$ref": "#/$defs/question-mc-vertical"
325
- },
326
- {
327
- "$ref": "#/$defs/question-matrix"
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
- "text": {
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
- questions:
14
- - text: |
15
- This survey checks the Pulse of your engineering organization.
16
- 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.
17
- Please consider your last three months at the organization when responding to the survey.
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
- questions:
22
- - id: work_productivity
23
- text: In general, how would you describe your ability to be productive at work?
24
- type: mc-single
25
- layout: horizontal
26
- required: optional
27
- choices:
28
- - display: I feel very unproductive
29
- value: -2
30
- - display: I feel somewhat unproductive
31
- value: -1
32
- - display: Neutral
33
- value: 0
34
- - display: I feel somewhat productive
35
- value: 1
36
- - display: I feel very productive
37
- value: 2
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
- questions:
42
- - id: task_satisfaction
43
- text: In general, how satisfied are you with the tasks you do at work?
44
- type: mc-single
45
- layout: horizontal
46
- required: optional
47
- choices:
48
- - display: Very dissatisfied
49
- value: -2
50
- - display: Somewhat dissatisfied
51
- value: -1
52
- - display: Neutral
53
- value: 0
54
- - display: Somewhat satisfied
55
- value: 1
56
- - display: Very satisfied
57
- value: 2
58
- - id: tool_satisfaction
59
- text: How satisfied are you with the tools that are available for you to do your work?
60
- type: mc-single
61
- layout: horizontal
62
- required: optional
63
- choices:
64
- - display: Very dissatisfied
65
- value: -2
66
- - display: Somewhat dissatisfied
67
- value: -1
68
- - display: Neutral
69
- value: 0
70
- - display: Somewhat satisfied
71
- value: 1
72
- - display: Very satisfied
73
- value: 2
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
- questions:
78
- - id: steady_flow
79
- text: How often are you able to make steady progress on your tasks without interruptions?
80
- type: mc-single
81
- layout: horizontal
82
- required: optional
83
- choices:
84
- - display: Rarely or never
85
- value: -2
86
- - display: Sometimes
87
- value: -1
88
- - display: About half the time
89
- value: 0
90
- - display: Most of the time
91
- value: 1
92
- - display: All or almost all the time
93
- value: 2
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
- questions:
98
- - id: task_impact
99
- text: In general, how would you describe the overall impact of your accomplished tasks?
100
- type: mc-single
101
- layout: horizontal
102
- choices:
103
- - display: Not at all impactful
104
- value: -2
105
- - display: Slightly impactful
106
- value: -1
107
- - display: Moderately impactful
108
- value: 0
109
- - display: Very impactful
110
- value: 1
111
- - display: Extremely impactful
112
- value: 2
113
- - id: meaning_in_work
114
- text: In general, how meaningful do you find your work?
115
- type: mc-single
116
- layout: horizontal
117
- required: optional
118
- choices:
119
- - display: Not at all meaningful
120
- value: -2
121
- - display: Slightly meaningful
122
- value: -1
123
- - display: Moderately meaningful
124
- value: 0
125
- - display: Very meaningful
126
- value: 1
127
- - display: Extremely meaningful
128
- value: 2
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
- questions:
133
- - id: welcomed_judgement
134
- text: In general, how often is your expertise welcomed in decision-making in your organization?
135
- type: mc-single
136
- layout: horizontal
137
- required: optional
138
- choices:
139
- - display: Rarely or never
140
- value: -2
141
- - display: Sometimes
142
- value: -1
143
- - display: About half the time
144
- value: 0
145
- - display: Most of the time
146
- value: 1
147
- - display: All or almost all the time
148
- value: 2
149
- - id: autonomy_satisfaction
150
- text: In general, how satisfied are you with your level of autonomy when carrying out your tasks?
151
- type: mc-single
152
- layout: horizontal
153
- required: optional
154
- choices:
155
- - display: Very dissatisfied
156
- value: -2
157
- - display: Somewhat dissatisfied
158
- value: -1
159
- - display: Neutral
160
- value: 0
161
- - display: Somewhat satisfied
162
- value: 1
163
- - display: Very satisfied
164
- value: 2
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
- questions:
169
- - text: |
170
- We appreciate your time in completing the Pulse survey. Your involvement is important and will help the organization in improving the engineering experience.
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.