Skip to content

Feature/preview other profile#69

Closed
TheSKBroook wants to merge 2 commits into
mainfrom
feature/preview-other-profile
Closed

Feature/preview other profile#69
TheSKBroook wants to merge 2 commits into
mainfrom
feature/preview-other-profile

Conversation

@TheSKBroook
Copy link
Copy Markdown

Summary

Implemented a read-only Public Profile View for viewing another user's profile by wallet address.

Architecture

Chose a separated route/component approach with shared presentation. The private /profile page and public /profile/[wallet] page both render through ProfileContent, while edit/upload/disconnect behavior remains owned only by the private profile page.

Changes

  • Extracted the existing profile card, badges, and event history UI into ProfileContent
  • Added shared profile display helpers in src/lib/profile.ts
  • Updated /profile to reuse the shared renderer while preserving existing editable behavior
  • Added /profile/[wallet] as a public, read-only profile route
  • Added public profile loading by wallet via the existing RegistrationService.getRegistrationByWallet

Verification

  • Targeted ESLint passed for the changed profile files
  • Full build is currently blocked by a pre-existing resolver type error in src/components/registration-form.tsx

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.

1 participant