Skip to content

Commit 9bcaa04

Browse files
committed
OKRS24-235 Updated fixtures. Displayed few more fields on signal detailed view.
1 parent fb02eb9 commit 9bcaa04

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

src/fixtures/signal_filters_fields.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"fields": {
2424
"filter": 1,
2525
"filter_field": "pathogen",
26-
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
26+
"description": "Pathogen, syndrome, or disease area for which the signal applies."
2727
}
2828
},
2929
{
@@ -41,7 +41,7 @@
4141
"fields": {
4242
"filter": 1,
4343
"filter_field": "available_geography",
44-
"description": null
44+
"description": "Spatial resolution of the signal (e.g., county, hospital referral region, metropolitan statistical area, designated market area, state)."
4545
}
4646
},
4747
{
@@ -50,7 +50,7 @@
5050
"fields": {
5151
"filter": 1,
5252
"filter_field": "severity_pyramid_rungs",
53-
"description": null
53+
"description": "One or more rungs to which this signal best relates. See https://delphi.cmu.edu/epidemic-signals/."
5454
}
5555
},
5656
{
@@ -68,7 +68,7 @@
6868
"fields": {
6969
"filter": 1,
7070
"filter_field": "geographic_scope",
71-
"description": null
71+
"description": "Country for which signal is available."
7272
}
7373
},
7474
{
@@ -77,7 +77,7 @@
7777
"fields": {
7878
"filter": 1,
7979
"filter_field": "source",
80-
"description": null
80+
"description": "The owner or supplier of the raw data."
8181
}
8282
},
8383
{
@@ -86,7 +86,7 @@
8686
"fields": {
8787
"filter": 1,
8888
"filter_field": "time_type",
89-
"description": null
89+
"description": "Units of time available for a given signal, e.g., day and week."
9090
}
9191
},
9292
{
@@ -140,7 +140,7 @@
140140
"fields": {
141141
"filter": 1,
142142
"filter_field": "signal_availability",
143-
"description": ""
143+
"description": "Allows filtering by specific dates or by duration available."
144144
}
145145
}
146146
]

src/templates/signals/signal_detail.html

+23-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ <h5>About this signal</h5>
5757
<th scope="row">Signal Name</th>
5858
<td>{{ signal.name }}</td>
5959
</tr>
60+
<tr>
61+
<th scope="row">Short Description</th>
62+
<td>{{ signal.short_description }}</td>
63+
</tr>
6064
<tr>
6165
<th scope="row">Pathogen</th>
6266
<td>
@@ -97,6 +101,18 @@ <h5>About this signal</h5>
97101
</ul>
98102
</td>
99103
</tr>
104+
<tr>
105+
<th scopr="row">Reporting Cadence</th>
106+
<td>{{ signal.reporting_cadence|capfirst }}</td>
107+
</tr>
108+
<tr>
109+
<th scopr="row">Typiacl Revision Cadence</th>
110+
<td>{{ signal.typical_revision_cadence }}</td>
111+
</tr>
112+
<tr>
113+
<th scopr="row">Typiacl Reporting Lag</th>
114+
<td>{{ signal.typical_reporting_lag }}</td>
115+
</tr>
100116
<tr>
101117
<th scope="row">Format</th>
102118
<td>{{ signal.format_type|title }}</td>
@@ -163,6 +179,12 @@ <h5>About this signal</h5>
163179
{{ signal.last_updated }}
164180
</td>
165181
</tr>
182+
<tr>
183+
<th scope="row">Available For</th>
184+
<td>
185+
{{ signal.signal_availability_days }} day{{ signal.signal_availability_days|pluralize:"s" }}
186+
</td>
187+
</tr>
166188
</tbody>
167189
</table>
168190
</div>
@@ -379,4 +401,4 @@ <h5>Related links</h5>
379401
</script>
380402
</main>
381403

382-
{% endblock %}
404+
{% endblock %}

0 commit comments

Comments
 (0)