Skip to content

Add builders page. #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

byte-hedgy
Copy link
Contributor

@byte-hedgy byte-hedgy commented Jul 17, 2025

Description

  1. I created builders/page.tsx to display information about checked-in builders.
  2. Added a Builders link in the head navigation.

Regarding the issue in #3, the problem might have been caused by the default blocksBatchSize value of 500, which led the browser to continuously send requests without showing any results. One of the requests triggered a "too many requests" error, which may have caused repeated retries.

I’ve increased blocksBatchSize to 5000000, and now everything works as expected.

Screenshots below:
图片

Additional Information

Related Issues

Closes #3

Your ENS/address: 0xADAeE26D04f78D24F2E73D87944f83E2eE50d6BB

Copy link

vercel bot commented Jul 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
batch18.buidlguidl.com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2025 11:09am

import { useScaffoldEventHistory } from "~~/hooks/scaffold-eth";

type Props = {
builders: string[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

This parameter name is confusing. It shouldn’t represent all builders, only those who have a profile page.

Comment on lines +25 to +68
<table className="table overflow-hidden">
<thead>
<tr>
<th>Member Address</th>
<th>Contract Address</th>
<th>Personal Profile</th>
</tr>
</thead>
<tbody>
{!filteredEvents || filteredEvents.length === 0 ? (
<tr>
<td colSpan={3} className="text-center">
No Data
</td>
</tr>
) : (
filteredEvents?.map((event, index) => {
return (
<tr key={index}>
<td>
<Address address={event.args.builder} format="short" onlyEnsOrAddress />
</td>
<td>
<Address address={event.args.checkInContract} format="short" onlyEnsOrAddress />
</td>
<td>
{builders.includes(event.args.builder ?? "") ? (
<Link
href={`builders/${event.args.builder}`}
target="_blank"
className="text-base text-blue-600 underline hover:text-blue-800 cursor-pointer whitespace-nowrap"
>
🧑‍💻 builders/{event.args.builder}
</Link>
) : (
"N/A"
)}
</td>
</tr>
);
})
)}
</tbody>
</table>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this table good on mobile devices?

Copy link
Contributor

@MrRogueKnight MrRogueKnight Jul 17, 2025

Choose a reason for hiding this comment

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

one suggestion @byte-hedgy Wrap your table in a div with overflow-x-auto and w-full

Copy link
Collaborator

Choose a reason for hiding this comment

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

one suggestion @byte-hedgy Wrap your table in a div with overflow-x-auto and w-full

It might feel a bit clunky to have horizontal scrolling within a vertical scroll. Since there isn’t that much info, a simple vertical list of cards could work nicely!

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.

g) List the members of the batch (read BatchRegistry contract)
3 participants