Dependencies module (FS/SS/FF/SF)

Đang mở
#32 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

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

https://github.com/TanStack/time/issues/28

Ngôn ngữ chính
TypeScript
Star
620
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/time

Tất cả issue của TanStack/time

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.