platform
platform copied to clipboard
feat(tracker): Gantt — #5 tier-2 (undo/redo, saved views, bulk-select, auto-scheduling)
Summary
Adds four medium-sized productivity features on top of the polished Gantt:
- Undo / redo for all bar moves, dependency edits, and dependency deletes — single-entry-point
UndoManagerwith apply + conflict detection acrossv1entry kinds, plus visual feedback when an entry can't apply cleanly. - Saved Gantt views — persistence layer behind the
GanttSaveViewPopupscaffold from PR4; (de)serialization helpers + partition / filter helpers. - Bulk drag — multi-select bars and drag them together; co-drag state threaded through the drag controller, predecessor-boundary computation so the bulk move respects existing dependencies, commit through a single cascade pass.
- Auto-scheduling toggle plumbing — auto/manual switch for cascade behaviour.
What's in this PR (+13 incremental commits)
Undo / redo
UndoManagerwithapply+ conflict-detection for allv1entry kindsflash-storehelper for visual feedback on conflict / apply- Record undo entries for dependency edit + delete via
DependencyEditor - Route undo / redo relation-delete through
removeCollection(so activity feed stays consistent) - Conflict feedback + cascade-atomicity regression tests
Saved views
gantt-view-options(de)serialization helpers for saved-view round-trip- Saved-views filter + partition helpers
- i18n:
GanttSavedView*strings (en + de)
Bulk drag
- Pure bulk-selection helpers
- Bulk-drag predecessor-boundary computation
- Co-drag state threaded through the drag controller
- Commit bulk-drag primaries through a single cascade pass
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 |
this PR — 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 → PR4.
How to review
→ Fork compare: PR4...PR5 — 13 commits, 12 files
Largest single file is undo-manager.test.ts (~650 lines) — covers every v1 entry kind plus the cascade-atomicity regression cases.
Testing
- Comprehensive Jest coverage on
UndoManager(650-line test file). - Hand-tested bulk-drag respects predecessor boundaries; saved views round-trip correctly.
- Validated on a production-style deployment on 2026-05-18.
DCO
All commits are Signed-off-by.
Connected to Huly®: UBERF-16447