Skip to content

fix(gantt): recalculate project dates on setRecords - #5325

Merged
fangsmile merged 1 commit into
developfrom
fix/issue-4631-set-records-project-times
Sep 21, 2026
Merged

fangsmile merged 1 commit into
developfrom
fix/issue-4631-set-records-project-times

Conversation

@fangsmile

Copy link
Copy Markdown
Contributor

Summary

  • recalculate project task ranges before refreshing Gantt data in setRecords
  • add focused regression coverage for replacing records with a project whose dates come from children
  • add an interactive example and a Bugserver Photo case with explicit PASS/FAIL output

Closes #4631

Test plan

  • Regression test fails on pre-fix code and passes after the fix
  • rushx test --runInBand (9 suites, 27 tests)
  • rushx compile
  • ESLint on changed TypeScript files (0 errors)
  • Browser demo: project range is 2024-11-12 - 2024-11-20 and the project bar renders immediately
  • rush test --only tag:package through the pre-push hook
  • Bugserver pre-fix build 1.0.0.4551: FAIL | project range=missing - missing

Bugserver case: https://bugserver.cn.goofy.app/case?product=VTable&fileid=6aaf8946952abe004538cf80&version=1.0.0.4551

🤖 Generated with Claude Code

Derive replacement project ranges before refreshing data and table state.
This makes project bars render immediately after setRecords.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
@fangsmile
fangsmile merged commit 3042139 into develop Sep 21, 2026
7 of 8 checks passed
@fangsmile
fangsmile deleted the fix/issue-4631-set-records-project-times branch September 21, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant