platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(tracker): Gantt — #4 visual polish + UX refinement

Open MichaelUray opened this issue 6 months ago • 1 comments

Summary

Visual + UX polish across the Gantt view: theme-variable colours instead of hex, sidebar tree glyphs become Chevron icons, the corner cell hosts Expand-all / Collapse-all (left-aligned), priority filter shows Urgent / High / Medium / Low labels, continuous Ctrl+wheel zoom, mobile-friendly long-press routing, data-driven PNG/PDF export with full sidebar + chart, and a dedicated Customize-View vs Configure-Columns split with distinct tooltips.

Also lands the Estimation row in the bar quick-info popover, the GanttSaveViewPopup modal scaffold (Save-View UI shell — the persistence layer lands in PR5), and the IssueRelation activity feed so dependency add/remove/update events show in the standard activity stream.

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

Look & feel

  • Replace hex colours in Gantt with theme variables
  • Replace tree glyphs with ChevronRight / ChevronDown icons
  • Add Estimation row to bar quick-info popover
  • Resolve Gantt aria-labels via translateCB; add aria-label + title to date-nav buttons
  • Add xmlns to canvas SVG root
  • Left-align Expand/Collapse-all in the sidebar corner cell

Toolbar & view-option UX

  • Collapse 4 zoom-preset buttons into a Dropdown + numeric days-input
  • Keep both Customize-View + Configure-Columns buttons in Gantt mode, with split tooltips
  • Hide standard Customize-View buttons in Gantt mode; viewlet renders its own
  • Hide group-by / sort in ViewOptions popup when the viewlet renders its own
  • Wrap Gantt toolbar on tablet viewports
  • Drop Gantt-toolbar Filter button → use FilterBar as single source

Interaction

  • Continuous Ctrl+wheel zoom over Gantt canvas (works in Month and Quarter)
  • GanttBar — pointer-only events + long-press routing (touch friendliness)
  • Wire layoutMode + pinch-zoom into GanttView
  • Replace Gantt double-click on mobile with quick-info "open editor" button
  • Defer scroll-driven translateX sync via rAF (silences Firefox scroll-linked positioning warning)
  • Freeze Gantt drag preview while confirm popup is open; keep drag preview alive

Sidebar extension

  • Wire per-column toggles for the extended Gantt sidebar
  • Thread nameLookup map through group-by helpers
  • Sidebar-sort cycle + comparators with full Jest coverage
  • Align Gantt extended sidebar grid width and sticky header

Save-View scaffold

  • GanttSaveViewPopup modal — name + fix-window + public toggles (persistence in PR5)
  • Close popup on X-click via onCancel

Export

  • Data-driven PNG / PDF export with full sidebar + chart
  • Drop duplicate Phase-1 Gantt toolbar to unblock PNG/PDF export

Activity feed

  • Register IssueRelation add/remove/update activity viewlets
  • RelationActivityPresenter for activity feed rendering
  • Migrate legacy IssueRelation remove activity docs
  • Use removeCollection for relation deletion so activity feed renders detail
  • Predecessor-list-format helper

i18n

  • Relation activity strings (en + de)

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 this PR — visual polish + UX 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 → PR3b.

How to review

→ Fork compare: PR3b...PR4 — 105 commits, 118 files

This is largely incremental UX work — most commits are small and self-explanatory. Largest single concern is the sidebar-sort cycle + comparators, which has its own test fixture.

Testing

  • Jest coverage on sidebar-sort comparators (+ cycle tests).
  • Hand-tested Ctrl+wheel zoom in Day / Week / Month / Quarter modes.
  • PNG / PDF export tested on a project with sidebar + bars + arrows.
  • 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-16445

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