github daodao97/chatmcp v0.0.71

latest releases: v0.0.76, v0.0.75, v0.0.74...
5 months ago

ChatMCP v0.0.71 Release Notes

🚀 What's New

📊 Data Management Layer Abstraction

  • Repository Pattern: Introduced a new data abstraction layer that supports both local
    and remote storage with the same interface
  • Local/Remote Storage: Seamlessly switch between local SQLite storage and remote API
    storage
  • Unified Interface: ChatRepository provides consistent data operations regardless of
    storage type
  • Factory Pattern: ChatRepositoryProvider enables easy switching between storage
    implementations

🔍 Enhanced Pagination & Search

  • Infinite Scroll: Implemented smart infinite scroll pagination with 1-based page
    numbering (more intuitive)
  • Keyword Search: Added real-time search functionality with debouncing for better
    performance
  • Scroll-to-Bottom Loading: Replaced pull-to-refresh with automatic loading when
    scrolling near bottom
  • Centralized Configuration: New PaginationConfig class manages all pagination
    parameters consistently
  • Search Results Pagination: Search results now support the same pagination interface

🎯 Desktop Auto-Focus Enhancement

  • Smart Auto-Focus: Input field automatically gains focus on desktop when:
    • Creating new chats
    • Switching between historical conversations
    • After AI response completion
    • When operations are cancelled or reset
  • Platform-Aware: Auto-focus only activates on desktop platforms, preserving mobile
    experience
  • Safe Implementation: Uses proper widget lifecycle management to prevent focus issues

🌐 Internationalization Improvements

  • New Localization Keys: Added "No more data" translations for all supported languages
  • Multi-Language Support: Enhanced Chinese, English, and Turkish language support
  • Consistent Messaging: Replaced hardcoded strings with proper localization keys

🔧 Technical Improvements

  • Enhanced DAO Methods: Added missing deleteMessages method in ChatMessageDao
  • Model Conversions: Added toDb method in ChatMessage for better data conversion
  • Error Handling: Improved error handling and loading state management
  • Duplicate Prevention: Implemented mechanisms to prevent duplicate loading operations
  • Code Organization: Better separation of concerns with Repository pattern

📁 New Files Added

  • lib/repository/chat_repository.dart - Abstract repository interface
  • lib/repository/local_chat_repository.dart - Local storage implementation
  • lib/repository/remote_chat_repository.dart - Remote API implementation
  • lib/repository/chat_repository_provider.dart - Factory and provider
  • lib/config/pagination_config.dart - Centralized pagination configuration
  • docs/pagination_config.md - Documentation for pagination features

🛠️ Modified Components

  • ChatProvider: Updated to use Repository pattern instead of direct DAO access
  • InputArea: Enhanced with FocusNode and auto-focus capabilities
  • Sidebar: Implemented infinite scroll with search functionality
  • ChatPage: Added auto-focus logic for better user experience

💾 Database Changes

  • Enhanced ChatMessageDao with additional methods for better data management
  • Improved data conversion methods for seamless local/remote storage switching

🎨 User Experience Improvements

  • Smoother Navigation: Auto-focus reduces the need for manual input field clicks
  • Better Search: Real-time search with debouncing provides instant feedback
  • Infinite Scroll: No more manual "load more" buttons - content loads automatically
  • Consistent UI: Unified pagination behavior across all chat lists

🔄 Migration Notes

  • Existing local data remains compatible - no migration required
  • New Repository pattern is backward compatible with existing DAO operations
  • Configuration can be switched between local and remote storage at runtime

🐛 Bug Fixes

  • Fixed missing method errors in ChatMessageDao
  • Resolved hardcoded text issues with proper internationalization
  • Improved error handling in data loading operations

Full Changelog: https://github.com/your-repo/chatmcp/compare/v0.0.70...v0.0.71

Download: Check the https://github.com/your-repo/chatmcp/releases/tag/v0.0.71 section
below for platform-specific builds.

Don't miss a new chatmcp release

NewReleases is sending notifications on new releases.