jlaportebot opened a new pull request, #67263:
URL: https://github.com/apache/airflow/pull/67263

   ## Description
   
   In Airflow v3, the browser tab always shows "Airflow" regardless of which 
page you're on, making it impossible to distinguish between multiple DAG tabs. 
This is a regression from the React SPA rewrite (the static 
`<title>Airflow</title>` in `index.html` is never updated).
   
   ## Changes
   
   - **New hook**: `useDocumentTitle` in `src/utils/useDocumentTitle.ts` — sets 
`document.title` to `{pageTitle} - Airflow` and resets to `Airflow` on unmount
   - **Applied to all detail page headers**:
     - **Dag** → `{dag_display_name} - Airflow`
     - **Run** → `{dag_id} › {run_id} - Airflow`
     - **TaskInstance** → `{dag_id} › {task_id} - Airflow`
     - **MappedTaskInstance** → `{dag_id} › {task_display_name} - Airflow`
     - **GroupTaskInstance** → `{task_display_name} - Airflow`
     - **Task** → `{task_display_name} - Airflow`
     - **Asset** → `{asset_name} - Airflow`
   - **Tests**: Full test suite for the hook covering set, reset, unmount 
cleanup, and dynamic updates
   
   ## Reproduction
   
   1. Open any Airflow v3 instance
   2. Navigate to a DAG detail page
   3. Observe the browser tab — before: always "Airflow", after: "{DAG name} - 
Airflow"
   
   Closes #67145


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to