platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(tracker): Gantt — #10 bar coloring + overlays + sub-issue progress

Open MichaelUray opened this issue 6 months ago • 1 comments

Stack context

This PR sits on top of #10872 (PR9 — filter chips + advanced search + view-option toggles, currently Draft) which in turn sits on top of the #10851 PR1 → #10859 PR7 Gantt feature series.

The diff against develop therefore shows the full dependent stack (PR1-PR7 + PR9 + bar-colors). The actual marginal content of this PR is documented below. Once the dependent PRs merge, this branch will be rebased onto upstream develop and the diff collapses to bar-colors only.

This PR is opened as Draft to give visibility into the planned feature surface and let CI run early — same convention as PR2-PR7.

Marginal bar-colors content (what this PR actually adds)

13 commits introducing the bar-coloring feature on top of the read-only/edit/dependencies/polish/tier2 viewlet, plus 3 small polish commits after the Plan-2 merge:

Core bar-coloring (13 commits)

Commit Description
1e10fc40b8 Bump contrast on Todo + Cancelled status bars
04eb240601 Add GanttBarIssueLike type + isPastDue / isBlocked predicates
fa5da87709 Add optional color field to Component and Milestone schemas
459a3740d3 ColorsPopup swatch in EditComponent + EditMilestone
76bac88823 Pure bar-color resolver for 6 color modes (Status / Priority / Assignee / Component / Milestone / Uniform)
0ada4c51c0 Extend GanttSavedViewOptions with 4 new toolbar fields
04ac2090fa Wire bar-color resolver into GanttView + GanttBar
b722d66c47 Render past-due stripe + blocked hatch overlays
323e93fbba Sub-issue progress fill (Status mode only)
3c0543807d Toolbar Color by dropdown with 6 modes
6a54362064 Persist bar-color toolbar state in saved views
3a7be3d271 Expose overlay + progress toggles in ganttViewOptions (Customize-View popover)
0547f5dcb0 Lighten canvas background

Post-Plan-2-merge polish (3 commits)

Commit Description
c228d5f7f7 Compact Group-by + Color-by toolbar dropdowns
f71613c2d7 Shorten GanttColorByNone label + cap select intrinsic width

Feature summary

  • 6 color modes selectable from the toolbar Color by dropdown:
    • Status (default) — issue lifecycle stage
    • Priority — Urgent / High / Medium / Low / No-priority
    • Assignee — distinct hue per person
    • Component — uses the new optional color field on Component (falls back to a generated hue if unset)
    • Milestone — same pattern with Milestone color
    • Uniform — single color for all bars (good for screenshots / printing)
  • Overlay layer rendered on top of any base color:
    • 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 via 4 new fields on GanttSavedViewOptions. The Customize-View popover (cog icon) exposes the same toggles through ganttViewOptions for users who prefer the popover surface.

Test coverage

  • plugins/tracker-resources jest: 686 tests pass including the new bar-color resolver suites
  • packages/ui jest: 62 tests pass (includes the encoder hardening + leading-hyphen escape from PR9)
  • plugins/view-resources jest: 19 tests pass
  • svelte-check: 0 errors across all three packages

Deployment

This branch (feat/gantt-bar-colors) is currently deployed live at https://huly.uray.io as hardcoreeng/front:plan4-pr9-pr10 for hands-on testing. The feature has been validated end-to-end in the browser including saved-view round-trips and dropdown UX.

Companion docs PR

huly-docs#70 — includes bar-coloring.mdx (the dedicated bar-colors reference) plus 8 screenshots of the feature in action.

DCO

All commits in this PR are Signed-off-by: Michael Uray.

Note on rebasing

When PR9 merges upstream, this branch will be rebased to:

  1. Drop the Plan-2 merge commit (its content arrives via upstream/develop)
  2. Drop the cherry-picked encoder-hardening + leading-hyphen + marker-scrub commits (also in upstream via PR9)
  3. Keep only the 16 bar-colors-specific commits listed above

At that point the PR diff will be a clean bar-colors-only delta.

MichaelUray avatar May 21 '26 05:05 MichaelUray

Connected to Huly®: UBERF-16463

huly-github-staging avatar May 21 '26 05:05 huly-github-staging