feat(auth): enhance user registration with names and improve UI

- Add first_name and last_name fields to User model with validations
- Configure Devise registrations controller to accept name parameters
- Update registration form with name fields and improved styling
- Replace Twitter Bootstrap pagination with custom Tailwind components
- Add French locale translations for pagination and models
- Update header styling with responsive design improvements
- Add EditorConfig for consistent code formatting
- Fix logout controller URL handling and improve JavaScript
- Update seed data and test fixtures with name attributes
- Add comprehensive model tests for name validations
- Add test.sh script for easier test execution

💘 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
This commit is contained in:
Kevin BATAILLE
2025-08-26 17:17:50 +02:00
parent 6b37c67b47
commit 884c6a8262
27 changed files with 462 additions and 160 deletions

View File

@@ -20,13 +20,13 @@ Rails.application.routes.draw do
# Bind devise to user
# devise_for :users
devise_for :users, path: "auth", path_names: {
sign_up: "register", # Route for user registration
sign_in: "login", # Route for user login
sign_out: "logout", # Route for user logout
sign_in: "sign_in", # Route for user login
sign_out: "sign_out", # Route for user logout
password: "reset-password", # Route for changing password
confirmation: "verification", # Route for account confirmation
unlock: "unblock", # Route for account unlock
registration: "register" # Route for user registration (redundant with sign_up)
# registration: "account", # Route for user account
sign_up: "signup" # Route for user registration
},
controllers: {
sessions: "authentications/sessions", # Custom controller for sessions