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

   A collapsed TaskGroup renders on the Gantt chart as a single bar spanning the
   envelope of its children's runtime. That bar looks identical to a real task 
and
   reads as one very long-running task at a glance — the confusion the linked
   issue describes.
   
   Overlay a diagonal stripe (`repeating-linear-gradient`) on group aggregate 
bars
   so they are visually distinct from real task bars while keeping their 
duration
   and position (so groups still line up with the sidebar for organisation). The
   gradient composes on top of the badge's solid state color, so state remains
   legible.
   
   The stripe is applied via a `style` prop on the existing `<Badge>` rather 
than
   an overlay element, keeping the diff tiny (one file, 12 source lines) and
   preserving existing tooltip and click behavior unchanged.
   
   Regression test in `GanttTimeline.test.tsx` — mounts a group node next to a
   regular task node and asserts the group bar carries the diagonal-stripe
   overlay while the regular bar does not. Verified locally: fails on `main`,
   passes on this branch.
   
   closes: #72434
   
   Supersedes #72435 (thanks to @Kunal8954 for the earlier exploration and to
   @jroachgolf84 for suggesting the hatch approach in that thread).
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.7)
   
   Generated-by: Claude Code (Opus 4.7) 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