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

amoghdesai 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 bc9535536f9 Fix asset materialization run type display on the UI 
(#63819)
bc9535536f9 is described below

commit bc9535536f957964e97fa3fc4a70bf0e080aa96f
Author: Amogh Desai <[email protected]>
AuthorDate: Tue Mar 17 20:36:57 2026 +0530

    Fix asset materialization run type display on the UI (#63819)
---
 airflow-core/src/airflow/ui/public/i18n/locales/en/common.json    | 1 +
 .../src/airflow/ui/src/layouts/Details/Grid/RunTypeLegend.tsx     | 8 +++++++-
 airflow-core/src/airflow/ui/src/pages/Run/Details.tsx             | 2 +-
 airflow-core/src/airflow/ui/src/pages/Run/Header.tsx              | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json 
b/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json
index 89c5d48e816..4176a915062 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/en/common.json
@@ -172,6 +172,7 @@
   "reset": "Reset",
   "runId": "Run ID",
   "runTypes": {
+    "asset_materialization": "Asset Materialization",
     "asset_triggered": "Asset Triggered",
     "backfill": "Backfill",
     "manual": "Manual",
diff --git 
a/airflow-core/src/airflow/ui/src/layouts/Details/Grid/RunTypeLegend.tsx 
b/airflow-core/src/airflow/ui/src/layouts/Details/Grid/RunTypeLegend.tsx
index 8538aced889..94275510157 100644
--- a/airflow-core/src/airflow/ui/src/layouts/Details/Grid/RunTypeLegend.tsx
+++ b/airflow-core/src/airflow/ui/src/layouts/Details/Grid/RunTypeLegend.tsx
@@ -24,7 +24,13 @@ import type { DAGRunResponse } from 
"openapi/requests/types.gen";
 import { RunTypeIcon } from "src/components/RunTypeIcon";
 import { Tooltip } from "src/components/ui";
 
-const runTypes: Array<DAGRunResponse["run_type"]> = ["scheduled", "manual", 
"backfill", "asset_triggered"];
+const runTypes: Array<DAGRunResponse["run_type"]> = [
+  "scheduled",
+  "manual",
+  "backfill",
+  "asset_triggered",
+  "asset_materialization",
+];
 
 export const RunTypeLegend = () => {
   const { t: translate } = useTranslation(["dag", "common"]);
diff --git a/airflow-core/src/airflow/ui/src/pages/Run/Details.tsx 
b/airflow-core/src/airflow/ui/src/pages/Run/Details.tsx
index f467813621e..7d18930afe5 100644
--- a/airflow-core/src/airflow/ui/src/pages/Run/Details.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Run/Details.tsx
@@ -76,7 +76,7 @@ export const Details = () => {
           <Table.Cell>
             <HStack>
               <RunTypeIcon runType={dagRun.run_type} />
-              <Text>{dagRun.run_type}</Text>
+              <Text>{translate(`runTypes.${dagRun.run_type}`)}</Text>
             </HStack>
           </Table.Cell>
         </Table.Row>
diff --git a/airflow-core/src/airflow/ui/src/pages/Run/Header.tsx 
b/airflow-core/src/airflow/ui/src/pages/Run/Header.tsx
index 0737377f699..a5a0c4a26c2 100644
--- a/airflow-core/src/airflow/ui/src/pages/Run/Header.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Run/Header.tsx
@@ -105,7 +105,7 @@ export const Header = ({ dagRun }: { readonly dagRun: 
DAGRunResponse }) => {
             value: (
               <HStack>
                 <RunTypeIcon runType={dagRun.run_type} />
-                <Text>{dagRun.run_type}</Text>
+                <Text>{translate(`runTypes.${dagRun.run_type}`)}</Text>
               </HStack>
             ),
           },

Reply via email to