4.81v

1. Notable changes since 4.80v
   - One-time proactive chat invitations: new DB table `lh_abstract_proactive_chat_invitation_one_time` tracks which visitors have already seen an invitation, preventing repeat displays.
   - Proactive invitations: cleanup logic added for stale one-time invitation records; widget now records when a one-time invitation is shown; edit module enhanced with custom actions for proactive invitations.
   - Captcha: added provider-based captcha support — Google reCAPTCHA v3 and Cloudflare Turnstile are now both supported with a shared validation layer (`CaptchaValidator`, `erLhcoreClassUserValidator`).
   - Captcha admin UI: provider selector with provider-specific field sections; shared key labels across providers; CSRF redirect fix.
   - Translation system: UX improvements for automatic translations; operator and visitor message translation differentiated; messages with existing translations are now skipped; translation configuration UI updated.
   - Bot/Widget: custom HTML buttons and bot buttons are now disabled when a form is in progress status; alert messages added; placeholder for name field in widget start form.
   - Editor: fixed infinite loop issue in the new rich-text editor (LHCEditor).
   - Dashboard: removed legacy old dashboard; cleaned up related options and switch logic.
   - Security/permissions: added permission access checks in block user, hold action, transfer chat, and chat widget closed flows.
   - PHP 8.5 compatibility: resolved deprecation and compatibility issues.
   - Translations: updated translation catalogs including new captcha-related and translation-workflow keys.

2. Summary
   - This release introduces one-time proactive chat invitations, a flexible multi-provider captcha system, and several translation workflow improvements.
   - Includes editor stability fixes, dashboard cleanup, PHP 8.5 compatibility, and stricter permission checks across chat action endpoints.

execute doc/update_db/update_348.sql for update

4.80v

1. Notable changes since 4.79v
   - Message content protection: added language-specific warning message support for ghosting/masking rules.
   - UI (back office): redesigned message protection warning editor with multilingual tabs and per-language message fields.
   - Runtime masking: warning text can now be translated by chat locale (full locale and short locale fallback).
   - Data/model layer: added `languages` persistence support in `lh_abstract_msg_protection` model/POS mapping.
   - Frontend cleanup: simplified multilingual tab content rendering in Svelte component used by admin forms.

2. Summary
   - This release extends message protection rules with localized warning messages and wires the full stack (DB, model, UI, and runtime locale resolution).

execute doc/update_db/update_347.sql for update

4.78v

1. Notable changes since 4.77v
   - Bot: support for bot short name.
   - Message masking: mask last message from visitor.
   - Webhooks/Conditions: support additional comparison variables and accept all params for condition checks.
   - Events: included more information for main chat attributes change event.
   - Debugging: added debug message handling inside chat messages.
   - Guardrails: added whitelist support for phone guardrails.
   - Misc: small typo fixes.

2. Summary
   - Improvements across bot, webhooks, and message masking to increase reliability and observability.
   - Several small bug fixes and developer-facing debug improvements.

execute doc/update_db/update_345.sql for update

4.77v

1. Features
   - Add Auto-Submitted header to mail actions (automatic mail handling improvements).
   - Chat messages preview modal with backend support for message previews.
   - Chat widget updates: improved integration with third-party iframes, scroll-to-last-message on show, and refactor of widget internals.
   - Migration and build updates: Svelte 5 migration, Node 22 (bot/node) updates, and package upgrades.

2. Fixes
   - Do not mark our own responses as undelivered (prevents false undelivered status).
   - Ignore auto-submitted e-mails as new to avoid duplicate imports.
   - Fixes for issues reported (e.g. #2359, #2357) and improved error logging (#2347).
   - Various UI/UX fixes: React parsing issue, height flickering, trigger body object support, and trimmed/encoded URLs.
   - Mail handling: do not set custom from-email unless explicitly provided; set custom recipient handling improvements.

3. Performance & Reliability
   - Avoid loading/fetching message bodies when not required (reduce unnecessary DB/IO work).
   - Use static version cache for assets and additional cache improvements.
   - Check and respect rfc822 body presence before processing.

4. Compatibility & UX
   - Support for older browsers and related compatibility fallbacks.
   - UX improvements for canned messages dropdown and related interactions.

5. Chore/Dependencies
   - Dependency and package updates across frontend and backend (React/Node/bot tooling and other packages).
   - Miscellaneous maintenance: hashed payload handling, migration tweaks, and merge/cleanup commits.

execute doc/update_db/update_344.sql for update

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