Skip to content

feat: added user avatar - #630

Open
vinit-truefoundry wants to merge 1 commit into
mainfrom
chore/FRONTEN-2436/why-is-user-avatar-not-visible
Open

feat: added user avatar#630
vinit-truefoundry wants to merge 1 commit into
mainfrom
chore/FRONTEN-2436/why-is-user-avatar-not-visible

Conversation

@vinit-truefoundry

@vinit-truefoundry vinit-truefoundry commented Sep 8, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-09-08 at 3 29 12 PM

Note

Low Risk
Mostly UI and public slot API; session probing now maps auth.me() display name into React state with no change to auth redirects or authorization.

Overview
Adds a host-overridable UserAvatar slot that shows initials and a truncated display name in shell chrome across sidebar, drawer, dock, and widget layouts. Hosts pass identity via a new currentUser prop on TrueForgeUI, backed by CurrentUserProvider and useOptionalCurrentUser.

The default UserAvatar atom reads from that context, renders nothing without a non-empty name, and supports a labeled variant for the sidebar rail. Custom chrome can replace it with overrides.UserAvatar.

The TrueForge frontend now treats session state as structured objects (including displayName from /me) instead of plain 'authenticated' | 'unauthenticated', and passes currentUser={{ displayName: session.displayName }} into the UI after login.

Reviewed by Cursor Bugbot for commit 749c3db. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 749c3db

The changes in this PR will be included in the next version bump.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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