From 6e8606d0477976bf838365595c6eb1156435af81 Mon Sep 17 00:00:00 2001 From: michaelcanova Date: Sun, 9 Aug 2026 15:58:20 -0400 Subject: [PATCH 1/2] [Funding] Replacing Funding Dashboard with My Funding --- app/fund/dashboard/FunderDashboardContent.tsx | 33 ------------------- app/fund/dashboard/page.tsx | 18 ---------- app/give/components/GiveDashboard.tsx | 4 +-- components/Feed/FeedEntryItem.tsx | 2 +- .../Feed/items/FeedItemGrantComprehensive.tsx | 2 +- .../skeletons/GrantComprehensiveSkeleton.tsx | 2 +- components/Funding/FundingLinksMenu.tsx | 6 ++-- .../ResearchCoin/ResearchCoinSnapshot.tsx | 2 +- components/menus/UserMenu.tsx | 8 ++--- .../work/KeyInsights/KeyInsightsLine.tsx | 2 +- .../work/KeyInsights/KeyInsightsPanel.tsx | 2 +- 11 files changed, 15 insertions(+), 66 deletions(-) delete mode 100644 app/fund/dashboard/FunderDashboardContent.tsx delete mode 100644 app/fund/dashboard/page.tsx diff --git a/app/fund/dashboard/FunderDashboardContent.tsx b/app/fund/dashboard/FunderDashboardContent.tsx deleted file mode 100644 index 60d4e159b..000000000 --- a/app/fund/dashboard/FunderDashboardContent.tsx +++ /dev/null @@ -1,33 +0,0 @@ -'use client'; - -import { useEffect } from 'react'; -import { useRouter } from 'next/navigation'; -import { FundsGiven } from '@/components/Funding/dashboard/FundsGiven'; -import { useUser } from '@/contexts/UserContext'; - -export function FunderDashboardContent() { - const router = useRouter(); - const { user, isLoading: isLoadingUser } = useUser(); - - useEffect(() => { - if (!isLoadingUser && !user) { - router.replace('/'); - } - }, [isLoadingUser, router, user]); - - if (isLoadingUser || !user) return null; - - const firstName = user.firstName?.trim(); - - return ( - <> -
-

- {firstName ? `Welcome back, ${firstName}.` : 'Welcome back.'} -

-

Here's where your funding stands today.

-
- - - ); -} diff --git a/app/fund/dashboard/page.tsx b/app/fund/dashboard/page.tsx deleted file mode 100644 index a2c325435..000000000 --- a/app/fund/dashboard/page.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { Metadata } from 'next'; -import { PageLayout } from '@/app/layouts/PageLayout'; -import { buildOpenGraphMetadata } from '@/lib/metadata'; -import { FunderDashboardContent } from './FunderDashboardContent'; - -export const metadata: Metadata = buildOpenGraphMetadata({ - title: 'Funder Dashboard', - description: 'Track the impact of the research you fund.', - url: '/fund/dashboard', -}); - -export default function FunderDashboardRoute() { - return ( - - - - ); -} diff --git a/app/give/components/GiveDashboard.tsx b/app/give/components/GiveDashboard.tsx index eafaa2995..e50f5e2fc 100644 --- a/app/give/components/GiveDashboard.tsx +++ b/app/give/components/GiveDashboard.tsx @@ -88,7 +88,7 @@ export function GiveDashboard() { all the way to the result.

- Your funder dashboard brings every opportunity you support into one place. + My Funding brings every opportunity you support into one place.