Skip to content

Show the user's picture in the account menu - #327

Merged
AQIB-NAWAB merged 1 commit into
mainfrom
feat/account-avatar
Nov 27, 2026
Merged

AQIB-NAWAB merged 1 commit into
mainfrom
feat/account-avatar

Conversation

@AQIB-NAWAB

Copy link
Copy Markdown
Collaborator

What

The account menu (bottom left of the learner and admin workspaces) showed only the initials. It now shows the account's picture and falls back to the initials while the picture loads or when there is none.

  • Uses the existing Avatar component. The picture is a circle at the same size as before.
  • referrerPolicy="no-referrer" on the image, because Google profile pictures can refuse requests that carry a referrer.
  • image added to the user type of the account menu and the learner and admin shells. The session already carried image.

Where the picture comes from

User.image. A Google sign-in saves the Google picture there (pull request 267, merged). Accounts without a picture still show initials. There is no upload yet.

Testing

  • Typecheck and lint show no errors in the changed files.
  • Checked in Chrome against the local app: with a picture set on the learner, the menu button renders an <img> with that address and shows the picture; the initials are the fallback.
  • Not tested: a real Google picture address, the admin and instructor workspaces (the instructor sidebar passes the same session user, but I did not open it), and phone width.

🤖 Generated with Claude Code

The account menu now shows the account's picture (a Google sign-in saves it) and falls back to the
initials while it loads or when there is none.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@AQIB-NAWAB
AQIB-NAWAB merged commit 5885d39 into main Nov 27, 2026
2 checks passed
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