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

Aperta
#48 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
3h 30m
PR unite (30g)
25

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di publicusr/singularity

Tutte le issue di publicusr/singularity

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.