Skip to content

Added description on the profile page#100

Closed
Iwueseiter wants to merge 2 commits intoTheSoftwareDevGuild:mainfrom
Iwueseiter:description
Closed

Added description on the profile page#100
Iwueseiter wants to merge 2 commits intoTheSoftwareDevGuild:mainfrom
Iwueseiter:description

Conversation

@Iwueseiter
Copy link

  • Added a component to display profile descriptions on the zoomed profile page, positioned between action buttons and attestations.

  • Updated Create/Edit profile dialogs to use a larger textarea for the description field, allowing multiline input.

  • Ensured profile descriptions are shown where necessary.

Closes #49

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

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

Thank you for your submission!
However, this needs a bit more work, see comment

type Props = { address?: string };

export default function ProfilePage({ address }: Props) {
const profilesQuery = useGetProfiles();
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok so this won't work because AppWrapper, which injects query client is in this component. Instead, you should create a new component ProfileMain.tsx in components/profiles/profile-page with the content of AppWrapper here and then use the hook at this level.
OR
move AppWrapper to frontend/src/pages/profiles/[address].astro (probable better? if that works?)

So while you are at it, please remove the same logic in ProfileHeader and inject name and description into ProfileHeader from ProfileMain using props

Copy link
Author

Choose a reason for hiding this comment

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

Alright!

Copy link
Contributor

Choose a reason for hiding this comment

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

ProfileMain was implemented in #98 so please rebase with main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add description on the profile page

2 participants

Comments