Dependencies module (FS/SS/FF/SF)
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- typescript
- 領域
- api
研究方向
Read parent issue #25 and the module API work in issue #28 first; this issue is blocked by #28. Then inspect CalendarCore and the existing write pipeline to understand where dependency handling belongs. Done means the module meets the listed creation, cycle validation, cascading, validation, and tree-shaking criteria.
由索引模型根據 Issue 內容生成。
描述
Parent
https://github.com/TanStack/time/issues/25
What to build
Extract the FS/SS/FF/SF event dependency system into a proper module. When registered, the module adds dependency-aware transformation to the write pipeline: moving a predecessor event automatically cascades the required shift to all dependents in topological order.
This module is the reason the Timeline/Gantt view exists as a product. Extracting it from `CalendarCore` into a module also fixes the current architecture where Gantt semantics are baked into the Calendar kernel.
Acceptance criteria
- `DependenciesModule` plugs into the kernel via the module API (#28)
- `createDependency(sourceId, targetId, type)` creates a link and validates it does not form a cycle
- Moving a predecessor cascades the correct shift to all dependents (FS: finish-to-start, SS: start-to-start, FF: finish-to-finish, SF: start-to-finish)
- Cascade propagates transitively through the dependency graph in topological order
- `validateEventDependencies()` checks whether placing an event satisfies its predecessor constraints
- Circular dependency detection rejects the link with a descriptive error before it is committed
- Removing the `DependenciesModule` causes dependency code to tree-shake out of the bundle
Blocked by
- 主要語言
- TypeScript
- 星號
- 620
- 分支
- 6
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/time 的其他 Issue
-
難度 5/5 一週以上 新手友好度 5/100
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
-
enhancement
難度 5/5 一週以上 新手友好度 32/100
-
enhancement
難度 4/5 3-5 天 新手友好度 35/100
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
維護者通常 1 天內回覆
-
needs-area
難度 2/5 1-3 小時 新手友好度 68/100
Azure/typespec-azure#5936 ·
維護者通常 1 天內回覆
-
難度 2/5 半天 新手友好度 72/100
vercel-labs/scriptc#2910 ·
維護者通常 1 天內回覆
-
automation missing-model model-sync provider:fireworks-ai
難度 2/5 1-3 小時 新手友好度 72/100
anomalyco/models.dev#12458 ·
維護者通常 1 天內回覆