feat(tracker): Gantt — #3a editable viewlet (drag, resize, dnd)
Summary
Makes the Gantt viewlet editable: bars can be dragged horizontally to reschedule, edges grabbed to resize start- or end-date, and unscheduled issues dropped onto the canvas to set both dates at once. Adds keyboard navigation (Tab cycles bars, arrows shift by 1 day) and a per-bar right-click context menu. All write operations gate on per-issue edit permission.
Dependency editing (cascade, predecessor/successor links, critical path) is deferred to PR3b so this PR stays focused on bar-level interaction.
What's in this PR (+24 incremental commits)
- State machine —
drag-controllerreducer (idle / body-drag / resize-left / resize-right) with clamping and atomic commit; per-issue edit-permission map; activeDrag Svelte store - Bar interaction — edge-detect for resize handles, drag preview geometry with tint, "spotlight" dim of non-active rows during drag, direct idle→drag transition (no click-first)
- Drag from unscheduled — drop on canvas sets both
startDateanddueDate - Keyboard — Tab cycles bars, arrow keys shift selected bar by one day
- Right-click context menu — on bar and on sidebar row; deny-list for irrelevant default actions; restore Open / Parent / Sub-Issue actions
- Scheduler util —
scheduler.descendantsWithDatesfor cycle-safe BFS (used by drag preview) - Parent-drag — single-source-of-truth model, correct canvasX offset, a11y roles
- Select-first drag + confirm popup for risky moves
- Hierarchy submenu in EditIssue + supra labels in header
- Local "Set start date" action for the Gantt menu
- i18n keys for set-start-date + 5 toast/tooltip strings
Stack overview
| # | Branch | Scope | Status |
|---|---|---|---|
| PR1 | …pr1-schema |
schema + version bump | open |
| PR2 | …pr2-readonly |
read-only viewlet | draft |
| PR3a | …pr3a-edit |
this PR — 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 |
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.
How to review
→ Fork compare: PR2...PR3a — 24 commits, 25 files
The reducer in drag-controller.ts is the architectural centerpiece — the rest of the PR wires Svelte components into the four reducer states.
Testing
- Hand-tested all four reducer transitions (idle → body-drag / resize-left / resize-right) and the drag-from-unscheduled path.
- Validated on a production-style deployment on 2026-05-18.
DCO
All commits are Signed-off-by.
Connected to Huly®: UBERF-16444