From 80353eea97f3bef4193158b21d1f17d463efd80c Mon Sep 17 00:00:00 2001 From: Mike Schennum Date: Fri, 6 Mar 2026 11:23:18 -0700 Subject: [PATCH] change recent contributions to a link --- .../components/LatestContributions.tsx | 56 +++++++------------ src/app/(default)/page.tsx | 21 +++---- 2 files changed, 26 insertions(+), 51 deletions(-) diff --git a/src/app/(default)/components/LatestContributions.tsx b/src/app/(default)/components/LatestContributions.tsx index 58f57c403..d4ac8ecd0 100644 --- a/src/app/(default)/components/LatestContributions.tsx +++ b/src/app/(default)/components/LatestContributions.tsx @@ -1,6 +1,6 @@ -import { ReactNode } from 'react' import Link from 'next/link' -import { ArrowRightIcon } from '@heroicons/react/24/outline' +import { ArrowRightIcon, PencilSquareIcon } from '@heroicons/react/24/outline' +import { SectionContainer } from './ui/SectionContainer' // Temporarily disabled to test build - this fetches 6MB of data // import { getChangeHistoryServerSide } from '@/js/graphql/contribAPI' @@ -13,40 +13,22 @@ export const LatestContributions: React.FC = async () => { // Temporarily disabled - fetches 6MB history just to show 10 items // const history = await getChangeHistoryServerSide() return ( - -
- Latest contributions temporarily disabled -
-
- ) -} - -/** - * Resuable container for actual and skeleton - */ -const Container: React.FC<{ children: ReactNode }> = ({ children }) => ( -
-
-

LATEST CONTRIBUTIONS

- See more -
-
-
- {children} -
-
- See more -
-
-) - -/** - * Loading skelton - */ -export const LatestContributionsSkeleton: React.FC = () => { - return ( - - {[1, 2, 3, 4, 5].map(item =>
)} - + Latest Contributions}> + +
+
+ +
+
+

View recent edits

+

Browse the latest changes made by the community

+
+
+ + +
) } diff --git a/src/app/(default)/page.tsx b/src/app/(default)/page.tsx index 506255203..0774932ee 100644 --- a/src/app/(default)/page.tsx +++ b/src/app/(default)/page.tsx @@ -1,13 +1,12 @@ -import { Suspense } from 'react' import { LandingHero } from './components/LandingHero' // import { getChangeHistoryServerSide } from '@/js/graphql/contribAPI' -import { LatestContributions, LatestContributionsSkeleton } from './components/LatestContributions' +import { LatestContributions } from './components/LatestContributions' import { FinancialContributors } from './components/FinancialContributors' import { RecentTags } from './components/RecentTags' import { USAToC } from './components/USAToC' import { InternationalToC } from './components/InternationalToC' import { Volunteers } from './components/Volunteers' -import { RecentContributionsMap } from './components/recent/RecentContributionsMap' +// import { RecentContributionsMap } from './components/recent/RecentContributionsMap' // import { ChangesetType } from '@/js/types' export const revalidate = 3600 // 1 hour @@ -24,7 +23,7 @@ export default async function Home (): Promise { // console.error('Failed to fetch change history during build:', error) // // Continue with empty history if API is down // } - const history: never[] = [] + // const history: never[] = [] return ( <>
@@ -32,17 +31,11 @@ export default async function Home (): Promise {
-
-
- }> - - -
- -
+ + {/* Temporarily disabled to test if this is causing build failures */} + {/*
-
-
+
*/}