Availability module

Aberta
#30 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
30/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
typescript
Domínio
frontend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
620
Forks
6
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TanStack/time

Todas as issues de TanStack/time

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.