Commit graph

12 commits

Author SHA1 Message Date
f4575ec759
feat: enhance forms with crispy-forms and Bootstrap5
Improved the user interface of various forms by integrating django-crispy-forms and crispy-bootstrap5. Updated form templates to use crispy forms for better styling and layout consistency. Removed the standalone login template in favor of using email-based login flow.

Benefits include:
- Enhanced form layout and styling using Bootstrap 5.
- Improved user experience with clearer instructions and polished designs.

Additionally, updated settings to include crispy forms and Bootstrap 5 template pack.
2024-06-23 09:36:28 +02:00
f291deece2
fix(accounts): create user if email doesn't exist
Updated the login email view to use get_or_create for retrieving user by email, ensuring a user is created if the email doesn't exist. This prevents errors when attempting to login with an unregistered email, enhancing the user experience and robustness of the login process
2024-06-23 09:23:17 +02:00
e2fddf8052
fix(ui): update login link to include registration
Updated the login link to include "Login / Register" and point to the new 'login' view instead of 'send_login_email'. This change improves user experience by clarifying the login process and emphasizing registration availability.
2024-06-23 09:11:29 +02:00
e53d7e3bc2
fix(templates): enhance login/signup and identifier creation links
Updated the login button text to "Login or Sign Up" for clarity and removed the redundant "Email Login" option on the home page. Fixed the identifier list to properly handle cases where 'suffix' might be null, ensuring correct URL generation and display formatting. These changes improve user experience and address navigation issues.
2024-06-23 09:05:29 +02:00
c70b190c23
feat: add inactive user cleanup and refine UI
Introduce a management command to delete inactive users older than 7 days. Adjust `CustomUser` model to include `date_joined` with new default settings. Enhance UI across multiple templates to improve consistency and user experience.

- Inactive user accounts cleanup enhances database hygiene.
- Updates to `CustomUser` default settings ensure consistent account states.
- Refined UI for identifier and suffix templates for better accessibility and UX.
2024-06-23 08:56:22 +02:00
31567f7bb1
feat(ui): display user email on home page
Updated the home page greeting to show the user's email instead of their first name. This change improves user identification and ensures consistency when the first name is not provided.
2024-06-22 21:18:27 +02:00
4b33f17a04
feat: enhance identifier and suffix display in lists
Updated the identifier list to display full identifier details and target URL. Improved the suffix list to show the prefix, suffix, and name together for better clarity. These changes aim to provide more comprehensive and user-friendly information in the HTML views.
2024-06-22 20:55:30 +02:00
0848d79f63
feat(homepage): enhance homepage content and structure
Revamped homepage content with improved welcome message, clear description of FreeDOI functionalities, and structured instructions for new users. Added sections for "What is FreeDOI?," "How Does It Work?," "Get Started," and "Contact Us." Enhanced user navigation and clarified the non-affiliation with the official DOI system.
2024-06-22 20:42:34 +02:00
564eecf83e
feat: pass current user to SuffixUpdateView forms
Enhances the get_form_kwargs method in SuffixUpdateView to include the current user in the form parameters. This allows for user-specific form processing and validation, ensuring forms can access and utilize the requesting user's details.
2024-06-22 19:46:00 +02:00
af3315b3f1
feat: enforce maximum suffix limit for users
Added validation in both the model and view to enforce a limit on the number of suffixes a user can create based on their maximum suffixes property. This ensures that users cannot exceed their allowed number of suffixes and maintains system integrity.
2024-06-22 19:38:13 +02:00
21d90e6cd8
feat(settings): add dynamic DB selection based on config
Updated settings to dynamically select the database backend (MySQL, MariaDB, PostgreSQL, or SQLite) based on the configuration file. This change improves flexibility and allows easier customization of the database setup by just modifying the config file.
2024-06-22 19:02:50 +02:00
dbf7cde183
feat!: initial FreeDOI project setup
- Added standard project documentation including README.md
- Added .gitignore for ignoring unnecessary files (.venv, *.pyc, etc.)
- Implemented basic Django application structure with accounts and resolver apps
- Configured Django settings, including two-factor auth and database setup
- Set up Django admin and basic model structures for Prefixes, Suffixes, Identifiers, and Permissions
- Added templates for accounts and resolver management
- Configured initial migrations and custom user model
- Included poetry dependencies and project setup configuration

This commit sets up the fundamental structure of the FreeDOI project, enabling DOI-like identifier creation and resolution.
2024-06-22 18:32:37 +02:00