Skip to content

fix(web): keep the gantt group header pinned on horizontal scroll - #764

Merged
pikann merged 2 commits into
Paca-AI:masterfrom
tridev-tej:fix-issue-762
Nov 18, 2026
Merged

pikann merged 2 commits into
Paca-AI:masterfrom
tridev-tej:fix-issue-762

Conversation

@tridev-tej

@tridev-tej tridev-tej commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Fixes #762

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — the fix works; one layout edge case worth a look.

Reviewed changes

  • Group header pinned horizontally — renderGroupHeader now puts the status dot, label, and count in a sticky left-0 z-10 cell inside the existing full-width bg-muted/20 band, reusing the task-name column's sticky mechanism.
  • Regression test — a new GanttView group header block asserts the label's sticky ancestor carries left-0 and 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann

pikann commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Hi @tridev-tej ,
The CI is failing on this PR. Could you please help review or get this merged when you have a moment?

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 }} and shrink-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 truncate and the count badge shrink-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/End on gantt-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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann pikann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 9b661b9 into Paca-AI:master Nov 18, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Gantt view: group header (e.g. status) scrolls horizontally with the timeline instead of staying pinned

2 participants