Skip to content
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

Merged
merged 7 commits into from
Jan 10, 2025

Conversation

All-Khwarizmi
Copy link
Contributor

@All-Khwarizmi All-Khwarizmi commented Jan 7, 2025

Description

Capture d’écran 2025-01-08 à 05 42 10

Added personal builder profile page featuring:

  • Introduction & social links
  • Journey timeline
  • Focus areas
  • Languages

Additional Information

  • First contribution to batch repository
  • Following issue requirements

Related Issues

#11

Your ENS/address: 0x7d971C39bb700AcEc20879D46f092dC0DB1dbF9E

Copy link

vercel bot commented Jan 7, 2025

@All-Khwarizmi is attempting to deploy a commit to the BuidlGuidl Team on Vercel.

A member of the Team first needs to authorize it.

@phipsae phipsae requested review from derrekcoleman and phipsae and removed request for derrekcoleman January 8, 2025 04:35
Copy link

vercel bot commented Jan 8, 2025

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

Name Status Preview Comments Updated (UTC)
batch12.buidlguidl.com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 8:50am

Copy link
Collaborator

@phipsae phipsae left a 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.

@All-Khwarizmi All-Khwarizmi force-pushed the feat/add-jason-profile branch from da536f5 to 255faab Compare January 8, 2025 07:52
@All-Khwarizmi
Copy link
Contributor Author

@phipsae I've implemented the requested changes:

  • Added NextPage type
  • Changed to Next.js Image component (and updated the next.config accordingly)
  • Moved BUILDER_INFO to module scope and used made it read only
  • Renamed component for clarity

Thank you for the review and the detailed suggestions. Learning a lot already 🚀

Copy link
Collaborator

@phipsae phipsae left a 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.

Comment on lines 51 to 57
<Image
src={BUILDER_INFO.avatar}
alt="Profile"
width={128}
height={128}
className="rounded-full object-cover"
/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the console I see the following warning, would be nice if you could fix this pls.

Screenshot 2025-01-09 at 15 26 59

Copy link
Contributor Author

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) .

Copy link
Collaborator

@phipsae phipsae left a 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 = () => {
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@phipsae
Copy link
Collaborator

phipsae commented Jan 10, 2025

I am a bit confused, why is @NikolaiL pushing his page to this PR?
@All-Khwarizmi: If you want to have the latest version of the app, pls merge main into it.
We don't have have his profile page in 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.
@All-Khwarizmi
Copy link
Contributor Author

I am a bit confused, why is @NikolaiL pushing his page to this PR? @All-Khwarizmi: If you want to have the latest version of the app, pls merge main into it. We don't have have his profile page in this PR.

Let me know when you have any questions or need support!

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?

@phipsae
Copy link
Collaborator

phipsae commented Jan 10, 2025

I am a bit confused, why is @NikolaiL pushing his page to this PR? @All-Khwarizmi: If you want to have the latest version of the app, pls merge main into it. We don't have have his profile page in this PR.
Let me know when you have any questions or need support!

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 main appearing again in this PR. This makes it harder to focus on the actual changes being introduced. Since main is already in production and your PR will be merged into it, I believe the correct approach would be to merge the latest main into your branch. This makes the review process clearer in this context clearer.

Does this makes sense?

@All-Khwarizmi
Copy link
Contributor Author

All-Khwarizmi commented Jan 10, 2025

I am a bit confused, why is @NikolaiL pushing his page to this PR? @All-Khwarizmi: If you want to have the latest version of the app, pls merge main into it. We don't have have his profile page in this PR.
Let me know when you have any questions or need support!

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 main appearing again in this PR. This makes it harder to focus on the actual changes being introduced. Since main is already in production and your PR will be merged into it, I believe the correct approach would be to merge the latest main into your branch. This makes the review process clearer in this context clearer.

Does this makes sense?

Yes makes perfect sense!

This is the perfect example for someone wanting to argue in favor of merging over rebasing.

@phipsae phipsae merged commit 00f18a1 into BuidlGuidl:main Jan 10, 2025
2 checks passed
@phipsae
Copy link
Collaborator

phipsae commented Jan 10, 2025

Thanks a lot for the nice personal page and its merged.

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