feat(frontend): show account profile row with logout - #408
feat(frontend): show account profile row with logout#408MohakGupta2004 wants to merge 4 commits into
Conversation
Surfaces the logged-in user's email/role instead of a bare logout icon, so a shared/self-hosted deployment shows whose session is active.
🦋 Changeset detectedLatest commit: d37bf2a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4184595. Configure here.
frontend is private (bundled into @truefoundry/trueforge); the changeset must bump the published package, not the private one.
|
@MohakGupta2004 u can put the screenshot as well so that reviewer get better idea about ur pr |
Screen.Recording.2026-08-24.at.6.18.46.PM.movWould this be good? Please suggest me any changes if you want to make it. |

Surfaces the logged-in user's email/role instead of a bare logout icon, so a shared/self-hosted deployment shows whose session is active.
Summary
Closes #363
Changes
Replace
LogoutButton.tsx/LogoutButton.csswithUserProfile.tsx/UserProfile.css: avatar+email trigger row → Account modal (email, role, Log out) → existing logout confirm dialogCache
email/rolefromauth.me()inauthSession.tsalongside the existing oidc-connected flagAdd
usericon to the shared icon registry (@truefoundry/trueforge-ui)Add changeset for
frontendand@truefoundry/trueforge-uiHow was this tested?
pnpm test
Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Low Risk
UI-only identity display and the same logout path; no auth protocol or session-validation changes.
Overview
Replaces the shell’s bare logout icon with an account control so OIDC sessions show who is logged in.
The
ShellActionsActionSlotoverride is nowUserProfile: an initial-letter avatar opens an Account modal with email, role, and Log out, then the existing confirm-and-redirect logout flow.auth.me()results cacheemailandrolenext to the oidc-connected flag so remounts still show identity. Ausericon is registered in trueforge-ui for the no-email fallback.Reviewed by Cursor Bugbot for commit d37bf2a. Bugbot is set up for automated code reviews on this repo. Configure here.