Skip to content

Show own stats at top of friends stats page#1

Merged
phulin merged 1 commit intophulin:mainfrom
jhurwitz:self-stats-card
Mar 2, 2026
Merged

Show own stats at top of friends stats page#1
phulin merged 1 commit intophulin:mainfrom
jhurwitz:self-stats-card

Conversation

@jhurwitz
Copy link
Contributor

Summary

  • Adds the current user's own stats card (friend count, lifetime oys sent, lifetime oys received) at the top of the friends stats page
  • The self card omits fields that don't apply to yourself: last oy timestamp, streak, nickname, unfriend, block, and report
  • Self stats are fetched in parallel with friend profiles in a single API call

Test plan

  • Open the friends stats page and verify your own stats card appears at the top
  • Verify the self card shows username, friend count, lifetime oys sent, and lifetime oys received
  • Verify the self card does not show last oy, streak, nickname input, or action buttons
  • Verify friend cards below still render and function correctly

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@phulin
Copy link
Owner

phulin commented Mar 2, 2026

approved without review

@phulin phulin merged commit 98ba5e8 into phulin:main Mar 2, 2026
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.

2 participants