feat: add profile social fields, PATCH endpoint, and Stellar address validation - #91
Merged
OlaGreat merged 1 commit intoMar 26, 2026
Conversation
…validation Schema migration (OlaGreat#75): - Add email (unique), websiteUrl, twitterHandle, githubHandle to Profile - Migration: 20260326000000_add_profile_social_fields Seed data (OlaGreat#76): - Update seed with demo social field values PATCH endpoint (OlaGreat#78): - PATCH /profiles/:username accepts displayName, bio, avatarUrl, email, websiteUrl, twitterHandle, githubHandle - Fields nullable (set to null to clear), validated with Zod - Returns 400 for invalid formats, 404 for missing profile Stellar address validation (OlaGreat#79): - Use StrKey.isValidEd25519PublicKey for full checksum validation - Applied to both POST /profiles and PATCH /profiles/:username - Rejects addresses that pass regex but have invalid checksum 5 new tests added for PATCH, validation, and edge cases. Closes OlaGreat#75 Closes OlaGreat#76 Closes OlaGreat#78 Closes OlaGreat#79
|
@ogazboiz is attempting to deploy a commit to the olamilekan's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ogazboiz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schema Migration (#75)
email(unique),websiteUrl,twitterHandle,githubHandleto Profile model20260326000000_add_profile_social_fieldsSeed Data (#76)
stellar-devprofilePATCH /profiles/:username (#78)
displayName,bio,avatarUrl,email,websiteUrl,twitterHandle,githubHandlenullto clear themStellar Address Validation (#79)
StrKey.isValidEd25519PublicKey()from@stellar/stellar-sdkfor full checksum validationPOST /profilesand wallet address inputs5 new tests covering PATCH update, nullable fields, invalid formats, bad checksum rejection, and 404.
Closes #75
Closes #76
Closes #78
Closes #79
Test plan
npm run build— TypeScript compiles cleanlynpm run db:migrate:deployapplies migrationnpm run test— all tests pass (existing + 5 new)