Skip to content

Commit 0fea20c

Browse files
authored
Merge pull request #95 from globalfund/fix/DE-1829
chore: add 2024 to RESULT_YEARS
2 parents 414a5b5 + 301bd08 commit 0fea20c

5 files changed

Lines changed: 20 additions & 16 deletions

File tree

cypress/e2e/datasets/annual-results.cy.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ describe("Testing The Location page", () => {
2828
it("displays the header", () => {
2929
cy.get("h1").should("have.text", "Annual Results");
3030
cy.contains(
31-
"Indicator results reported as part of annual Results Report."
31+
"Indicator results reported as part of annual Results Report.",
3232
).should("be.visible");
3333
cy.contains("People on antiretroviral therapy for HIV in 2022").should(
34-
"be.visible"
34+
"be.visible",
3535
);
3636
cy.contains("People with TB treated in 2022").should("be.visible");
3737
cy.contains(
38-
"Insecticide-treated mosquito nets distributed in 2022"
38+
"Insecticide-treated mosquito nets distributed in 2022",
3939
).should("be.visible");
4040
});
4141

@@ -51,17 +51,17 @@ describe("Testing The Location page", () => {
5151
.type("Europe");
5252
cy.contains(
5353
'[data-cy="filter-list-content-accordion-summary"]',
54-
"Europe"
54+
"Europe",
5555
).within(() => {
5656
cy.get('[data-cy="filter-list-content-checkbox"]').click();
5757
waitData(4);
5858
});
59-
}
59+
},
6060
);
6161

6262
cy.get('[data-cy="filter-panel"]').within(() => {
6363
cy.contains('[data-cy="applied-filter"]', "Europe").should(
64-
"be.visible"
64+
"be.visible",
6565
);
6666
});
6767
});
@@ -82,11 +82,11 @@ describe("Testing The Location page", () => {
8282
waitData(4);
8383

8484
cy.contains('[data-cy="category-dropdown-button"]', "2021").should(
85-
"be.visible"
85+
"be.visible",
8686
);
8787

8888
cy.contains("People on antiretroviral therapy for HIV in 2021").should(
89-
"be.visible"
89+
"be.visible",
9090
);
9191
});
9292

@@ -101,7 +101,7 @@ describe("Testing The Location page", () => {
101101

102102
cy.contains(
103103
'[data-cy="category-dropdown-button"]',
104-
"Polyline Tree"
104+
"Polyline Tree",
105105
).click();
106106
});
107107

@@ -112,16 +112,16 @@ describe("Testing The Location page", () => {
112112
.within(() => {
113113
cy.contains(
114114
'[data-cy="category-dropdown-item"]',
115-
"Table View"
115+
"Table View",
116116
).click();
117117
});
118118

119119
cy.contains("[data-cy=dataset-chart-block]", "Annual Results").within(
120120
() => {
121121
cy.get('[data-cy="table"]').should("be.visible");
122-
}
122+
},
123123
);
124-
}
124+
},
125125
);
126126

127127
it("Shows the Documents block ", { scrollBehavior: "nearest" }, () => {

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ export default tseslint.config(
6161
"no-case-declarations": "off",
6262
"jsx-a11y/no-autofocus": "off",
6363
},
64-
}
64+
},
6565
);

src/app/pages/location/views/results/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const RESULT_YEARS = [
66
{ name: "2021", value: "2021" },
77
{ name: "2022", value: "2022" },
88
{ name: "2023", value: "2023" },
9+
{ name: "2024", value: "2024" },
910
];
1011

1112
export interface ResultsProps {

src/app/pages/location/views/results/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const Results: React.FC<ResultsProps> = (props: ResultsProps) => {
5454
value: string;
5555
}[],
5656
);
57+
5758
const loadingResultsTable = useStoreState(
5859
(state) => state.GeographyResultsTable.loading,
5960
);

src/index.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ input[type="text"] {
102102
.tabulator-row:hover > div {
103103
background: #f6f7f7 !important;
104104
}
105-
.tabulator-cell, .tabulator-col-title {
105+
.tabulator-cell,
106+
.tabulator-col-title {
106107
font-size: 14px !important;
107108
font-family: "Inter", "Helvetica Neue", sans-serif !important;
108109
}
109110
.tabulator-cell > .table-download-icon {
110111
display: none;
111112
}
112-
.tabulator-col-content, .tabulator-cell {
113+
.tabulator-col-content,
114+
.tabulator-cell {
113115
padding: 6px 4px !important;
114116
vertical-align: middle !important;
115-
}
117+
}

0 commit comments

Comments
 (0)