platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(tracker): Gantt — #3b dependencies + cascade + critical path

Open MichaelUray opened this issue 6 months ago • 1 comments

Summary

Brings dependencies, cascade-scheduling, and critical path to the Gantt. Issues can be linked through typed IssueRelation Mixins (FS / SS / FF / SF), the canvas paints arrow connectors between dependent bars, dragging a bar with downstream dependencies opens a "cascade confirm" popup that previews and atomically commits the shift across the whole dependency tree, and an optional critical-path mode highlights the longest dependency chain plus the per-issue slack.

This is the largest single PR in the stack (~6 000 lines, 61 files). Most of that is the dependency simulation library + its test suite, plus the cascade-confirm UI.

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

Dependency editing (PR4b family)

  • feat(tracker) predecessor / successor direction chooser
  • feat(tracker) readable Dependencies panel + IssueRelation activity presenter
  • feat(tracker) unified hierarchy add chooser + resizable pickers
  • fix(tracker) scoped dependency picker to current project; wrap ObjectPopup so items render
  • fix(tracker-resources) confirm dialog before dependency removal
  • Connector drag — single event path through the canvas, target drop indicator, connector dot above arrows

Cascade scheduling (PR4b)

  • simulateCascade library — FS push + no-cascade, SS/FF/SF anchor model, pull-predecessor support, cycle bailout
  • commitWithCascade — body-drag wiring + single-confirm flow
  • ConfirmCascadePopup with mini-timeline preview
  • Permission check before no-cascade return; popup polish + legacy confirm parity
  • Comprehensive test suite — cycle bailout, chain + iteration-overflow, parent-drag + merge, hidden-issue scope, permission-denied

Critical path (PR5)

  • Critical-path types + topological-sort scaffold with cycle bailout
  • View-options — ganttCriticalPath + ganttSlackColumn toggles
  • Violated bars paint red
  • Critical-path UI wiring + i18n keys (en)

Misc

  • feat(tracker-resources) show Gantt IssueRelations in the issue editor
  • Export / keyboard-shortcut scaffolding and DE i18n hooks used by later polish work
  • fix(notification-resources) return ArrayBuffer-backed push key
  • Various stabilization fixes (Gantt viewport, connectors, bar editing, pan-from-bar, dependency init)

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 this PR — dependencies + cascade + critical path draft
PR4 …pr4-polish polish draft
PR5 …pr5-tier2 undo, saved views, bulk, auto-scheduling draft
PR6 …pr6-tier3-virtualization 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+PR2+PR3a.

How to review

→ Fork compare: PR3a...PR3b — 79 commits, 61 files

Recommended reading order:

  1. simulateCascade and its tests in plugins/tracker-resources/src/components/gantt/lib/
  2. commitWithCascade wire-up in the drag controller
  3. ConfirmCascadePopup.svelte for the UI surface
  4. Critical-path module + view-option toggle

Testing

  • 8 cascade test files covering FS push, SS/FF/SF anchors, pull-predecessor, cycle bailout, chain + iteration overflow, parent-drag + merge, hidden-issue scope, permission-denied.
  • Critical-path topo-sort guarded against cycles; destroy timer covered by component lifecycle.
  • Validated on a production-style deployment on 2026-05-18.

DCO

All commits are Signed-off-by.

MichaelUray avatar May 18 '26 22:05 MichaelUray

Connected to Huly®: UBERF-16446

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