From 74fc27b68b2952d0dcfa046d11943323e2bbca8f Mon Sep 17 00:00:00 2001 From: Pichinov-Jose Date: Mon, 18 May 2026 22:04:43 +0200 Subject: [PATCH] New: open AI Assistant in a popup overlay from top-toolbar icon (#38311) Per maintainer feedback on #38307: "adding a popup (without leaving current page) is better than opening a complete page". The AI Assistant top-toolbar icon (added in develop by e735bed1 via top_menu_ai() in main.inc.php) is a plain that navigates the user away from whatever page they were on. This patch makes the icon open the Assistant in a popup overlay instead, so the user keeps their working context while interacting with the assistant. Approach: Reuses the existing Dolibarr core helper dolButtonToOpenUrlInDialogPopup() (htdocs/core/lib/functions.lib.php) which: - Builds an with accesskey, title, and an icon - On click, injects an