This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8545d3c578a Docs: update UIAlert import path and usage for v3 (#58089) 
(#58090)
8545d3c578a is described below

commit 8545d3c578af5e254e230e38f8a5035fac045342
Author: Lohith M <[email protected]>
AuthorDate: Mon Dec 1 16:30:07 2025 +0530

    Docs: update UIAlert import path and usage for v3 (#58089) (#58090)
    
    * Docs: update UIAlert import path and usage for v3 (#58089)
    
    * fix:update all uialert import references for v3
    
    * update uialert docs
---
 airflow-core/docs/howto/customize-ui.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/airflow-core/docs/howto/customize-ui.rst 
b/airflow-core/docs/howto/customize-ui.rst
index 68bfaba909c..7d037d2485f 100644
--- a/airflow-core/docs/howto/customize-ui.rst
+++ b/airflow-core/docs/howto/customize-ui.rst
@@ -84,10 +84,10 @@ To add static alert messages that remain constant until the 
webserver is restart
 
   .. code-block:: python
 
-      from airflow.www.utils import UIAlert
+      from airflow.api_fastapi.common.types import UIAlert
 
       DASHBOARD_UIALERTS = [
-          UIAlert("Welcome to Airflow"),
+          UIAlert("Welcome to Airflow", category="info"),
       ]
 
 3. Restart the Airflow webserver, and you should now see the alert message 
displayed on the dashboard.
@@ -121,7 +121,7 @@ message of heading 2 with a link included:
 
 .. code-block:: python
 
-    from airflow.www.utils import UIAlert
+    from airflow.api_fastapi.common.types import UIAlert
 
     DASHBOARD_UIALERTS = [
         UIAlert(text="## Visit 
[airflow.apache.org](https://airflow.apache.org)", category="info"),
@@ -163,7 +163,7 @@ cases might include alerts yielded from APIs, database 
queries or files.
 .. code-block:: python
 
     import random
-    from airflow.www.utils import UIAlert
+    from airflow.api_fastapi.common.types import UIAlert
 
 
     class DynamicAlerts(list):

Reply via email to