Skip to content

[Bug]: pal card falls back to creator avatar when no thumbnail - #746

Merged
a-ghorbani merged 1 commit into
mainfrom
feature/TASK-20260525-1734
May 25, 2026
Merged

[Bug]: pal card falls back to creator avatar when no thumbnail#746
a-ghorbani merged 1 commit into
mainfrom
feature/TASK-20260525-1734

Conversation

@a-ghorbani

Copy link
Copy Markdown
Owner

Summary

  • Pal cards (SquarePalCard) without a thumbnail_url were falling back to the creator's avatar_url. For pals you authored yourself (locally or via PalsHub), the creator avatar is your own profile picture — so blank-thumbnail pals looked like they were branded with your face.
  • Drop the creator-avatar branch and fall straight through to the first-letter placeholder, matching the behavior already used by PalDetailSheet (neutral placeholder, never the creator avatar).
  • Server-side data is correct; this was purely a client-side rendering choice introduced with the original PalsHub integration.

Test plan

  • yarn test src/screens/PalsScreen/components/SquarePalCard — 28/28 pass
  • yarn tsc --noEmit — clean
  • yarn lint src/screens/PalsScreen/components/SquarePalCard/SquarePalCard.tsx — 0 errors
  • Manual: load a self-authored pal with no thumbnail → expect first-letter placeholder, not profile pic

Generated by PocketPal Dev Team

Pal cards with no thumbnail were falling back to the creator's avatar,
which for self-authored pals shows the user's own profile picture.
Fall through to the first-letter placeholder, matching PalDetailSheet.
@a-ghorbani a-ghorbani added the bug Something isn't working label May 25, 2026
@a-ghorbani
a-ghorbani requested a review from Copilot May 25, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes a UI bug in the Pals list where SquarePalCard would render a pal’s creator avatar as the thumbnail when the pal had no thumbnail_url, causing self-authored pals to appear “branded” with the user’s profile picture. The card now falls back directly to the neutral first-letter placeholder (consistent with PalDetailSheet behavior referenced in the PR description).

Changes:

  • Remove the creator-avatar fallback branch in SquarePalCard thumbnail rendering.
  • Simplify the thumbnail JSX to render either the pal thumbnail image or the first-letter placeholder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@a-ghorbani
a-ghorbani merged commit 6ae9e48 into main May 25, 2026
5 checks passed
@a-ghorbani
a-ghorbani deleted the feature/TASK-20260525-1734 branch June 17, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants