-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assorted dashboard cleanup tasks #1234
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,7 @@ export class MetaDataManager { | |
return this.getSensor({ id: 'jhu-csse', signal: 'confirmed_7dav_incidence_prop' }); | ||
} | ||
getDefaultDeathSignal(): Sensor | null { | ||
return this.getSensor({ id: 'jhu-csse', signal: 'deaths_7dav_incidence_prop' }); | ||
return this.getSensor({ id: 'nchs-mortality', signal: 'deaths_covid_incidence_prop' }); | ||
} | ||
Comment on lines
197
to
199
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are getting rid of |
||
|
||
getSensorsOfType(type: SignalCategory): Sensor[] { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<script> | ||
import IndicatorTable from './IndicatorTable.svelte'; | ||
import Overview from './Overview.svelte'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this mean we can remove |
||
import { countyInfo, nationInfo, stateInfo } from '../../data/regions'; | ||
import RegionDatePicker from '../../components/RegionDatePicker.svelte'; | ||
import { | ||
|
@@ -69,18 +68,15 @@ | |
</RegionDatePicker> | ||
<div class="uk-container content-grid"> | ||
<div class="grid-3-11"> | ||
<FancyHeader invert>{region.displayName}</FancyHeader> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we leave the region name in there for consistency, perhaps followed by an |
||
<Overview {date} {region} {fetcher} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the |
||
<hr /> | ||
<FancyHeader invert sub="Map" anchor="map">{HOSPITAL_ADMISSION.name}</FancyHeader> | ||
<p>{@html HOSPITAL_ADMISSION.signalTooltip}</p> | ||
<RegionMapWrapper {region} {date} sensor={HOSPITAL_ADMISSION} {fetcher} /> | ||
<hr /> | ||
<FancyHeader invert sub="Chart" anchor="chart">{HOSPITAL_ADMISSION.name}</FancyHeader> | ||
<div class="chart-300"> | ||
<HistoryLineChart sensor={HOSPITAL_ADMISSION} {date} {region} {fetcher} /> | ||
</div> | ||
<hr /> | ||
<FancyHeader invert sub="Map" anchor="map">{HOSPITAL_ADMISSION.name}</FancyHeader> | ||
<p>{@html HOSPITAL_ADMISSION.signalTooltip}</p> | ||
<RegionMapWrapper {region} {date} sensor={HOSPITAL_ADMISSION} {fetcher} /> | ||
<hr /> | ||
<IndicatorTable {date} {region} {fetcher} /> | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ export const defaultHospitalSensor = derived(sensorList, (sensorList) => { | |
return sensorList.find((d) => d.signal === 'confirmed_admissions_covid_1d_prop_7dav'); | ||
}); | ||
export const defaultDeathSensor = derived(sensorList, (sensorList) => { | ||
return sensorList.find((d) => d.signal === 'deaths_7dav_incidence_prop'); | ||
return sensorList.find((d) => d.signal === 'deaths_covid_incidence_prop'); | ||
Comment on lines
117
to
+118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we can remove this (and one or two above it); see comment in |
||
}); | ||
|
||
export const currentSensorEntry = derived( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the JHU signal we are removing... Doesnt that mean we can get rid of this method too?