-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhelp_texts.py
More file actions
602 lines (500 loc) · 22.3 KB
/
help_texts.py
File metadata and controls
602 lines (500 loc) · 22.3 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
129
130
131
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
HEADLINE_COLUMNS_FIELD: str = """
Add up to {} number column components within this row.
The columns are ordered from left to right, top to bottom respectively.
So by moving 1 column component above the other, that component will be rendered in the column left of the other.
"""
HEADLINE_COLUMNS_IN_CHART_CARD: str = """
Add up to {} headline or trend number column components within this space.
Note that these figures will be displayed within the card, and above the chart itself.
"""
CHART_CARD_ROW: str = """
Here you can add 1 or 2 columns to contain a particular chart card.
If you add the 1 column, then the chart card will spread across the available width.
If you add 2 columns, then the cards will be split across 2 columns within the available width.
"""
CHART_ROW_CARD_COLUMN_WIDTH_THREE: str = """
Here you can add chart cards to a section and the layout will change based on the number of cards added.
A single card will expand to take up half the row. When 2 or 3 cards are added they will share the width
of a row equally, creating either a 2 or 3 column layout.
"""
NUMBERS_ROW_FIELD: str = """
Here you can add up to {} rows within this column component.
Each row can be used to add a number block.
This can be a headline number, a trend number or a percentage number.
If you only add 1 row, then that block will be rendered on the upper half of the column.
And the bottom row of the column will remain empty.
"""
CHART_BLOCK_FIELD: str = """
Add the plots required for your chart.
Within each plot, you will be required to add a set of fields which will be used to fetch the supporting data
for that plot.
"""
THEME_FIELD: str = """
The related theme for the metric. Eg: infectious disease
"""
SUB_THEME_FIELD: str = """
The related sub theme for the metric. Eg: respiratory
"""
TOPIC_PAGE_FIELD: str = """
The related topic page you want to link to. Eg: `COVID-19`
"""
INDEX_PAGE_FIELD: str = """
The related index page you want to link to. Eg: `Respiratory viruses` or `Outbreaks`
"""
HEADLINE_BLOCK_FIELD: str = """
This component will display a key headline number type metric.
You can also optionally add a body of text to accompany that headline number.
E.g. "Patients admitted"
"""
TREND_BLOCK_FIELD: str = """
This component will display a trend number type metric.
This will display an arrow pointing in the direction of the metric change
as well as colouring of the block to indicate the context of the change.
You can also optionally add a body of text to accompany that headline number.
E.g. "Last 7 days"
"""
PERCENTAGE_BLOCK_FIELD: str = """
This component will display a percentage number type metric.
This will display the value of the metric appended with a % character.
You can also optionally add a body of text to accompany this percentage number.
E.g. "Virus tests positivity".
"""
TOP_HEADLINE_BLOCK_FIELD: str = """
This will display a key headline number type metric as the top half of this column component.
"""
BOTTOM_HEADLINE_BLOCK_FIELD: str = """
This will display a key headline number type metric as the bottom half of this column component.
"""
SINGLE_HEADLINE_COMPONENT: str = """
This component will be displayed as a single headline number type metric on the top half of the column.
The bottom half of this column component will be left empty.
"""
HEADLINE_AND_TREND_COMPONENT: str = """
This component will be displayed with a headline number type metric on the top half of the column.
And a trend type metric will be shown on the bottom half of the column component.
"""
DUAL_HEADLINE_COMPONENT: str = """
This component will be displayed with a headline number type metric on the top half of the column.
And another headline number type metric will be shown on the bottom half of the column component.
"""
TEXT_CARD: str = """
This section of text will comprise this card.
Note that this card will span the length of the available page width if sufficient text content is provided.
"""
BODY_FIELD: str = "The section of text which will accommodate this block."
BODY_FIELD_ABOVE_BLOCK: str = f"""
{BODY_FIELD} Note that this text will be placed above the main content of the block.
"""
HEADING_BLOCK: str = """
The text you add here will be used as the heading for this section.
"""
CONTENT_ROW_CARDS: str = """
Here you can add any number of content row cards for this section.
Note that these cards will be displayed across the available width.
"""
TOPIC_FIELD: str = "The name of the topic to pull data e.g. COVID-19."
METRIC_FIELD: str = """
The name of the metric to pull data for e.g. "COVID-19_deaths_ONSByDay".
"""
STRATUM_FIELD: str = """
The smallest subgroup a piece of data can be broken down into.
For example, this could be broken down by ethnicity or testing pillar.
If nothing is provided, then no filtering will be applied for this field.
"""
GEOGRAPHY_FIELD: str = """
The name of the geography associated with this particular piece of data.
If nothing is provided, then no filtering will be applied for this field.
"""
GEOGRAPHY_TYPE_FIELD: str = """
The type of geographical categorisation to apply any data filtering to.
If nothing is provided, then no filtering will be applied for this field.
"""
TREND_METRIC_FIELD: str = """
The name of the trend type metric to pull data e.g. "COVID-19_headline_ONSdeaths_7daychange".
Note that only 'change' type metrics are available for selection for this field type.
"""
TREND_PERCENTAGE_METRIC_FIELD: str = """
The name of the accompanying percentage trend type metric to pull data
e.g. "COVID-19_headline_ONSdeaths_7daypercentchange".
Note that only 'percent' type metrics are available for selection for this field type.
"""
CHART_TYPE_FIELD: str = """
The name of the type of chart which you want to create e.g. bar
"""
DATE_FROM_FIELD: str = """
The date from which to begin the supporting plot data.
Note that if nothing is provided, a default of 1 year ago from the current date will be applied.
"""
DATE_TO_FIELD: str = """
The date to which to end the supporting plot data.
Note that if nothing is provided, a default of the current date will be applied.
"""
SEX_FIELD: str = """
The gender to filter for, if any.
The only options available are `M`, `F` and `ALL`.
By default, no filtering will be applied to the underlying query if no selection is made.
"""
AGE_FIELD: str = """
The age band to filter for, if any.
By default, no filtering will be applied to the underlying query if no selection is made.
"""
LABEL_FIELD: str = """
The label to assign on the legend for this individual plot.
E.g. `15 to 44 years old`
"""
LINE_COLOUR_FIELD: str = """
The colour to apply to this individual line plot. The colours conform to the GDS specification.
Currently, only the `line_multi_coloured` chart type supports different line colours.
For all other chart types, this field will be ignored.
Note that if nothing is provided, a default of "BLACK" will be applied.
E.g. `GREEN`
"""
LINE_TYPE_FIELD: str = """
The line type to apply to this individual line plot.
Currently, only the `line_multi_coloured` chart type supports different line types.
For all other chart types, this field will be ignored.
Note that if nothing is provided, a default of "SOLID" will be applied.
E.g. `DASH`
"""
SHOW_TOOLTIPS_ON_CHARTS_FIELD: str = """
This is a switch to show tooltips on hover within the chart.
Defaults to False.
"""
TITLE_FIELD: str = """
The title to display for this component.
Note that this will be shown in the hex colour #505A5F
"""
SUB_TITLE_FIELD: str = """
The sub title to display for this component.
"""
OPTIONAL_CHART_ABOUT_FIELD: str = """
An optional body of text to accompany this block. This text will be displayed in the about content of the chart.
"""
OPTIONAL_MAP_ABOUT_FIELD: str = """
An optional body of text to accompany this block. This text will be displayed in the about content for this map.
"""
OPTIONAL_BODY_FIELD: str = """
An optional body of text to accompany this block. This text will be displayed below the chart title.
"""
OPTIONAL_RELATED_LINK: str = """
Provide optional URLs that can provide further contextual information for the data displayed in the chart.
"""
RELATED_LINK_TEXT: str = """
The Text that will be displayed for the URL.
"""
RELATED_LINK_URL: str = """
The URL that the user will be navigated to when clicked.
An optional body of text to accompany this block. This text will be displayed below the chart title.
"""
REQUIRED_BODY_FIELD: str = """
A required body of text to accompany this block.
"""
PAGE_DESCRIPTION_FIELD: str = """
An optional body of text which will be rendered at the top of the page.
This text will be displayed after the title of the page and before any of the main content.
"""
CHART_X_AXIS: str = """
An optional choice of what to display along the x-axis of the chart.
If nothing is provided, `dates` will be used by default.
Dates are used by default
"""
CHART_X_AXIS_TITLE: str = """
An optional title to display along the x-axis of the chart.
If nothing is provided, then no title will be displayed.
"""
REQUIRED_CHART_X_AXIS_TITLE: str = """
A required title to display along the x-axis of the chart.
"""
CHART_Y_AXIS_TITLE: str = """
An optional title to display along the y-axis of the chart.
If nothing is provided, then no title will be displayed.
"""
REQUIRED_CHART_X_AXIS: str = """
A required choice of what to display along the x-axis of the chart.
"""
CHART_Y_AXIS: str = """
An optional choice of what to display along the y-axis of the chart.
If nothing is provided, `metric value` will be used by default.
"""
CHART_Y_AXIS_MINIMUM_VALUE: str = """
This field allows you to set the first value in the chart's y-axis range. Please
note that a value provided here, which is higher than the lowest value in the data will
be overridden and the value from the dataset will be used.
"""
CHART_Y_AXIS_MAXIMUM_VALUE: str = """
This field allows you to set the last value in the chart's y-axis range. Please
note that a value provided here, which is lower than the highest value in the data will
be overridden and the value from the dataset will be used.
"""
REQUIRED_CHART_Y_AXIS: str = """
A required choice of what to display along the y-axis of the chart.
"""
USE_SMOOTH_LINES: str = """
If set to true, draws the plot as a spline line, resulting in smooth curves between data points.
If set to false, draws the plot as a linear line,
resulting in linear point-to-point lines being drawn between data points.
This is only applicable to line-type charts.
"""
USE_MARKERS: str = """
If set to true, markers are drawn on each individual data point.
If set to false, markers are not drawn at all.
This is only applicable to line-type charts.
"""
CODE_EXAMPLE: str = """
A required section that can be used to add code examples to a composite page type.
"""
BUTTON_TYPE_GDS: str = """
A required choice of the button type to be used, the options include `Primary`, `Secondary`.
These align with GDS guidelines.
"""
BUTTON_ICON: str = """
An optional choice of icon to add to a button, defaults to none.
"""
CODE_SNIPPET: str = """
A code snippet to demonstrate the example. Please note that HTML type content is not permitted.
"""
GLOBAL_BANNER_TITLE: str = """
The title to associate with the banner. This must be provided.
"""
GLOBAL_BANNER_BODY: str = """
A body of text to be displayed by the banner. There is a limit of 255 characters for this field.
"""
GLOBAL_BANNER_TYPE: str = """
The type to associate with the banner. Defaults to `Information`.
"""
GLOBAL_BANNER_IS_ACTIVE: str = """
Whether to activate this banner across every page in the dashboard.
Multiple banners can be active across the dashboard.
Note: Warning banners are prioritised across the dashboard and will be displayed above information banners.
"""
TAG_MANAGER_EVENT_ID_FIELD: str = """
The ID to associate with this component.
This allows for tracking of events when users interact with this component.
Note that changing this multiple times will result in the recording of different groups of events.
"""
RELATED_LINKS_LAYOUT_FIELD: str = """
This dictates where the related links for this page will be positioned.
"""
SHOW_PAGINATION_FIELD: str = """
This is used to determine whether to render pagination controls or not.
"""
PAGINATION_SIZE_FIELD: str = """
This is used to control the default pagination size used if there are associated children pages.
"""
WHA_ALERT_CHOICE: str = """
This is used to select the current weather health alert type Eg: Heat or Cold alert season.
"""
PAGE_LINK_TITLE: str = """
This is the title of the page you're linking to Eg. COVID-19
"""
PAGE_LINK_SUB_TITLE: str = """
This is an optional short description of the page you're linking to.
"""
HEADLINE_DATE_PREFIX: str = """
This is the accompanying text for headline column dates Eg: `Up to` 27 Oct 2024
"""
CHART_DATE_PREFIX: str = """
This is the accompanying text for chart dates Eg: `Up to and including` 21 Oct 2024
"""
CHART_TIMESERIES_FILTER: str = """
This option enables timeseries filter for this chart.
The timeseries filter allows a user to change the timeseries range for example between
1m, 3m, 6m, 1y etc.
"""
ANNOUNCEMENT_BANNER_TITLE: str = """
The title to associate with the announcement. This must be provided.
"""
ANNOUNCEMENT_BANNER_BODY: str = """
A body of text to be displayed by the announcement. There is a limit of 255 characters for this field.
"""
ANNOUNCEMENT_BANNER_TYPE: str = """
The type to associate with the announcement. Defaults to `Information`.
"""
ANNOUNCEMENT_BANNER_IS_ACTIVE: str = """
Whether to activate this banner only on this individual page.
Note that multiple page banners can be active on one page. Consider
carefully if you need multiple announcements to be active at once as
this can have an impact on user experience of the dashboard page.
"""
SECONDARY_CATEGORY: str = """
This is for selecting the Second categorical variable type for Dual category charts.
For example when building a `Stacked bar chart` where the x-axis may be of type `Sex` and
display `Male` and `Female` along the x-axis. If our stacked bar chart then breaks each bar up into
age groups, then our `Secondary Category` type is `Age`.
"""
PRIMARY_FIELD_VALUES: str = """
Select a list of primary field values for the chart, these will be you're x-axis.
For example if we're creating a stacked bar chart that has a metric value in y and geographies along
the x-axis. The `primary field values` should be the list of geographies to include in the chart.
"""
SECONDARY_FIELD_VALUES: str = """
Select the secondary field for a `Segments` this is the second categorical variable used to create segments
of a `stacked bar` chart. For example if we're creating a stacked bar chart that has a metric in the y-axis
and geographies along the x-axis. If each bar is broken into segments by `age group` this field
should be the age group for this segment.
"""
GLOBAL_FILTER_COMPONENT: str = """
The global filter component enables a user of the dashboard to create a variable number of filters
which can be applied across multi components on a dashboard page. This CMS component can be used to configure
those options.
"""
GLOBAL_FILTER_TIME_RANGE: str = """
This mandatory time range is used to set the time range that a user can navigate through when
interacting with a filter linked chart or map card. Eg. Year selection can include a range of
years as dates that can be displayed and navigated between.
When entering multiple periods in the time filter each proceeding `date_from` must be 1 day after the `date_to`
that came before it to maintain sequence order.
"""
GLOBAL_FILTER_TIME_RANGE_DATE_FROM_FIELD: str = """
This field is used to provide a start date for the current time range option. Its date
must be earlier than the date provided for the corresponding `date_to`field.
"""
GLOBAL_FILTER_TIME_RANGE_DATE_TO_FIELD: str = """
This field is used to provide an end date for the current time range option. Its date
must be later than the date provided in the corresponding `date_from` field.
"""
GLOBAL_FILTER_TIME_RANGE_TIME_PERIOD: str = """
This represents a single time period for a selection. The label is used as the time period's
display name on the dashboard. Eg 2018 - 2019
"""
GLOBAL_FILTER_ROWS: str = """
A filter row can contain one or more filters for the global filter component.
They can be used to group filters around a context Eg: data filter with threshold filter.
"""
GLOBAL_FILTERS_COLOUR_FIELD: str = """
Filter colour selections are used to represent the colours of a filter across filter linked
components Eg. a colour chosen for a given geography type such as `UKHSA Region` will be used
to highlight that region on filter linked charts
"""
GLOBAL_FILTERS_GEOGRAPHY_FILTER: str = """
This geography filter can be used to setup selectable geography lists based on geography types
such as `UKHSA Region` or `Lower Tier Local Authority`.
"""
GLOBAL_FILTERS_GEOGRAPHY_TYPE_FIELD: str = """
This generates a list of selectable geographies on the dashboard based on the geography type selected
here. Eg. A selection of `Lower Tier Local Authority` here will result in all LTLA's being displayed
in the filter drop down on the dashboard for a user to select from.
"""
GLOBAL_FILTERS_DATA_FILTER: str = """
The data filter is used to create filter options based on metrics and combined attributes. Eg:
metric and stratum.
"""
GLOBAL_FILTERS_DATA_FILTER_STRATUM: str = """
The smallest subgroup a piece of data can be broken down into.
For example, this could be broken down by ethnicity or testing pillar.
"""
GLOBAL_FILTERS_DATA_FILTER_ACCOMPANYING_POINTS: str = """
These additional points configure alternative requests to compare against or supplement the current data filter. For example,
selecting a `metric` field here could provide a percentage change metric that complements the main data filter selection.
The label prefix appears before the metric value in map tooltips, while the suffix appears after.
For a percentage change metric, using prefix `change` and suffix `%` would display as "change <value>%" in tooltips.
"""
GLOBAL_FILTERS_THRESHOLD_FILTER: str = """
The threshold filter is used to configure threshold boundaries that can be used to filter data on the dashboard.
Eg. over 95% boundary 95 -> 100
"""
GLOBAL_FILTERS_THRESHOLD_BOUNDARY_VALUE: str = """
The minimum and maximum boundary values are used to set the range for the threshold as a float between
0.00 and 100 Eg. a threshold of over 95% will have a minimum value of 95 and a maximum value of 100
"""
GLOBAL_FILTERS_THRESHOLD_COLOR: str = """
This colour option is used to represent the threshold across other filter linked components.
Eg: The colour used for the legend on filter linked map component.
"""
DATA_FILTERS_CATEGORIES_TO_GROUP_BY: str = """
Select the categories for the dropdown options to be grouped by.
E.g. To build the following:
<pre>
|- stratum one
|- topic one
|- topic two
| stratum two
|- topic one
|- topic two
</pre>
The selections for this should be `stratum` and then `topic`.
"""
FILTER_LINKED_MAP_COMPONENT: str = """
This filter linked map can be used to display metric data configured through a data filter
in the global filter component to represent this data geographically.
"""
FILTER_LINKED_SUB_PLOT_CHART_TEMPLATE: str = """
This filter linked sub plot chart can be used to display metric data configured through a data filter
in the global filter component.
This template will render a new chart for each geography selected by the user
for the selected entities according to the data filter.
"""
FILTER_LINKED_SUB_PLOT_CHART_LEGEND_TITLE: str = """
This legend title will be used for the title of the sub plot chart legends.
Eg. the colours associated with the geographies from global filter.
"""
FILTER_LINKED_TIME_SERIES_CHART_TEMPLATE: str = """
This filter linked time series chart can be used to display metric data configured through a data filter
in the global filter component.
This template will render a new chart for each geography selected by the user
for the selected entities according to the data filter.
"""
FILTER_LINKED_TIME_SERIES_CHART_LEGEND_TITLE: str = """
This legend title will be used for the title of the time series chart legends.
Eg. the colours associated with the selected data entities from global filter.
"""
FILTER_LINKED_COMPONENT_TITLE_PREFIX: str = """
This will form the prefix of the title which will be associated with the filter linked component.
The full title will be structured as follows:
<pre>
[this prefix] between [the selected time period label] ([the selected region], [the selected lower geography type value]).
</pre>
"""
FILTER_LINKED_SUB_PLOT_CHART_TARGET_THRESHOLD: str = """
An optional value to draw a target threshold for.
"""
FILTER_LINKED_SUB_PLOT_CHART_TARGET_THRESHOLD_LABEL: str = """
An optional label to add as for the target threshold indicator on the charts.
"""
CONFIDENCE_INTERVAL: str = """
Toggle to enable confidence intervals if they are present in the data set
"""
CONFIDENCE_COLOUR: str = """
The colour to display the confidence interval in. The colours conform to the GDS specification.
Note that if nothing is provided, a default of "BLACK" will be applied.
"""
CONFIDENCE_INTERVALS_DESCRIPTION: str = """
An optional body of text to accompany this block.
This text will be displayed above the metrics table if confidence intervals is enabled.
"""
WEATHER_HEALTH_ALERT_DESCRIPTION: str = """
Optional description for the weather health alerts card.
"""
SOURCE_LINK: str = """
Optional source link.
"""
CHART_DESCRIPTION: str = """
Required description for the chart.
"""
HEADLINE_CHART_DESCRIPTION: str = """
Description for the headline chart.
"""
SOURCE_LINK_INTERNAL_OR_EXTERNAL: str = """
Source link (internal or external).
"""
SOURCE_LINK_TEXT: str = """
Display text for the link.
"""
SOURCE_LINK_PAGE: str = """
For linking to internal pages. (If chosen, external_url must be blank).
"""
SOURCE_LINK_URL: str = """
For linking to external url. (Only one of page or external_url must be filled not both).
"""
ERROR_PAGE_LINE_FIELD: str = """
This is the error summary text that will be displayed in red at the top of the error view.
"""
ERROR_PAGE_TEXT_FIELD: str = """
This is a rich text field that can be used to display detailed information about the error that the user is experiencing
"""
ERROR_PAGE_SUB_TEXT_FIELD: str = """
This is a rich text field that can be used to display further information to the user. This text will appear below the error at the top of the page.
"""
PAGE_CLASSIFICATION: str = """
The classification level of all data on this page (only applies to non-public pages). Defaults to `Official-Sensitive`.
"""