Skip to content

feat: let admins edit username on the users screen - #467

Open
Nithya113 wants to merge 1 commit into
TencentCloud:developfrom
Nithya113:feature/317-admin-edit-username-display-name
Open

feat: let admins edit username on the users screen#467
Nithya113 wants to merge 1 commit into
TencentCloud:developfrom
Nithya113:feature/317-admin-edit-username-display-name

Conversation

@Nithya113

Copy link
Copy Markdown

Summary

  • Admins can change a user's username (and existing display name) from the Users edit drawer.
  • PATCH /api/users/{id} persists the new username and rekeys the in-memory user cache.
  • Later fields in the same PATCH (email, permissions, etc.) use the new username so Save no longer returns 404 after a rename.

Fixes #317

Test plan

  • Open Admin → Users on the Vite dashboard (localhost:5173 with local backend).
  • Edit a user, change username and display name, Save — expect 200, list shows the new username.
  • Confirm PATCH /api/users/{id} in the octop run terminal and no 404.
  • Saving with an unchanged username still succeeds.
  • Editing only display name still works.

Made with Cursor

PATCH /api/users now persists username changes and keeps later field updates on the new name so Save no longer 404s after a rename.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants