From b0ba750604e37d4a3be90d51302e038bca3f1879 Mon Sep 17 00:00:00 2001 From: ivannissimrch Date: Tue, 7 Jul 2026 19:05:54 -0400 Subject: [PATCH 1/3] bump SDK to 0.0.119 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4934319e..c87718a7 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "date-fns": "^4.1.0", "email-validator": "^2.0.4", "i18next": "^25.3.2", - "need4deed-sdk": "0.0.115", + "need4deed-sdk": "0.0.119", "next": "15.3.8", "react": "^19.0.0", "react-day-picker": "^9.13.0", diff --git a/yarn.lock b/yarn.lock index 55659f55..f17d3cab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2412,10 +2412,10 @@ natural-compare@^1.4.0: resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -need4deed-sdk@0.0.115: - version "0.0.115" - resolved "https://registry.yarnpkg.com/need4deed-sdk/-/need4deed-sdk-0.0.115.tgz#cb07ffaabbd22353e65b28e9a592a3a78b269593" - integrity sha512-VoOpHlSnAUgNIHrUsKPrj1L4299ze+bBFsnCLs3BP5IPL5lLN5uK1vzkT+t9rAgilb8h22HqXWlzxMAPBhoTcA== +need4deed-sdk@0.0.119: + version "0.0.119" + resolved "https://registry.yarnpkg.com/need4deed-sdk/-/need4deed-sdk-0.0.119.tgz#e7d3ad32223b3ad2712e9e8b6d9d61c9d4426c01" + integrity sha512-hYXEdcm3p1zv8cTTRdCf4MSPG2QOunObrIdY45WKEdqO6ZsHa7FGX2Xgb7c+yXlB8ZWlIuEaklxJ6rZYJA+XeA== next@15.3.8: version "15.3.8" From 5e2e4acef83f7dfca2b28ee03ba8df136a7c2414 Mon Sep 17 00:00:00 2001 From: ivannissimrch Date: Tue, 7 Jul 2026 20:13:23 -0400 Subject: [PATCH 2/3] show numOpportunities in agent table, drop typed email cast --- src/components/Dashboard/Agents/AgentTableRow.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Dashboard/Agents/AgentTableRow.tsx b/src/components/Dashboard/Agents/AgentTableRow.tsx index 3a1073a2..f586a3b1 100644 --- a/src/components/Dashboard/Agents/AgentTableRow.tsx +++ b/src/components/Dashboard/Agents/AgentTableRow.tsx @@ -20,9 +20,7 @@ export function AgentTableRow({ agent, isLast, typeLabels, searchLabels, distric const { i18n } = useTranslation(); const router = useRouter(); - const { id, title, type, volunteerSearch, district, activeVolunteers } = agent; - // email is not in ApiAgentGetList SDK type — cast until SDK is updated - const email = (agent as ApiAgentGetList & { email?: string }).email; + const { id, title, type, volunteerSearch, district, activeVolunteers, numOpportunities, email } = agent; const districtTitle = district?.id ? (districtsList?.find((d) => d.id === district.id)?.title ?? null) : null; const handleGoToProfile = () => { @@ -48,7 +46,7 @@ export function AgentTableRow({ agent, isLast, typeLabels, searchLabels, distric {activeVolunteers} - {"—"} + {numOpportunities || "—"} {email || "—"} From febef4dbe8fdcd6510d3ea7794efdf1b42ef6377 Mon Sep 17 00:00:00 2001 From: ivannissimrch Date: Thu, 9 Jul 2026 15:21:17 -0400 Subject: [PATCH 3/3] fix: display 0 for agents with no opportunities --- src/components/Dashboard/Agents/AgentTableRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dashboard/Agents/AgentTableRow.tsx b/src/components/Dashboard/Agents/AgentTableRow.tsx index f586a3b1..6635f382 100644 --- a/src/components/Dashboard/Agents/AgentTableRow.tsx +++ b/src/components/Dashboard/Agents/AgentTableRow.tsx @@ -46,7 +46,7 @@ export function AgentTableRow({ agent, isLast, typeLabels, searchLabels, distric {activeVolunteers} - {numOpportunities || "—"} + {numOpportunities ?? "—"} {email || "—"}