Drag-resize module

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

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/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 parent issue #25 and blocked issue #28 to understand the intended module API before taking this on. Then map the acceptance criteria to the controller and validation responsibilities described here. Done means pointer input produces logical-minute updates, constraints are checked before commit, snapping is configurable, and the module can be removed without leaving its code in the bundle.

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 drag and resize interaction into a proper module. The module translates pointer events into logical time deltas (minutes), validates the proposed change against availability and dependency constraints, and commits atomically on release.

The kernel never sees pixels. The consumer supplies a `pxPerMinute` (or equivalent) to the `ResizeController` at the adapter edge; the controller converts pointer delta → `deltaMinutes` and hands only logical values to the pipeline.

Acceptance criteria

  • `DragResizeModule` plugs into the kernel via the module API (#28)
  • `createResizeController()` returns a controller that accepts pointer events and emits `deltaMinutes` updates
  • `validateResize()` returns `{ valid, error? }` in logical units (minutes, not pixels) before the write commits
  • Resize operations respect availability windows and dependency constraints when those modules are also registered
  • Snapping (round to nearest N minutes) is configurable on the controller, not hardcoded
  • A resize that crosses a dependency constraint is blocked with a descriptive error
  • Removing the `DragResizeModule` causes drag-resize 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.