feat(plugin-gantt): dependencyTypes switch — hide the link-type switcher for id-only dependency stores#2686
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…or id-only dependency stores Data sources that persist dependencies as bare predecessor ids have no slot for a link TYPE: picking ss/ff/sf in the link context menu optimistic- updated the arrow, the persist dropped the type, and the silent refetch snapped it back to FS (线条闪一下又还原) — a misleading UI. New `gantt.dependencyTypes` (default true): declare false and the link menu hides the fs/ss/ff/sf switcher (remove-dependency stays), and drag- created links are always FS regardless of which endpoints were connected. Verified live against an id-only store: the link context menu shows only the title + 移除依赖. Suite: 342 green (2 new). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delivers the fix for the silently-reverting link-type switcher described in the referenced issue.
Data sources that persist dependencies as bare predecessor ids have no slot for a link TYPE: picking ss/ff/sf optimistically updated the arrow, the persist dropped the type, and the silent refetch snapped it back to FS (线条闪一下又还原) — a misleading UI where no choice but FS can stick.
New
gantt.dependencyTypesview config (defaulttrue, fully backwards compatible). Declaringfalse:Wired through
ObjectGanttview metadata. Verified live against an id-only store (排班计划甘特图,predecessorsid comma-list): the link context menu shows only the title + 移除依赖, type items 0. plugin-gantt suite green incl. 2 new tests.Refs the issue above; follow-up to #2682 / #2683.
🤖 Generated with Claude Code