-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
import { useScaffoldEventHistory } from "~~/hooks/scaffold-eth"; | ||
|
||
type Props = { | ||
builders: string[]; |
There was a problem hiding this comment.
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.
<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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
Description
builders/page.tsx
to display information about checked-in builders.head
navigation.Regarding the issue in #3, the problem might have been caused by the default
blocksBatchSize
value of500
, 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
to5000000
, and now everything works as expected.Screenshots below:

Additional Information
Related Issues
Closes #3
Your ENS/address: 0xADAeE26D04f78D24F2E73D87944f83E2eE50d6BB