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

   Re-opening of #64374 (closed unexpectedly by original contributor). 
Formatting issue fixed.
   
   ## Summary
   
   When a DAG becomes stale or deactivated, the UI still shows active-oriented 
controls like the pause toggle, parse action, and next-run information. This 
change makes the deactivated state explicit by showing a badge and hiding 
controls that imply the DAG is still schedulable.
   
   
   
   ## Changes
   
   - **`DagDeactivatedBadge.tsx`** — reusable badge component for 
stale/deactivated DAGs
   - **`Header.tsx`** — shows deactivated badge for stale DAGs, hides next-run 
stat and parse action
   - **`DagBreadcrumb.tsx`** — shows deactivated badge instead of pause toggle 
for stale DAGs
   - **`DetailsLayout.tsx`** — removes unnecessary generic type annotations on 
`useLocalStorage`
   - **`dag.json`** — adds the "Deactivated" i18n label
   - **`Header.test.tsx`** — regression test for stale DAG header behavior
   
   Fixes #63800
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Cursor (Claude Opus 4)
   
   Generated-by: Cursor (Claude Opus 4) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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