Repository navigation
Conversation
…selector fixes
Replaces the bare logout icon in the navbar with an account menu (deterministic
avatar with stable initials/color, profile/password/API-key links, sign out).
Adds a self-service Account settings tab backed by the existing /users/profile
and /users/password endpoints, which are now session-only and commit their
audit event atomically with the write (previously unaudited and reachable via
API key, despite being credential changes).
Also fixes the organization selector to pin the current org at the top of the
switcher (instead of wherever it falls in the list) and to render role labels
properly ("Super Admin" instead of "Super_admin"), applied consistently
wherever org roles are rendered.
LiveReview Pre-Commit Check: skipped (iter:1, coverage:0%)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/settings#account(visible to every authenticated user, no org-role gate) for editing your own name and changing your password, backed by the existingPUT /users/profileandPUT /users/passwordendpoints.Checks run locally (mirroring CI)
make testall— all Go tests passnpx tsc --noEmit— cleangofmt -lon changed files — cleango veton touched packages — clean (one pre-existing unreachable-code warning ininternal/api/middleware/selfhosted_enforcement.go, unrelated to this change)make security-govulncheck— no vulnerabilitiesmake security-osv— 0 resultsmake security-gitleaks— no leaks found (2384 commits scanned)make security-semgrep— 0 findings (1817 rules / 2311 files)Test plan
/settings#account, confirm it reflects immediately in the navbar avatar/name.PUT /users/profile/PUT /users/passwordare rejected (403) when called with an API key instead of a session.🔍 LiveReview
⚙️ Customize risk-based approval policy for this repository or your organization.