platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(tracker): Gantt scheduling schema (startDate + IssueRelation) + version bump

Open MichaelUray opened this issue 6 months ago • 5 comments

Stack overview

This PR is the foundation of a 10-PR Gantt-chart feature series for Tracker. The full stack is opened as Drafts to give visibility into the planned scope; this PR (#10851) is the only one currently ready for maintainer review / merge. Each follow-up rebases onto develop once its predecessor merges.

graph TD
  D[develop @ hcengineering/platform]:::base
  D --> P1["#10851 — Scheduling schema foundation"]:::ready
  P1 --> P2["#10853 — Read-only Gantt viewlet"]:::draft
  P2 --> P3a["#10854 — Editable bars (drag / resize / dnd)"]:::draft
  P3a --> P3b["#10855 — Dependencies, cascade scheduling, critical path"]:::draft
  P3b --> P4["#10856 — Visual + UX polish"]:::draft
  P4 --> P5["#10857 — Power-user features (undo, saved views, bulk, auto-schedule)"]:::draft
  P5 --> P6["#10858 — Y-axis virtualization for large projects"]:::draft
  P6 --> P7["#10859 — Mobile + tree-view + predecessor column + shift notifications"]:::draft
  P7 --> P9["#10872 — Inline filter chips + advanced search bar"]:::draft
  P9 --> P10["#10873 — Bar coloring (6 modes) + past-due/blocked overlays + sub-issue progress"]:::draft

  M[main @ hcengineering/huly-docs]:::base
  M --> Docs["huly-docs #70 — Full reference (15 pages, 33 screenshots)"]:::ready

  P10 -.documents.-> Docs

  classDef base fill:#e7e7e7,stroke:#555,color:#222
  classDef ready fill:#d4edda,stroke:#28a745,color:#155724
  classDef draft fill:#fff3cd,stroke:#ffc107,color:#856404

Legend: 🟢 ready-for-review · 🟡 draft (depends on predecessor) · ⚪ upstream base branch

ℹ️ Screenshots below reflect the integrated feature stack (snapshot 2026-05-21 from a staging deployment running the tip of all 10 branches together). They do not match the visual state of any individual PR taken in isolation — earlier PRs in the chain render simpler UI than what is shown. Each screenshot is intended as a feature reference, not a per-PR regression baseline.

Suggested merge order

  1. This PR (#10851) — pure schema, safe foundation
  2. #10853 → #10859 in order — visual stack, each rebases onto develop after the previous merges
  3. #10872 → #10873 — currently draft visibility PRs; they should be rebased / marked ready after #10859 merges
  4. huly-docs#70 — independent of code merge timing, can merge anytime after the relevant PRs are in

Local verification has passed for the branches touched in the latest update. Some GitHub Actions on draft / fork PRs may still require maintainer approval before they run. Every commit is Signed-off-by. All PRs have maintainer_can_modify=true — feel free to push fixes or rebase directly.

What each follow-up PR does (expand for details + screenshots)

Visual stack (PR2 → PR7)

  • #10853 — Read-only Gantt viewlet New view type next to List and Board. Each issue is rendered as a horizontal bar spanning from its startDate (left edge) to dueDate (right edge) on a time axis. Zoom levels: Day, Week, Month, Quarter. Read-only — bars cannot be dragged yet.

    Read-only Gantt overview

  • #10854 — Editable bars (drag / resize / dnd) Drag a bar horizontally to reschedule (start + due move together). Resize either edge to change duration. Drag-and-drop rows to reorder issues. Mouse + touch.

  • #10855 — Dependencies, cascade scheduling, critical path Visible directional arrows between dependent issues. When you drag a predecessor, its dependents shift forward automatically (cascade). The longest dependency chain is highlighted in red as the critical path.

    Dependency arrows + critical path

  • #10856 — Visual + UX polish Typography alignment, focus states, hover feedback, dark/light theme parity, keyboard navigation refinements across the viewlet.

  • #10857 — Power-user features Four independent additions:

    • Undo/redo for drag, resize, dnd, dependency-create actions
    • Saved views — capture current filter + grouping + zoom + time window as a named view, personal or shared with project members
    • Bulk select — Cmd-click or Shift-click to select multiple bars and drag them together
    • Auto-scheduling — optional mode that nudges pinned bars out of the way when a manual drag creates a collision

    Saved views dropdown

  • #10858 — Y-axis virtualization Performance improvement for large projects. Only visible rows are rendered to the DOM; scrolling stays smooth on projects with thousands of issues.

  • #10859 — Mobile + tree-view + predecessor column + shift notifications Five smaller additions that round out the feature:

    • Mobile — responsive layout, pinch-zoom, touch-friendly drag handles
    • Tree-view — parent → sub-issue hierarchy in the sidebar
    • Predecessor column in the issue list (shows dependency IDs)
    • Visual dependency arrows on hover even outside the active issue
    • Shift notifications — Telegram / inbox notify when a cascade shift moves an issue you own

    Mobile view

Companion track (PR9 + PR10, stacked on PR7)

  • #10872 — Inline filter chips + advanced search bar Reusable across List, Board, and Gantt viewlets:

    • Inline filter chips — All / Active / Backlog quick-filter row directly on the toolbar
    • Advanced search — field-prefix syntax (title:loader, id:HULY-, comments:fixed); Lucene-reserved chars escaped properly so title:C++ and title:POC: design don't crash the parser
    • Customize-View popover — Search in... scope dropdown (Title / Title+Description / Title+Description+Comments), highlight-search-matches toggle, quick-filter visibility toggle
    • Empty-state card — friendly zero-results screen with reset actions

    Inline filter chips + active search

  • #10873 — Bar coloring + overlays + sub-issue progress Six color modes selectable from a toolbar Color by dropdown:

    • Status (default) — issue lifecycle stage
    • Priority — Urgent / High / Medium / Low / No-priority
    • Assignee — distinct hue per person
    • Component — uses a new optional color field on Component
    • Milestone — same pattern with Milestone color
    • Uniform — single color for all bars (for screenshots / printing)

    Plus an overlay layer that works on top of any color mode:

    • Past-due bars get a red left-stripe
    • Blocked bars (finish-to-start predecessor not Done) get a diagonal hatch
    • Sub-issue progress fill (Status mode only) shows how much of the parent's work is Done

    All toolbar state persists in saved views.

    Color by Status

    Past-due + blocked overlays

Documentation

  • huly-docs#70 — Full Gantt-chart reference (open for review, independent of code) 15 mdx pages under tracker/gantt/ covering overview, bar coloring, dependencies, cascade scheduling, critical path, working-days awareness, filtering & grouping, advanced search, no-search-results state, saved views, bulk operations, auto vs manual scheduling, keyboard shortcuts, export, mobile/tablet. 33 light-theme screenshots all taken from a live deployment of the feature stack.

This PR — Scheduling schema foundation

Adds the schema foundation a Gantt-style scheduling view needs: an Issue.startDate field alongside the existing dueDate, an IssueRelation Mixin describing typed predecessor/successor links between issues, and a Milestone.startDate so milestones become real ranges instead of single points. The migration backfills startDate for existing issues (modifiedOn-fallback) and bumps the fulltext model version so deployed workspaces accept the new schema fields.

This is the first of the 10-PR series shown above. Each follow-up PR builds linearly on this one. Happy to discuss the broader feature plan before continuing — I can hold the follow-ups in draft or split / merge them differently if that fits the roadmap better.

What's in this PR (7 commits)

  • feat(tracker) add Gantt scheduling schema (startDate + IssueRelation)
  • feat(model-tracker) migrateAddStartDate operation + Jest tests
  • feat(tracker) expose Issue.startDate / Milestone.startDate in the UI; tighten typing
  • fix(tracker) explicit @Prop ranks for Milestone date fields
  • fix(tracker-resources) EditMilestone renders Status / Start / Target in chronological order
  • fix(fulltext) bump model version to 0.7.423 to match deployed workspaces (otherwise the fulltext pod silently rejects Tx events that mention the new fields)

How to review

Cumulative diff against develop. PR1 contains 7 commits across 31 files (+336 / −11). The schema change itself is the single largest semantic step; the rest are migration + UI plumbing that follow directly from it.

Testing

  • Jest tests on migrateAddStartDate cover the backfill behaviour for issues with / without dueDate.
  • Validated on a production-style deployment on 2026-05-18: schema migration runs cleanly on a workspace that pre-existed at model version 0.7.422, fulltext pod accepts the new fields, no rejected Tx events.

DCO

All 7 commits are Signed-off-by.

MichaelUray avatar May 18 '26 19:05 MichaelUray

Connected to Huly®: UBERF-16441

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

Hello @MichaelUray Thank you for your contribution. We would happy to review your PRs, but we need some time for it

BykhovDenis avatar May 19 '26 18:05 BykhovDenis

Update to the original stack overview — two new PRs opened on the side of the original 7-PR series, both companion to this Gantt feature work:

  • #10872 — Plan-2: inline filter chips + advanced search + view-option toggles (successor to closed #10849). Includes 5 rounds of search-encoder hardening + a typed-tokenizer refactor + leading-hyphen escape fix.
  • PR10 (deferred) — Gantt bar coloring + overlays + sub-issue progress. Will open after #10872 merges so it can rebase onto a clean upstream/develop.

Companion docs PR (covers both this PR1-PR7 series plus the bar-coloring follow-up): huly-docs#70 — now 15 mdx pages + 33 screenshots.

MichaelUray avatar May 21 '26 04:05 MichaelUray

Stack overview update — PR10 is now also open as Draft: #10873 (Gantt bar coloring + overlays + sub-issue progress + saved-view bar-color snapshot). It is stacked on top of #10872 PR9. Companion docs page bar-coloring.mdx already in huly-docs#70.

MichaelUray avatar May 21 '26 05:05 MichaelUray

We would happy to review your PRs, but we need some time for it

Sure, there a quite a few lines of code involved. Any feedback is welcome.

MichaelUray avatar May 25 '26 15:05 MichaelUray