Implement local authentication and enhance onboarding process#388
Implement local authentication and enhance onboarding process#388victalejo wants to merge 22 commits into
Conversation
fix(cabal): update cabal version and metadata for consistency fix(package): correct GitHub repo and update license information
…n forms - Added a new Docker Compose configuration for production with TimescaleDB. - Introduced local authentication support, allowing users to register and log in with email and password. - Updated user model to include a password hash for local authentication. - Created registration and login pages with appropriate forms and validation. - Implemented language support for English and Spanish in authentication messages. - Added database migration to accommodate the new password hash field in the users table. - Enhanced session management to support local authentication and language preferences.
fix(vite): update asset file name handling for Vite >=6
…tration and onboarding forms
…lf-hosted projects
…s and update language translations
…el proceso de onboarding
…mulario de creación de proyecto
…portar múltiples idiomas
…rar la visualización
|
Hi @victalejo, thanks for the PR. I recommend opening issues for the different items so the details can be agreed on before an implementation. Eg, I'm not eager to add auth yeah, beyond the existing basic auth, but that can change if you share your motivation. Also about internationalization. Its a huge commitment, so I would like to understand the motivation |
…ooks en la base de datos
|
Hi @tonyalaribe, Thanks for the feedback! I've been using Monoscope and it's become part of my daily workflow — that's exactly why I want to contribute: I'm invested in seeing it grow. |
|
Hi @victalejo, so thanks for clarifying. I would like the auth topic yo be a separate PR, and we could focus on internationalization for this PR. Can the per language configure be yaml? So we can have one yaml per language. |
This pull request implements user authentication and registration features, adds internationalization (i18n) support, and introduces a production-ready Docker Compose setup. The most significant changes are the addition of new user fields and authentication logic, frontend pages for login and registration, and the integration of language selection and translation in the user interface.
Authentication & User Model Enhancements:
Userdata model to includepasswordHash,companyName,companySize, andfoundUsFromfields, and updated all relevant queries and insertions to use these new fields. Added helper functions for setting user passwords and counting users. [1] [2] [3]Sessionfield to store the user's selected language.Frontend Pages & Internationalization:
Pages.Authwith fully internationalized login and registration HTML forms, including logic for first-user registration and language switching.Project Structure & Dependencies:
Pages.Auth,Web.I18n) inmonoscope.cabalfor both library and web components. [1] [2]Production Deployment:
docker-compose.prod.ymlfile for production deployments, including a TimescaleDB service and the application, with environment variables and health checks.Dockerfile.localfor a self-contained build, including all dependencies and frontend assets, suitable for local or production use.Database Query Updates:
These changes lay the groundwork for secure user authentication, improved user onboarding, and a more flexible, internationalized user experience.