Gravity well: letterbox its picture, never reshape the columns (D87)

Abierto
#48 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
frontend

Línea de trabajo

Start by reading ADR 0005, #34/#36/#40, and the layout/floor-plan code that applies the 4:3 shaped nudge and feeds the well's extra minimum rows into validity. The target is #45's ignored test 'a Replace or swap never changes any Pane's rect' in the Arrangement property test; un-ignore it and make it pass. Then check the pty designs output and contact-sheet Design shots at PC/laptop sizes, and run run-hidden tools/check.sh.

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

Descripción

enhancement ready-for-agent

Parent

#34 (spec), D87, ADR 0005. Split out of #36 (its criterion "the black hole's shape rule is expressed as its smallest size" was left for this ticket).

What to build

Moving or replacing the gravity well (or the black hole) must never change another Pane's outline. Today the layout gives a too-wide well's spare width to the nearest side-by-side split (the 4:3 "shaped" nudge), and the well's extra minimum rows feed into the floor plan's validity, so a swap, a Replace or a drop of the well reshapes the columns. Instead, the well draws its 4:3 picture letterboxed inside its own Pane, and below its smallest size (already declared by #36) it shows needs W × H like every other Widget. The built-in Designs must look the same at the usual sizes: bake today's shaped widths into their stored ratios.

Acceptance criteria

  • The shaped nudge is gone; the well and the hole letterbox their picture inside their own Pane
  • The floor plan's validity and minimum lengths no longer depend on which Widget a Pane holds (check what #40 already changed)
  • #45's ignored test "a Replace or swap never changes any Pane's rect" is un-ignored and passes; the Arrangement property test covers the well
  • The built-in Designs' pty designs and the contact sheet's Design shots at the PC's and the laptop sizes look the same as before (well width included)
  • run-hidden tools/check.sh green; pty checked

Blocked by

  • #47's ticket #36 and #46's ticket #40 (both touch the same layout rules)

The owner tests the app once, after all D87 tickets are done.

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.