4.76v

1. Mail Conversation System Enhancements
   - Added pending import functionality for mail import retries with automatic retry mechanism
   - New `lhc_mailconv_pending_import` table for tracking failed mail imports
   - Manual import interface for retrying failed email imports
   - Improved IMAP retry logic for handling temporary failures

2. Message Masking and Security
   - Added message ghosting for sensitive information protection when guardrails are enabled
   - Operators without permission to see full messages will not see just-sent messages
   - Enhanced regex rules with optional name field and optional replacement variable
   - Additional masking options for PII protection
   - Improved guardrails validation for sensitive information

3. Widget Theme Configuration
   - Added `wtop` option for widget position from top spacing control
   - Enhanced widget positioning options for better layout flexibility

4. Tab Navigation and UX
   - Improved tab state persistence for chats and mails
   - Direct API implementation for remembering tab states
   - Enhanced tab navigation across multiple interfaces

5. Pre-chat Form Conditions
   - Added conditions support for maintenance mode in pre-chat forms
   - Enhanced validator logic for conditional maintenance mode display

6. Developer Documentation
   - Comprehensive copilot instructions reorganization
   - Added detailed integration points documentation
   - New data flows, testing strategies, and security model documentation
   - Domain-specific guides for API, auth, bot, caching, config, data-layer, departments, events, extensions, routing, UI, and users

7. Bug Fixes and Improvements
   - Improved error handling for robustness and better user experience
   - Enhanced cache management and clearing functionality
   - Various sync and performance improvements

execute doc/update_db/update_343.sql for update

4.75v

1. Tab Navigation and UX Improvements
   - Added data-remember attribute to tab navigation elements across multiple templates for better state persistence
   - Implemented Safari browser support for tab navigation
   - Enhanced replaceable variables UI with remembered tabs functionality

2. Bot System Enhancements
   - Added 'Keep chat locked' option in bot action text to maintain chat lock from visitor messages
   - Refactored condition handling in bot workflow to support JSON parsing for dynamic conditions
   - Enhanced attribute filtering in bot action text with improved non-empty value processing
   - Updated CURL building UI for better usability

3. Mail Conversation System
   - Added signature fetching functionality with AJAX endpoint for improved email handling
   - Added button to append fetched signature to email templates
   - Enhanced input field layout for better usability and accessibility

4. Bot Conditions Form
   - Added datalist options for filter fields in conditions form with predefined options
   - Options include Chat ID, Status, Department ID, User ID, Email, Phone, Nickname, and Country Code

5. System and Configuration
   - Added ability to clear cache from command line
   - Implemented opcache cache clearing functionality
   - Added fallback if default config file is not found
   - Inform operator when external operator is writing messages

6. Performance Optimizations
   - Various performance optimizations in core components
   - Improved command title handling as argument
   - Enhanced proper checking mechanisms

7. Bug Fixes and Improvements
   - Removed unnecessary variable declarations
   - Various sync improvements


execute doc/update_db/update_342.sql for update

4.74v

1. Bot System and Actions Enhancements
   - Added option to keep chat locked from visitor via bot actions
   - Enhanced variable replacement logic in bot actions with custom arguments handling
   - Implemented option to remove chat_variables variable through bot commands
   - Improved command action to update only required fields for better performance
   - Enhanced text actions with advanced variable replacement capabilities
   - Fixed masking message in REST API that sometimes broke JSON body structure
   - Added logging for first response in streaming mode for REST API actions
   - Added use cases modal and validation for bots with comprehensive documentation
   - Improved bot name display in REST API use cases
   - Added modal for REST API use cases with dynamic content

2. Widget and Interface Improvements
   - Added override back button option for widget offline mode
   - Updated widget logic and survey redirect handling for offline scenarios
   - Improved image sizing in widget interface
   - Removed default colors from widget theme configuration
   - Fixed scroll behavior on mobile devices in popup mode
   - Enhanced offline chat handling with better redirect logic

3. Mail Conversation System
   - Enhanced audit logging capabilities for mail conversations
   - Added merge conversation audit logging
   - Improved send email audit tracking
   - Added option to set reply-to email only to mailbox
   - Fixed UI elements in mail conversation templates

4. Proactive Invitations and Auto Responder
   - Fixed auto responder display logic to ensure proper handling of empty values
   - Enhanced auto responder display with improved formatting
   - Added proactive invitation and auto responder templates to chat interface
   - Improved webhook link formatting in bot forms
   - Activity period now applies to all types of invitations
   - Added explanatory text that limit numbers are inclusive

5. User Interface and UX Improvements
   - Added explanatory notices for inclusive limit numbers in department forms
   - Enhanced chat information display with better template organization
   - Improved spacing and layout in various templates
   - Updated default translations with new strings

