Repository navigation
Conversation
TaskGroups render on the Gantt chart as a single aggregate bar spanning from the earliest child start to the latest child end. When the actual task work inside the group is short, that envelope still reads as one very long-running task, making the chart hard to interpret. Add a "Hide Task Group Durations" switch (Gantt view -> Options) that drops the aggregate bar for TaskGroup rows while keeping the row itself in place, so grouping is still visible for organizing the chart. The setting persists via localStorage, matching the existing "All Dag Dependencies" toggle. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015kAvbZ6SeKgp6jbGcvpXSh
xcoms.spec.ts's filter tests locate the active filter pill's input via
page.locator("div").filter({ hasText: `${filterName}:` }), which
matches any ancestor whose descendant text contains that string.
apache#71554 restructured the filter bar's DOM so more than one ancestor now
matches, and .first() no longer reliably picks the actual pill -
getByRole("textbox") on it resolves to every textbox inside whichever
div wins, throwing "resolved to 12 elements instead of 1".
Give the actively-editing pill's input a stable data-testid
(filter-pill-input) instead of relying on ancestor text matching, and
scope XComsPage.applyFilter() to it directly. Only one pill is ever in
edit mode at a time, so the testid alone is enough - no per-filter key
plumbing needed.
Added a FilterBar test that fails without the fix (verified locally by
reverting the testid and confirming the new test - and only that
test - breaks).
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015kAvbZ6SeKgp6jbGcvpXSh
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015kAvbZ6SeKgp6jbGcvpXSh
|
Thanks! Could you provide a screenshot of the change? |
|
TBH, I'm not so sure I love this. Now, it looks like there is a significant chunk of "missing" time. I would rather do something like add hatches to the Task Group bar, or something like that. |
Thanks for the feedback! That's a fair point — hiding the bar entirely does read as "missing" time. I've reworked it to keep the Task Group bar visible at all times, but render it with a diagonal hatch overlay when the toggle is on, so it's visually distinct as an aggregate rather than an individual task's runtime. Pushing an update now — will share a screenshot shortly. Let me know if that direction works, or if you had something more specific in mind for the hatching. |
@jroachgolf84 pointed out that dropping the Task Group's aggregate bar entirely made it look like a chunk of time was missing. Overlay a diagonal hatch pattern on the bar instead, so the full envelope span stays visible while still reading as an aggregate rather than a real, individual task's runtime.
|
@jroachgolf84 Good call — pushed a follow-up commit (6062249) that drops the "hide entirely" approach in favor of what you suggested: Task Group bars now render with a diagonal hatch overlay instead of disappearing, so the full time span stays visible (no more "missing" chunk) while still being visually distinct from a real, solid task bar.
Let me know if the stripe angle/spacing/opacity should be tuned, or if you'd rather see it applied without the toggle at all (always-on for Task Group bars). |
|
What does it look like when you expand the TaskGroup? Can you share a snip? |
- Anchor the Task Group hatch pattern to the row's left edge instead of each segment's own local origin, so a group bar split across multiple state segments tiles into one continuous diagonal pattern instead of the stripes breaking at each segment boundary. - Treat segments as touching based on real time-adjacency, not only a matching try number, so a queued segment immediately followed by its execution segment renders with a flat merged edge instead of a rounded bump at the seam.
There was a problem hiding this comment.
Thank you for the pull request.
Since task group are now displayed with stripes, can you remove the code relative to the toggle please or rename the toggle to something like "Mark task groups duration as Aggregates".
Please keep the change limited to the issue you are trying to fix. Extract unrelated code change (bug fixes) to another PR.
Remove the redundant Task Group duration toggle now that aggregate bars use hatching, and keep unrelated XCom test changes out of this pull request.\n\nCo-authored-by: Copilot <[email protected]>
Keep the UI static checks clean so the pull request can pass validation. Co-authored-by: Copilot <[email protected]>
|
Thanks for taking this forward, @pierrejeambrun! Since the diagonal-stripe approach is being implemented fresh in #72894, closing this one out in favor of that. Happy to help review/test #72894 if useful. |
There was a problem hiding this comment.
A few comments. I'm opening an alternative #72894 that should supersede.
But you can recycle this one to fixing the other issues mentioned in this PR.
The hatch pattern was restarting from each segment's own local origin, so a group bar split across multiple state segments could show a visible break in the diagonal lines.
Touching segments (e.g. a queued segment immediately followed by the run) weren't always getting their shared corner squared off, so you'd occasionally see a rounded bump instead of a flat boundary between them.
Both fixes are in the latest push.
I didn't observe this on my PR, but you can rebase this one of top of mine and see if this piece is still needed.
| @@ -0,0 +1 @@ | |||
| Add a toggle to hide Task Group durations on the Gantt chart. | |||
| `version_indicator_display_mode`, | ||
| VersionIndicatorOptions.ALL, | ||
| ); | ||
|
|
There was a problem hiding this comment.
?
Unrelated remove please.
| )} | ||
| </Badge> | ||
| {node.isGroup === true ? ( | ||
| <Box |
There was a problem hiding this comment.
The extra Box is required for the hatch-pattern overlay on the Task Group aggregate bar. It needs to sit above the Badge so the pattern also overlays the badge fill/icon, while pointerEvents="none" keeps it purely decorative. I’ve also removed the stale newsfragment and restored the unrelated whitespace change.
The newsfragment no longer describes what the PR does after the approach switched from a hide-duration toggle to stripe overlays, so it is removed rather than rewritten. The whitespace-only change to DetailsLayout is unrelated to the Gantt feature and is reverted to keep the diff focused.
|
@pierrejeambrun |
There was a problem hiding this comment.
Thanks,
Closing in favor of #72894 which was merged.
Feel free to open another PR if you feel like a follow up on the gantt chart is needed to fixed other unrelated issues you mentioned earlier in the PR.
While putting this screenshot together I also caught and fixed two small rendering seams in the segment/stripe code:





closes: #72434
What's the problem
TaskGroups show up on the Gantt chart as a single bar spanning from the earliest child task's start to the latest child task's end (the "envelope" of everything inside). When the tasks inside actually run quickly, that envelope bar still reads as one very long-running task, which makes the chart hard to interpret at a glance — exactly what the issue describes. Removing TaskGroups from the Gantt entirely was considered and rejected in the issue itself, since they're still useful there for organizing the chart.
The fix
Add a "Hide Task Group Durations" switch under Gantt view -> Options (next to the existing Dag Runs / Version Indicator settings). When it's on:
The setting is a boolean stored in localStorage (
gantt_hide_group_durations), following the same pattern as the existing "All Dag Dependencies" toggle, so it persists across sessions and applies globally (not scoped to one Dag).Tests
Added two tests to
GanttTimeline.test.tsx:Verification
vitest runonGanttTimeline.test.tsx+Gantt/utils.test.ts: all passing (8/8 in the touched file, including the 2 new tests).eslint --quieton every touched file: clean.tsc -p tsconfig.app.json: clean.prettier --check: clean.mainbefore running all of the above.Disclosure: this PR was prepared with the assistance of Claude Code (the commit carries a
Co-Authored-Bytrailer). I reviewed the change and take responsibility for it.🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_015kAvbZ6SeKgp6jbGcvpXSh