[LayerNext 4] Migrate built-in layers and finalize the v2 public API
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
Línea de trabajo
Start by reading parent #373 and dependencies #374–#376, then inspect the v2 layer examples, React integration, migration guide, and layer authoring docs. Coordinate with #360 and #363–#367 before changing built-in canvas, HTML, combined, and resource-free layers or final exports. Done means the new model can replace the transitional API without duplicate engines, while runtime, compiler, build, lint, E2E, fixture, consumer, and cleanup checks all pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Parent: #373. Status: deferred. Target branch: v2.
Dependencies: #374, #375, #376. Coordinate with #360 and #363-#367 so migrated packages retain permanent strict checks and consumer compatibility.
Goal
Validate the new authoring model on real layers while old Layer and LayerNext can coexist. Decide the final public names and retire the transitional API before stabilizing v2.
Scope
- Migrate built-in canvas, HTML, combined and resource-free layers incrementally, including graph/selection/groups, creation/connection tools, cursor, React layers/portals, minimap and devtools.
- Replace duplicated context declarations, old lifecycle super requirements and ambiguous main-canvas access with the new model.
- Adapt examples and React integration so consumers can author a layer with only their own props and rendering/lifecycle hooks.
- Preserve custom block metadata/props hints and generic custom layer constructor/instance/ref inference. Do not introduce runtime validation of application-owned metadata shapes.
- Update the cumulative v1-to-v2 migration guide and layer authoring docs throughout the migration.
- Review the proposed final export transition: new model becomes Layer, old Layer is removed, and LayerNext is no longer a permanent parallel API. Confirm the exact release timing/names before the removal step.
Acceptance criteria
- Intermediate releases/PRs support mixed old/new built-ins without duplicated engines or lifecycle behavior.
- Representative custom layers require no injected dependency props or resource context assertions.
- Resource-free cursor, HTML portals, canvas drawing and combined devtools layers all demonstrate the new contract.
- Runtime checks cover interaction, rendering, updates, detach/reattach and full disposal, including temporary DOM/style cleanup.
- Source and packed fixtures preserve required prop checks, complex generic constructors and concrete React refs/methods.
- The migration guide explains each public breaking change, and final exported names are explicit and tested.
- Each migration PR is independently mergeable with build, lint, strict/native compiler checks, unit/E2E and installed package consumers green.
This is deferred follow-up work. It does not postpone or replace the existing strict-TypeScript migration tasks.
- Lenguaje dominante
- TypeScript
- Estrellas
- 145
- Forks
- 12
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 43
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de gravity-ui/graph
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
gravity-ui/graph#457 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
gravity-ui/graph#455 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
gravity-ui/graph#456 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
gravity-ui/graph#431 ·
Los mantenedores suelen responder en 1 día
-
proposal
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
gravity-ui/graph#416 ·
Los mantenedores suelen responder en 1 día
Todos los issues de gravity-ui/graph
Issues similares
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
openclaw/openclaw#199885 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
feature needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BoardGamesEmpire/board-games-empire-backend#1306 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
sequant-io/sequant#1689 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100