This is an automated email from the ASF dual-hosted git repository.
bbovenzi 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 c273b7aa66a Restore UI Homepage Customization Using instance_name
(#54522)
c273b7aa66a is described below
commit c273b7aa66aa5456ce3151a485e73fa9843f55c6
Author: N R Navaneet <[email protected]>
AuthorDate: Tue Aug 19 00:28:25 2025 +0530
Restore UI Homepage Customization Using instance_name (#54522)
* Instance Name
* Change config file to match the changes
* Fixed the trim
---
airflow-core/src/airflow/config_templates/config.yml | 4 +++-
airflow-core/src/airflow/ui/src/pages/Dashboard/Dashboard.tsx | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/airflow-core/src/airflow/config_templates/config.yml
b/airflow-core/src/airflow/config_templates/config.yml
index 3a824fbcda6..5da744041a2 100644
--- a/airflow-core/src/airflow/config_templates/config.yml
+++ b/airflow-core/src/airflow/config_templates/config.yml
@@ -1318,7 +1318,9 @@ api:
options:
instance_name:
description: |
- Sets a custom page title for the DAGs overview page and site title for
all pages
+ Sets a custom homepage heading and site title for all Airflow UI pages.
+ If set, the Dashboard will display this value instead of the default
+ "Welcome" message.
version_added: 2.1.0
type: string
example: ~
diff --git a/airflow-core/src/airflow/ui/src/pages/Dashboard/Dashboard.tsx
b/airflow-core/src/airflow/ui/src/pages/Dashboard/Dashboard.tsx
index 4c93a16b69c..969f1bd79c7 100644
--- a/airflow-core/src/airflow/ui/src/pages/Dashboard/Dashboard.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Dashboard/Dashboard.tsx
@@ -35,6 +35,7 @@ import { Stats } from "./Stats";
export const Dashboard = () => {
const alerts = useConfig("dashboard_alert") as Array<UIAlert>;
const { t: translate } = useTranslation("dashboard");
+ const instanceName = useConfig("instance_name");
const { data: pluginData } = usePluginServiceGetPlugins();
@@ -70,7 +71,7 @@ export const Dashboard = () => {
</Accordion.Root>
) : undefined}
<Heading order={2} size="2xl">
- {translate("welcome")}
+ {typeof instanceName === "string" && instanceName !== "" ?
instanceName : translate("welcome")}
</Heading>
<Box order={3}>
<Stats />