Skip to content

Commit 071f6f7

Browse files
Merge pull request #101 from globalfund/develop
Release
2 parents 0f9f039 + 98db12b commit 071f6f7

File tree

63 files changed

+542
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+542
-473
lines changed

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
1+
32

43
yarn prettier src/app --check
54
npx eslint src --ext .js,.jsx,.tsx,ts --max-warnings 0

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ describe("Testing The Location page", () => {
3434
"be.visible",
3535
);
3636
cy.contains("People with TB treated in 2022").should("be.visible");
37-
cy.contains("Mosquito nets distributed in 2022").should("be.visible");
37+
cy.contains(
38+
"Insecticide-treated mosquito nets distributed in 2022",
39+
).should("be.visible");
3840
});
3941

4042
it("Can filter page data", { scrollBehavior: false }, () => {

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
);

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"@types/react-router-hash-link": "^2.4.9",
2424
"@types/tabulator-tables": "^5.7.0",
2525
"@vitejs/plugin-react": "^4.7.0",
26-
"axios": "^1.6.8",
26+
"axios": "^1.13.2",
2727
"detect-it": "^4.0.1",
2828
"dom-to-image": "^2.6.0",
2929
"dotenv": "^16.4.6",
3030
"easy-peasy": "^6.1.0",
3131
"echarts": "^5.5.0",
32-
"jspdf": "^3.0.1",
32+
"jspdf": "^3.0.4",
3333
"lodash": "^4.17.21",
3434
"p-limit": "^6.2.0",
3535
"react": "^18.3.1",
@@ -42,7 +42,7 @@
4242
"styled-components": "^6.1.8",
4343
"tabulator-tables": "^6.2.1",
4444
"typescript": "^5.4.5",
45-
"vite": "^7.0.6",
45+
"vite": "^7.2.4",
4646
"web-vitals": "^3.3.1"
4747
},
4848
"devDependencies": {

public/gflogo.png

1.68 KB
Loading

src/app/components/chart-block/components/button-toolbar/data.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const InfoPanel: React.FC<InfoPanelProps> = (props: InfoPanelProps) => {
196196
<Box display="flex" justifyContent="space-between" alignItems="center">
197197
<Typography
198198
color="#495057"
199-
fontSize="12px"
199+
fontSize="14px"
200200
fontWeight="700"
201201
marginBottom="8px"
202202
>
@@ -217,7 +217,7 @@ export const InfoPanel: React.FC<InfoPanelProps> = (props: InfoPanelProps) => {
217217
className="scrollbar"
218218
style={{
219219
color: "#495057",
220-
fontSize: "12px",
220+
fontSize: "14px",
221221
overflowY: "auto",
222222
maxHeight: "270px",
223223
}}

src/app/components/chart-block/components/button-toolbar/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const ChartBlockButtonToolbar: React.FC<ChartBlockButtonToolbarProps> = (
7676
"& > button": {
7777
padding: "0",
7878
width: "40px",
79-
height: "30px",
79+
height: "35px",
8080
borderRadius: "4px",
8181
background: "transparent",
8282
border: "1px solid #DFE3E5",
@@ -105,10 +105,10 @@ export const ChartBlockButtonToolbar: React.FC<ChartBlockButtonToolbarProps> = (
105105
flexDirection="row"
106106
sx={{
107107
"& > button": {
108-
height: "30px",
108+
height: "35px",
109109
fontSize: "14px",
110110
fontWeight: "400",
111-
padding: "7px 12px",
111+
padding: "9px 12px",
112112
borderRadius: "4px",
113113
textTransform: "none",
114114
color: appColors.CHART_BLOCK_CYCLES.BUTTON_TEXT_COLOR,
@@ -124,10 +124,10 @@ export const ChartBlockButtonToolbar: React.FC<ChartBlockButtonToolbarProps> = (
124124
},
125125
},
126126
"& > div": {
127-
height: "30px",
127+
height: "35px",
128128
fontSize: "14px",
129129
fontWeight: "400",
130-
padding: "7px 12px",
130+
padding: "9px 12px",
131131
borderRadius: "4px",
132132
color: appColors.COMMON.WHITE,
133133
background: appColors.COMMON.BLACK,

src/app/components/chart-block/components/cycles/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export const ChartBlockCycles: React.FC<ChartBlockCyclesProps> = (
2424
position="relative"
2525
sx={{
2626
"& > button": {
27-
height: "32px",
27+
height: "35px",
2828
fontSize: "14px",
2929
fontWeight: "400",
30-
padding: "7px 12px",
30+
padding: "9px 12px",
3131
borderRadius: "4px",
3232
textTransform: "none",
3333
border: "1px solid #DFE3E5",

src/app/components/chart-block/index.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React from "react";
22
import Box from "@mui/material/Box";
33
import uniqueId from "lodash/uniqueId";
44
import Divider from "@mui/material/Divider";
5+
import { useCMSData } from "app/hooks/useCMSData";
56
import Typography from "@mui/material/Typography";
67
import { Dropdown } from "app/components/dropdown";
8+
import { getCMSDataField } from "app/utils/getCMSDataField";
79
import CircularProgress from "@mui/material/CircularProgress";
810
import { ChartBlockProps } from "app/components/chart-block/data";
911
import { ChartBlockCycles } from "app/components/chart-block/components/cycles";
1012
import { ChartBlockButtonToolbar } from "app/components/chart-block/components/button-toolbar";
11-
import { useCMSData } from "app/hooks/useCMSData";
12-
import { getCMSDataField } from "app/utils/getCMSDataField";
1313

1414
export const ChartBlock: React.FC<ChartBlockProps> = (
1515
props: ChartBlockProps,
@@ -82,7 +82,12 @@ export const ChartBlock: React.FC<ChartBlockProps> = (
8282
{props.subtitle}
8383
</Typography>
8484
{props.text && props.text.length > 0 && (
85-
<Typography variant="subtitle2" lineHeight="normal" marginBottom="20px">
85+
<Typography
86+
fontSize="18px"
87+
variant="subtitle2"
88+
lineHeight="normal"
89+
marginBottom="20px"
90+
>
8691
<Box
8792
sx={{
8893
a: { textDecoration: "none", fontWeight: "700", color: "#000" },
@@ -181,7 +186,7 @@ export const ChartBlock: React.FC<ChartBlockProps> = (
181186
justifyContent={props.latestUpdate ? "space-between" : "flex-end"}
182187
>
183188
{props.latestUpdate && (
184-
<Typography variant="overline">
189+
<Typography variant="overline" fontSize="14px">
185190
{getCMSDataField(
186191
cmsData,
187192
"pagesHome.latestUpdateText",

src/app/components/charts/bar-series/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const BarSeriesChart: React.FC<BarSeriesChartProps> = (
174174
show: false,
175175
},
176176
nameTextStyle: {
177-
fontSize: "10px",
177+
fontSize: "12px",
178178
fontFamily: "Inter, sans-serif",
179179
color: appColors.TIME_CYCLE.AXIS_TEXT_COLOR,
180180
},
@@ -215,7 +215,7 @@ export const BarSeriesChart: React.FC<BarSeriesChartProps> = (
215215
align: "left",
216216
itemGap: 20,
217217
textStyle: {
218-
fontSize: "12px",
218+
fontSize: "14px",
219219
fontFamily: "Inter, sans-serif",
220220
color: appColors.TIME_CYCLE.AXIS_TEXT_COLOR,
221221
},

0 commit comments

Comments
 (0)