platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(tracker): Gantt — #6 tier-3 virtualization (large-project performance)

Open MichaelUray opened this issue 6 months ago • 1 comments

Summary

Vertical virtualization for the Gantt y-axis: only the rows within (or near) the visible viewport are mounted, and the dependency-arrow layer skips arrows whose endpoints both lie outside the viewport. Uses @tanstack/svelte-virtual as the foundation. Designed so projects with thousands of issues stay smooth — Jest performance gates assert that the y-viewport manager scales to 1 000 and 5 000 rows.

What's in this PR (+7 incremental commits)

  • deps add @tanstack/svelte-virtual to tracker-resources
  • Y-viewport manager for Gantt vertical virtualization
  • Sidebar-virtualization range helper (Phase 3a foundation reused here)
  • Classify dependency-arrow visibility against the y-viewport — skip arrows entirely off-screen
  • test 1 000 + 5 000-row y-viewport perf gates
  • chore remove dead Gantt lib files (filter-predicate, old sidebar-virtualization)
  • chore scrub internal tier/version markers from inline comments

Stack overview

# Branch Scope Status
PR1 …pr1-schema schema + version bump open
PR2 …pr2-readonly read-only viewlet draft
PR3a …pr3a-edit drag / resize / dnd draft
PR3b …pr3b-deps-cascade-cp dependencies + cascade + critical path draft
PR4 …pr4-polish polish draft
PR5 …pr5-tier2 undo, saved views, bulk, auto-scheduling draft
PR6 …pr6-tier3-virtualization this PR — virtualization draft
PR7 …pr7-tier4 mobile + tree + predecessor col + visual deps + notifications draft
Docs (huly-docs#70) MichaelUray:feat/gantt-section reference + screenshots open

Marked as draft to signal stack dependency on PR1 → PR5.

How to review

→ Fork compare: PR5...PR6 — 7 commits, 6 files

Reading order:

  1. y-viewport manager — the new module
  2. y-viewport.test.ts — the perf gates explain the design constraints
  3. Arrow-visibility classifier — minimal change at the connector layer

Testing

  • 1 000 + 5 000-row perf gates in y-viewport.test.ts.
  • Validated on a production-style deployment on 2026-05-18 — large project with 1 200 issues stays responsive while scrolling.

DCO

All commits are Signed-off-by.

MichaelUray avatar May 18 '26 22:05 MichaelUray

Connected to Huly®: UBERF-16448

huly-github-staging avatar May 18 '26 22:05 huly-github-staging