Availability module

Đang mở
#30 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
30/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
frontend

Hướng nghiên cứu

Start with the parent issue #25 and the module API issue #28, which blocks this work. Once the module API is available, map the acceptance criteria to the kernel write pipeline and the availability read helpers. Done means the module provides the specified range and reason helpers, checks capacity and buffers for advisory conflicts before writes commit, and tree-shakes when unregistered.

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 resource availability and advisory conflict detection into a proper module. When registered, the module adds availability-aware validation to the write pipeline and exposes read helpers for rendering blocked time.

Resources carry availability windows (weekday + start/end time), capacity, and before/after buffers. Advisory conflict checking runs over the events currently loaded — it is instant UX feedback, not authoritative. Authoritative validation is the server package's responsibility.

Acceptance criteria

  • `AvailabilityModule` plugs into the kernel via the module API (#28)
  • `getUnavailableRanges(date)` returns fractional minute ranges (`{ startFraction, endFraction }`) — no pixel values, no `containerHeight` parameter
  • `getUnavailabilityDetails()` returns per-resource reasons (outside hours / over capacity / no availability defined)
  • Advisory conflict detection fires on `addEvent` and `editEvent`, returning a `conflicts[]` array before the write commits
  • Capacity rules (multiple resources, consumption arrays) are correctly checked against overlapping events
  • Buffer rules (before/after minutes) are respected in conflict detection
  • Removing the `AvailabilityModule` causes availability 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.