6. System and Configuration
   - Updated environment variable handling in settings
   - Improved system variable checking in core components
   - Fixed null handling in cronjob/test mode
   - Updated .gitignore configuration
   - Added GitHub workflow for triggering Laravel tests
   - Removed editor-specific settings from repository

7. Statistics and Reporting
   - Included user with id 0 in default user filter for statistics
   - Enhanced user filtering for edge cases

8. Bug Fixes and Improvements
   - Fixed missing column reference in user department management
   - Fixed transfer to human action to update only relevant attributes
   - Various UI fixes and spacing adjustments
   - Improved template consistency across modules
   
4.73v

1. Only priority field was missed for grouping operation and disabled user flow.

execute doc/update_db/update_340.sql for update

4.72v

1. Operator Assignment and Priority Management
   - Added 'only_priority' feature for operator assignment allowing operators to receive only chats with specific priority levels
   - Enhanced chat priority search functionality in the back office
   - Improved UX for priority display with better visual indicators
   - Added priority filtering to chat search panel
   - Refactored department group saving process with transactions for improved error handling and data integrity

2. Proactive Invitations System Enhancements
   - Implemented per-session invitation support for all invitation types
   - Enhanced dynamic invitation logic with better state management
   - Improved invitation expiration handling with proper cleanup of invitation_id
   - Added automatic invitation reset for returning visitors
   - Enhanced invitation seen count tracking for better analytics
   - Updated UX for invitation management with better visual feedback
   - Implemented operator message reset when invitation is assigned
   - Added filtering for online operators by their status

3. Bot System and Conditions
   - Added support for mathematical parsing in bot conditions for complex logic evaluation
   - Implemented {rnumber} variable support for random number generation
   - Enhanced NodeTriggerActionConditions with execution notices and theme fetching
   - Added debugging capabilities for specific trigger output
   - Improved bot message translation handling to assume visitor language
   - Added CSS class support for bot holder elements
   - Enhanced match event handling in bot workflows
   - Added presence checking for variables before processing

4. Canned Messages and Variables
   - Implemented replaceable variable option to canned messages with change logging
   - Added default replaceable variable method for consistent variable handling
   - Enhanced variable replacement process with better error handling
   - Added support for context-aware variable replacement

5. Mail Conversation System Improvements
   - Enhanced mail conversation handling and storage management
   - Added option to include mail body in forward e-mail while skipping in reply
   - Implemented copy e-mail function for easier message handling
   - Added option to copy raw message body for debugging
   - Implemented sender address length limitation for better database handling
   - Enhanced search functionality with improved filters
   - Added JSON view for better debugging of mail conversations
   - Implemented option to split messages into separate API calls for mixed content handling
   - Added support for debugging specific messages
   - Improved IMAP connection testing with shorter timeouts
   - Enhanced header value handling and exclusion of debug messages from system logs
   - PDF Checking for suspicious content

6. Survey and Widget Enhancements
   - Implemented survey styling through widget themes for better customization
   - Enabled CSS cache for survey to improve loading performance
   - Updated widget version to 263 with enhanced cookie handling
   - Added support for subject filter override in surveys
   - Implemented subject title override capability

7. Chat System Improvements
   - Added bulk fetching for pending messages in chat sync for better performance
   - Implemented whisper message support for private operator notes
   - Added context menu support for previous messages
   - Enhanced UI with various fixes and spacing adjustments
   - Improved online dashboard tab persistence as default view
   - Added reset functionality for online visitors filter on widget filters reset action
   - PDF Checking for suspicious content

8. User Interface and Experience
   - Implemented editor options for better content management
   - Enhanced form height for improved usability
   - Added minimize text printing functionality
   - Improved spacing and layout adjustments throughout the interface
   - Enhanced auto responder debugging with better object visibility

9. REST API and Protocol Management
   - Added REST API protocol choosing option for flexible integration
   - Enhanced header value handling and skip functionality
   - Improved error messaging with more precise error descriptions

10. System Configuration and Permissions
    - Added missing permissions for various operations
    - Enhanced permission checking throughout the system
    - Implemented database version limit validation (minimum 60)
    - Updated database version tracking

11. Bug Fixes and Improvements
    - Fixed issue #2321 related to system functionality
    - Addressed discussion #2320 with appropriate fixes
    - Improved invitation logic with multiple fixes
    - Enhanced variable presence checking before processing
    - Fixed translation issues for empty messages
    - Corrected method echo behavior in debug output
    - Various UX fixes and improvements throughout the application

execute doc/update_db/update_340.sql for update