Repository navigation
fix(web): keep the gantt group header pinned on horizontal scroll - #764
Conversation
the group label, dot and count now sit in a sticky left-0 cell, like the task name column, so they stay visible at later dates.
There was a problem hiding this comment.
ℹ️ No critical issues — the fix works; one layout edge case worth a look.
Reviewed changes
- Group header pinned horizontally —
renderGroupHeadernow puts the status dot, label, and count in asticky left-0 z-10cell inside the existing full-widthbg-muted/20band, reusing the task-name column's sticky mechanism. - Regression test — a new
GanttView group headerblock asserts the label's sticky ancestor carriesleft-0and still contains the label and count (the most a jsdom test can check for a CSS behavior).
The pinned cell needs no background of its own: the group wrapper's bg-background is already opaque over the gridline/today-line overlay, and the parent band's tint spans the full content width, so the label sits on the same backdrop at every scroll offset. Biome is clean and the full gantt-view.test.tsx suite (24 tests) passes.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
|
Hi @tridev-tej , |
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — constraining the pinned group-header cell to the task-column width makes it mirror renderRowBody exactly, so long group labels truncate instead of permanently covering the chart's left edge.
Reviewed changes (delta since the prior pullfrog review at 0678b38):
- Pinned header sized to the task column — the sticky group-header cell now carries
style={{ width: leftColW }}andshrink-0, so it tracks live task-column resizes instead of sizing itself to its content. - Long labels truncate — the group label gained
min-w-0 truncateand the count badgeshrink-0, so a long status or sprint name ellipsizes while the count stays visible. - Resize coverage in the test — the group-header test now renders a deliberately long status name, asserts the header matches the task-name cell's width, then keyboard-resizes the column (
Home/Endongantt-task-column-resize-handle) and re-asserts width tracking and the shrink/truncate classes.
Verified locally: biome check clean on both files, vitest run src/components/projects/interactions/gantt-view.test.tsx 24/24 passing, and the new assertions fail when the width/shrink-0 are removed from the pinned cell, so the regression test has teeth.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀

the group header tracks the task-column width and stays pinned while scrolling. long labels truncate; counts stay visible when resizing.
Fixes #762