Skip to content

Mark task-group aggregate bars on Gantt with a diagonal stripe - #72894

Merged
bbovenzi merged 1 commit into
apache:mainfrom
astronomer:hatch-task-group-durations-on-gantt
Sep 15, 2026
Merged

bbovenzi merged 1 commit into
apache:mainfrom
astronomer:hatch-task-group-durations-on-gantt

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

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?
  • Yes — Claude Code (Opus 4.7)

Generated-by: Claude Code (Opus 4.7) following the guidelines

A collapsed TaskGroup renders on the Gantt as a single bar spanning the
envelope of its children's runtime. That bar looked identical to a real task
and read as one very long-running task at a glance, exactly the confusion the
linked issue describes.

Overlay a diagonal stripe 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). Composes on top of
the badge's solid state colour so state is still legible.

closes: apache#72434
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Sep 10, 2026
@pierrejeambrun

pierrejeambrun commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Screenshots on the pr72435_task_groups repro Dag (schedule=None, catchup=False, two task groups of two BashOperators each, run to success):

Before — group_a / group_b bars look identical to real tasks:

before

After — group_a / group_b bars carry the diagonal hatch so they visibly read as aggregates:

after

Aggregate duration and position are unchanged (rows still align with the sidebar for organisation) — only the fill pattern differs.

Also tested in dark mode and with other task state, looks good.

@bbovenzi
bbovenzi merged commit e4352cd into apache:main Sep 15, 2026
152 of 153 checks passed
@bbovenzi
bbovenzi deleted the hatch-task-group-durations-on-gantt branch September 15, 2026 13:28
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Sep 15, 2026
…tripe (apache#72894)

A collapsed TaskGroup renders on the Gantt as a single bar spanning the
envelope of its children's runtime. That bar looked identical to a real task
and read as one very long-running task at a glance, exactly the confusion the
linked issue describes.

Overlay a diagonal stripe 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). Composes on top of
the badge's solid state colour so state is still legible.
(cherry picked from commit e4352cd)

Co-authored-by: Pierre Jeambrun <[email protected]>
closes: apache#72434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DAG Gantt chart taskgroup toggle

3 participants