Skip to content

Commit

Permalink
remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelemarre committed Jul 10, 2024
1 parent 5ec3534 commit 3a0f4ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 217 deletions.
13 changes: 2 additions & 11 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-07-10T08:54:31.455Z\n"
"PO-Revision-Date: 2024-07-10T08:54:31.455Z\n"
"POT-Creation-Date: 2024-07-10T14:02:24.269Z\n"
"PO-Revision-Date: 2024-07-10T14:02:24.269Z\n"

msgid "Add new option"
msgstr ""
Expand Down Expand Up @@ -44,15 +44,6 @@ msgstr ""
msgid "Respond, alert, watch"
msgstr ""

msgid "All public health events"
msgstr ""

msgid "7-1-7 performance"
msgstr ""

msgid "Performance overview"
msgstr ""

msgid "Event Tracker"
msgstr ""

Expand Down
11 changes: 1 addition & 10 deletions i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2024-07-10T08:54:31.455Z\n"
"POT-Creation-Date: 2024-07-10T14:02:24.269Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -44,15 +44,6 @@ msgstr ""
msgid "Respond, alert, watch"
msgstr ""

msgid "All public health events"
msgstr ""

msgid "7-1-7 performance"
msgstr ""

msgid "Performance overview"
msgstr ""

msgid "Event Tracker"
msgstr ""

Expand Down
196 changes: 0 additions & 196 deletions src/webapp/pages/dashboard/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,209 +3,13 @@ import React from "react";
import i18n from "../../../utils/i18n";
import { Layout } from "../../components/layout/Layout";
import { Section } from "../../components/section/Section";
import {
FilterType,
StatisticTable,
TableColumn,
} from "../../components/table/statistic-table/StatisticTable";

// TODO: Add every section here, first it's just an example

export const DashboardPage: React.FC = React.memo(() => {
// TODO remove harcoded data
const columns: TableColumn[] = [
{ label: "Event", value: "event" },
{ label: "Location", value: "location" },
{ label: "Cases", value: "cases" },
{ label: "Deaths", value: "deaths" },
{ label: "Duration", value: "duration" },
{ label: "Manager", value: "manager" },
{ label: "Detect 7d", dark: true, value: "detect7d" },
{ label: "Notify 1d", dark: true, value: "notify1d" },
{ label: "ERA1", value: "era1" },
{ label: "ERA2", value: "era2" },
{ label: "ERA3", value: "era3" },
{ label: "ERA4", value: "era4" },
{ label: "ERA5", value: "era5" },
{ label: "ERA6", value: "era6" },
{ label: "ERA7", value: "era7" },
{ label: "ERI", value: "eri" },
{ label: "Respond 7d", dark: true, value: "respond7d" },
];
const editRiskAssessmentColumns = [
"era1",
"era2",
"era3",
"era4",
"era5",
"era6",
"era7",
"eri",
];
const columnRules: { [key: string]: number } = {
detect7d: 7,
notify1d: 1,
respond7d: 7,
};
const dataPerformanceOverview = [
{
event: "Cholera",
location: "Northern",
cases: "62",
deaths: "34",
duration: "4d",
manager: "Paul Zulu",
detect7d: "2",
notify1d: "1",
era1: "1",
era2: "",
era3: "",
era4: "",
era5: "",
era6: "",
era7: "",
eri: "",
respond7d: "",
},
{
event: "Measles",
location: "Western",
cases: "112",
deaths: "32",
duration: "19d",
manager: "Moses Mei",
detect7d: "12",
notify1d: "1",
era1: "1",
era2: "3",
era3: "6",
era4: "7",
era5: "7",
era6: "7",
era7: "7",
eri: "7",
respond7d: "7",
},
{
event: "Rabies",
location: "Central",
cases: "39",
deaths: "12",
duration: "13d",
manager: "Tristin Go",
detect7d: "6",
notify1d: "3",
era1: "6",
era2: "7",
era3: "7",
era4: "7",
era5: "7",
era6: "7",
era7: "7",
eri: "7",
respond7d: "7",
},
{
event: "Polio",
location: "Copperbelt",
cases: "10",
deaths: "3",
duration: "18d",
manager: "Lillie Lee",
detect7d: "10",
notify1d: "3",
era1: "4",
era2: "10",
era3: "9",
era4: "12",
era5: "12",
era6: "5",
era7: "7",
eri: "7",
respond7d: "12",
},
{
event: "Covid-19",
location: "Lusaka",
cases: "64",
deaths: "32",
duration: "14d",
manager: "Jed Selma",
detect7d: "7",
notify1d: "1",
era1: "1",
era2: "7",
era3: "7",
era4: "7",
era5: "7",
era6: "7",
era7: "7",
eri: "7",
respond7d: "7",
},
{
event: "Covid-19",
location: "North Western",
cases: "64",
deaths: "32",
duration: "13d",
manager: "Meg Amy",
detect7d: "6",
notify1d: "3",
era1: "6",
era2: "7",
era3: "7",
era4: "7",
era5: "7",
era6: "7",
era7: "7",
eri: "7",
respond7d: "7",
},
{
event: "Cholera",
location: "Eastern",
cases: "10",
deaths: "3",
duration: "17d",
manager: "Mary Cole",
detect7d: "10",
notify1d: "3",
era1: "4",
era2: "10",
era3: "9",
era4: "12",
era5: "12",
era6: "5",
era7: "7",
eri: "7",
respond7d: "12",
},
];
const filters: FilterType[] = [
{ value: "event", label: "Event", type: "multiselector" },
// { value: "name", label: "Name", type: "multiselector" },
// { value: "disease", label: "Disease", type: "multiselector" },
{ value: "location", label: "Location", type: "multiselector" },
// { value: "dateRange", label: "Date range", type: "datepicker" },
];

return (
<Layout title={i18n.t("Dashboard")} showCreateEvent>
<Section title={i18n.t("Respond, alert, watch")}>Respond, alert, watch content</Section>
<Section title={i18n.t("All public health events")}>
All public health events content
</Section>
<Section title={i18n.t("7-1-7 performance")}>7-1-7 performance content</Section>
<Section title={i18n.t("Performance overview")}>
<StatisticTable
columns={columns}
rows={dataPerformanceOverview}
filters={filters}
columnRules={columnRules}
editRiskAssessmentColumns={editRiskAssessmentColumns}
/>
</Section>
</Layout>
);
});

0 comments on commit 3a0f4ad

Please sign in to comment.