From 76fd3c7065108c61e8a6eef203feeeaa7d9fdafa Mon Sep 17 00:00:00 2001 From: bunker-admin Date: Sat, 11 Apr 2026 10:37:40 -0600 Subject: [PATCH] Fix action-campaigns list shape + widen volunteer dashboard on desktop The admin list endpoint returned a bare array but the frontend list page expected { items: [] }. Newly-created campaigns were saving successfully but rendering as an empty list. Wrap the response to match the contract that the frontend was already coded against. VolunteerLayout capped content at 800px wide, which suits the phone-first volunteer tool pages but left most of the desktop screen empty on the new dashboard. Bump the cap to 1280px for /volunteer only so other volunteer pages keep their narrow sizing. Bunker Admin --- admin/src/components/VolunteerLayout.tsx | 2 +- api/src/modules/action-campaigns/action-campaigns.routes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/components/VolunteerLayout.tsx b/admin/src/components/VolunteerLayout.tsx index fc969159..b3d1a5ca 100644 --- a/admin/src/components/VolunteerLayout.tsx +++ b/admin/src/components/VolunteerLayout.tsx @@ -103,7 +103,7 @@ export default function VolunteerLayout() { { try { const campaigns = await actionCampaignsService.listCampaigns(); - res.json(campaigns); + res.json({ items: campaigns }); } catch (err) { next(err); }