Skip to content

feat(TRB-050): add ProfilePostsList component and wire into profile page - #67

Merged
MikeBlakeway merged 1 commit into
mainfrom
feat/TRB-050
Apr 20, 2026
Merged

feat(TRB-050): add ProfilePostsList component and wire into profile page#67
MikeBlakeway merged 1 commit into
mainfrom
feat/TRB-050

Conversation

@MikeBlakeway

Copy link
Copy Markdown
Owner
  • Implement ProfilePostsList client component fetching user posts via GET /api/v1/posts
  • Add ProfilePostsListSkeleton, empty, error, and load-more states
  • Normalise snake_case API response to FeedItem shape for FeedPost rendering
  • Optimistic like toggle with revert on failure; 12 tests covering all states
  • Import and render ProfilePostsList below position section in profile page
  • Pass userId, profileUsername, and server-session token as props
  • Update page test: mock ProfilePostsList and assert correct props received

- Implement ProfilePostsList client component fetching user posts via GET /api/v1/posts
- Add ProfilePostsListSkeleton, empty, error, and load-more states
- Normalise snake_case API response to FeedItem shape for FeedPost rendering
- Optimistic like toggle with revert on failure; 12 tests covering all states- Import and render ProfilePostsList below position section in profile page
- Pass userId, profileUsername, and server-session token as props
- Update page test: mock ProfilePostsList and assert correct props received
@MikeBlakeway
MikeBlakeway merged commit ed21a9b into main Apr 20, 2026
5 checks passed
@MikeBlakeway
MikeBlakeway deleted the feat/TRB-050 branch April 20, 2026 11:30
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