Skip to content

Conversation

@estefysc
Copy link
Contributor

Summary

Implements #310 - Adds locale settings support for admin users, allowing administrators to set and persist language
preferences for users.

Changes Made

Backend

  • Added locale field to admin_users table via database migration
  • Updated proto definitions with locale field
  • Added locale validation to ensure only valid locales are accepted
  • Updated admin user models, repositories, and services to handle locale
  • Added locale support for LDAP authentication and setup wizard

Frontend

  • Created reusable SelectField component matching existing InputField styling
  • Added locale dropdown to AdminUserCreatePage and AdminUserEditPage
  • Integrated locale field with React Hook Form
  • Added data normalization to handle users without locale (defaults to "en")
  • Regenerated gRPC TypeScript client and proto definitions

How It Works

  1. Admin users can select a locale preference when creating or editing users
  2. The selected locale is validated and stored in the database
  3. When a user logs in, their saved locale preference is automatically loaded and applied to the UI

This commit implements backend support for locale settings:
- Added locale field to database migration
- Updated proto definitions with locale field
- Added locale to all admin user models
- Implemented locale validation in request layer
- Updated service and repository layers

Note: Proto file regeneration needs resolution.
- Created SelectField component matching InputField styling
- Added locale dropdown to AdminUserEditPage and AdminUserCreatePage
- Integrated locale field with React Hook Form
- Added data normalization to handle missing locale values
- Regenerated gRPC proto files with locale field support
- Added debug logging to track locale save/load operations
- Cleaned up debug console.log from AdminUserEditPage
- Cleaned up debug println! from admin_user_api.rs
@indpurvesh
Copy link
Member

thanks @estefysc looks good

@indpurvesh indpurvesh merged commit b1b937f into avored:main Oct 30, 2025
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