-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(builder-page): Add personal builder profile page #15
feat(builder-page): Add personal builder profile page #15
Conversation
@All-Khwarizmi is attempting to deploy a commit to the BuidlGuidl Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thanks for your nice personal page!
You paid attention to mobile responsivness and dark/light mode.
Also the PR description is very good! Good job!
Below you'll find some little comments.
packages/nextjs/app/builders/0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E/page.tsx
Outdated
Show resolved
Hide resolved
packages/nextjs/app/builders/0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E/page.tsx
Outdated
Show resolved
Hide resolved
packages/nextjs/app/builders/0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E/page.tsx
Outdated
Show resolved
Hide resolved
da536f5
to
255faab
Compare
@phipsae I've implemented the requested changes:
Thank you for the review and the detailed suggestions. Learning a lot already 🚀 |
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.
Thanks for the changes!
Just found a little thing. Then we are ready to merge.
<Image | ||
src={BUILDER_INFO.avatar} | ||
alt="Profile" | ||
width={128} | ||
height={128} | ||
className="rounded-full object-cover" | ||
/> |
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.
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.
Solved!
Added the priority
property to improve the LCP loading.
For educational purposes here's the Next.js docs on the Image component priority property and a related explanation of the LCP (and core web vitals) .
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.
I just discovered another small issue that causes the following error during deployment to Vercel:
Type error: Page "app/builders/0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E/page.tsx" does not match the required types of a Next.js Page. "JasonBuilderProfile" is not a valid Page export field.
}, | ||
], | ||
} as const; | ||
export const JasonBuilderProfile: NextPage = () => { |
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.
To ensure compatibility with the Next.js deployment on vercel, we need to include a default export at the bottom of the code, such as export default JasonBuilderProfile.
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.
I had the default
export actually.
I had to remove the named
export for this to work.
I am a bit confused, why is @NikolaiL pushing his page to this PR? Let me know when you have any questions or need support! |
- Add priority attribut to Next.js Image component to improve Largest Contentful Paint (LCP). Since the image is detected in this layer we prioritize faster loading than lazy one. - Remove `named` export in favor of the `default` to be complaint with the NextPage type.
Could it be related to the fact that I rebase instead of merging to have the latest changes ? That's what I usually do when working on a feature for some time. I feel it helps avoiding conflicts but maybe that's something that should be handled in the PR? |
Ah true :) As a reviewer, it’s confusing to see all the changes and files that have already been merged into Does this makes sense? |
Yes makes perfect sense! This is the perfect example for someone wanting to argue in favor of merging over rebasing. |
Thanks a lot for the nice personal page and its merged. |
Description
Added personal builder profile page featuring:
Additional Information
Related Issues
#11
Your ENS/address: 0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E