Skip to content

Include ability to update existing user data#52

Merged
jeroenrinzema merged 2 commits intomainfrom
feat/update-user
Oct 15, 2025
Merged

Include ability to update existing user data#52
jeroenrinzema merged 2 commits intomainfrom
feat/update-user

Conversation

@jeroenrinzema
Copy link
Copy Markdown
Contributor

image

@jeroenrinzema jeroenrinzema requested a review from Copilot October 15, 2025 08:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces the ability to update existing user data by adding a PATCH endpoint to the UserController and implementing an editable UI in the console for modifying user attributes.

  • Added PATCH endpoint with validation schema supporting identification by anonymous_id or external_id
  • Created editable user interface with real-time field editing and save functionality
  • Enhanced JsonPreview component to support editing capabilities

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
services/platform/src/users/UserController.ts Adds PATCH endpoint with JSON schema validation for user updates
services/console/src/views/users/UserDetailAttrs.tsx Implements editable user interface with state management and save functionality
services/console/src/ui/JsonPreview.tsx Enhances component to support editable mode with change callbacks
services/console/src/ui/utils.tsx Adds utility function to extract editable user fields
services/console/src/views/users/Users.tsx Imports CSS file for styling
services/console/src/views/users/Users.css Adds styling for user details attributes
services/console/src/types.ts Adds missing anonymous_id field to User interface

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread services/platform/src/users/UserController.ts Outdated
Comment thread services/console/src/views/users/UserDetailAttrs.tsx
Comment thread services/console/src/views/users/UserDetailAttrs.tsx Outdated
@jeroenrinzema jeroenrinzema merged commit c62e92b into main Oct 15, 2025
1 of 2 checks passed
@jeroenrinzema jeroenrinzema deleted the feat/update-user branch October 15, 2025 09:03
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