Panes get their own identity (D87 prefactor)

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

Los mantenedores suelen responder en 1 día

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
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
tooling

Línea de trabajo

Read D87 in docs/DESIGN-TREE.md plus ADR 0005 and the terms in GLOSSARY.md before touching code, then grep the floor plan, focus and hit-box modules for the shared string used for both Pane and Widget. Introduce the distinct types there and follow the compiler through focus queries and the per-Widget state maps, then through the save/load path so old Design files still load and the new format round-trips. Done means run-hidden tools/check.sh is green and the pty scenarios pass with only the type names changed.

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

Descripción

enhancement ready-for-agent

Parent

#34 (spec), D87 in docs/DESIGN-TREE.md, ADR 0005, terms in GLOSSARY.md.

What to build

Today a Pane is its Widget's name: the floor plan's leaves, focus, hit boxes, Design titles and checks like "is Home focused?" all use one string for both. Empty Panes and the Tray (later tickets) can't be expressed that way. Give Panes a stable identity of their own, holding a Widget or nothing, and make Pane and Widget two distinct types the compiler keeps apart (no bare strings for either).

Nothing the user sees changes in this ticket.

Acceptance criteria

  • Pane and Widget are distinct types; no call site uses a bare string for either
  • Focus is a Pane; questions about what's focused ask the focused Pane's Widget
  • Per-Widget state (scroll, Visual settings) stays keyed by Widget, so it follows a Widget that moves
  • A Pane can hold no Widget (an empty Pane is representable, saved and loaded), even though nothing creates one yet
  • Every existing saved Design file loads to the same screen as before (test over the old format); the new format is written on the next save and round-trips
  • The existing suite and pty scenarios pass unchanged apart from naming the new types
  • run-hidden tools/check.sh green; user-visible changes checked in the pty before closing

Blocked by

None (can start immediately).

The owner tests the app once, after all D87 tickets are done (not between tickets).

Lenguaje dominante
Rust
Estrellas
0
Forks
0
Merge medio
3 h 30 min
PR fusionados (30 d)
25

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 publicusr/singularity

Todos los issues de publicusr/singularity

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.