Drag-resize module

Abierto
#31 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
620
Forks
6
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TanStack/time

Todos los issues de TanStack/time

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.