Skip to content

0.4.3

Latest
Compare
Choose a tag to compare
@igorbenav igorbenav released this 08 Oct 04:03
f72d7b8

CRUDAdmin v0.4.3 - Bug Fixes and UI Improvements

🐛 Bug Fixes

🔍 Enhanced Search Functionality

  • UUID Support in Search: Added support for UUID field types in search functionality (crudadmin/admin_interface/model_view.py:963)
    • UUID fields are now properly handled during search operations by converting search values to strings
    • Resolves search issues when working with models that use UUID primary keys or UUID fields

📝 Form Field Handling Improvements

  • Empty Fields Update Fix: Fixed handling of empty/null fields during record updates (crudadmin/admin_interface/model_view.py:1095-1108)
    • Added proper field_values dictionary to template context to ensure form fields retain their values correctly
    • Prevents loss of field data when updating records with empty or null values
    • Improves form state management in the admin interface

📱 Responsive Layout Enhancements

  • Authentication Layout Responsiveness: Improved responsive behavior of authentication pages (crudadmin/templates/base/base.html:272-278)
    • Added proper grid layout and overflow handling for admin main content area
    • Enhanced mobile and tablet viewing experience for login/authentication forms
    • Better padding and layout management across different screen sizes

🧪 Development & Testing Improvements

Enhanced Test Coverage

  • Event System Tests: Added comprehensive unit tests for event models module
  • Core Authentication Tests: Added unit tests for core authentication functionality
  • Event Integration Tests: Added integration tests for the event system
  • Python 3.11 Compatibility: Updated test representations for Python 3.11 compatibility

🛠️ Development Workflow

  • Pre-commit Hooks: Added pre-commit hooks configuration for code quality
  • Updated Dev Dependencies: Refreshed development dependencies for better tooling
  • Contribution Guidelines: Enhanced contribution documentation with clearer instructions

🔧 Technical Details

No Breaking Changes

This is a maintenance release focused on bug fixes and improvements. All existing APIs remain unchanged and fully backward compatible.

Dependencies

  • No new dependencies added
  • Updated development dependencies for better tooling and testing
  • Maintained compatibility with all existing requirements

Python Support

  • Python 3.9+ (unchanged)
  • Improved Python 3.11 compatibility in test suite
  • Tested across all supported Python versions

📋 Full Changelog

Fixed

  • UUID field types now properly supported in search functionality
  • Empty/null field handling during record updates in admin interface
  • Responsive layout issues in authentication pages
  • Form field value retention during updates
  • Python 3.11 compatibility issues in test representations

Added

  • Unit tests for event models module
  • Unit tests for core authentication functionality
  • Integration tests for event system
  • Pre-commit hooks configuration
  • Enhanced contribution guidelines

Improved

  • Mobile and tablet responsiveness for admin interface
  • Form state management and field value handling
  • Development workflow with better tooling
  • Test coverage across core modules

🚀 Upgrade Notes

This release contains only bug fixes and improvements with no breaking changes. You can safely upgrade from v0.4.2 to v0.4.3 without any code modifications.

Benefits of Upgrading

  • ✅ Better search functionality with UUID support
  • ✅ Improved form handling for empty/null fields
  • ✅ Enhanced mobile/tablet experience
  • ✅ More reliable admin interface behavior

Installation

pip install --upgrade crudadmin==0.4.3

What's Changed

New Contributors

Full Changelog: v0.4.2...v0.4.3