Skip to content

change recent contributions to a link#1451

Merged
CocoisBuggy merged 1 commit intodevelopfrom
feat-change-recent-contribs
Mar 6, 2026
Merged

change recent contributions to a link#1451
CocoisBuggy merged 1 commit intodevelopfrom
feat-change-recent-contribs

Conversation

@mikeschen
Copy link
Contributor


name: Pull request
about: Create a pull request
title: ''
labels: ''
assignees: @mikeschen


What type of PR is this?(check all applicable)

  • refactor
  • feature
  • bug fix
  • documentation
  • optimization
  • other

Description

Link for Latest Contributions , removed unused Map

Related Issues

Issue #

What this PR achieves

Screenshots, recordings

Screenshot 2026-03-06 at 11 21 32 AM

Notes

@railway-app railway-app bot temporarily deployed to open-tacos / open-tacos-pr-1451 March 6, 2026 18:50 Destroyed
@mikeschen mikeschen requested a review from clintonlunn March 6, 2026 18:50
@railway-app
Copy link

railway-app bot commented Mar 6, 2026

🚅 Deployed to the open-tacos-pr-1451 environment in open-tacos

Service Status Web Updated (UTC)
open-tacos ✅ Success (View Logs) Web Mar 6, 2026 at 6:55 pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the homepage “Latest Contributions” area to be a lightweight link to the /edit page, and disables the recent contributions map section to avoid build-time issues.

Changes:

  • Replaces the “Latest Contributions” placeholder UI with a card-style link to /edit.
  • Removes Suspense + skeleton usage around LatestContributions on the homepage.
  • Comments out the recent contributions map section and related history-fetch scaffolding on the homepage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/app/(default)/page.tsx Simplifies the homepage contributions section and comments out the map/history logic.
src/app/(default)/components/LatestContributions.tsx Reworks LatestContributions into a SectionContainer card that links to /edit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</Container>
<SectionContainer header={<h2>Latest Contributions</h2>}>
<Link
href='/edit'
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link points to /edit, which (per this file’s comments) triggers a large server fetch (~6MB). With Next.js default link prefetching, the homepage may still background-prefetch /edit and incur that cost. Consider setting prefetch={false} for this Link (or otherwise disabling prefetch) to avoid reintroducing the expensive request during normal homepage browsing.

Suggested change
href='/edit'
href='/edit'
prefetch={false}

Copilot uses AI. Check for mistakes.
Comment on lines 18 to +26
// Temporarily disabled to test if this is causing build failures
// let history: ChangesetType[] = []
// try {
// history = await getChangeHistoryServerSide()
// } catch (error) {
// console.error('Failed to fetch change history during build:', error)
// // Continue with empty history if API is down
// }
const history: never[] = []
// const history: never[] = []
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s a large block of commented-out logic for fetching history. If this is meant to be a temporary rollback for build stability, it would be more maintainable to either remove the dead code entirely or gate it behind a feature flag/TODO that links to an issue describing when/how it will be re-enabled.

Copilot uses AI. Check for mistakes.
Comment on lines +35 to +38
{/* Temporarily disabled to test if this is causing build failures */}
{/* <div className='lg:col-span-2 h-[450px]'>
<RecentContributionsMap history={history} />
</div>
</div>
</div> */}
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says the unused map was removed, but the map is still present as commented-out JSX. Either remove the map code entirely (and related imports) if it’s not needed, or update the PR description to reflect that it’s only temporarily disabled.

Copilot uses AI. Check for mistakes.
@CocoisBuggy CocoisBuggy merged commit f026277 into develop Mar 6, 2026
12 checks passed
@CocoisBuggy CocoisBuggy deleted the feat-change-recent-contribs branch March 6, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants