Dragging swaps Widgets on a fixed floor plan (D87, ADR 0005)

Aperta
#40 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
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
frontend

Direzione di ricerca

Read D87 in docs/DESIGN-TREE.md, ADR 0005 and the terms in GLOSSARY.md before touching code, then the current drag/drop handling for title drags, edge drop zones and the dwell rule that this ticket removes. The new Arrangement module owns the floor plan and the swap/fill edits; #31's path replayer must be retargeted so it asserts the invariants in the acceptance criteria on every path. Done means those properties hold and run-hidden tools/check.sh is green, with the pty checked by hand for the highlight and chip.

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

Descrizione

enhancement ready-for-agent

Parent

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

What to build

Introduce Arrangement: one module holding the floor plan, which Widget is in which Pane (and, in the next ticket, the Tray). A title drag now only moves contents: drop on another Pane and the two Widgets swap; drop on an empty Pane and it fills it. While dragging, nothing moves except a highlight on the Pane under the pointer (shown at once, saying "swap with queue" or "put here") and a small chip with the Widget's name next to the pointer. Release drops on the Pane under the pointer; releasing on its own Pane or Esc cancels.

Removed: edge and screen-edge drop zones, live reflow, the dwell rule, the full-size floating Pane and the reflow motion. Divider dragging and #31's fixes (unheard releases, right click ignored mid-drag, dividers clamped to the furthest fit) stay.

Acceptance criteria

  • Arrangement's edits (swap, fill an empty Pane, move a line, replace a Widget) keep the floor plan valid and each Widget at most once, and say why when an edit can't happen
  • A title drag swaps or fills; the floor plan never changes during or because of a drag
  • The highlight follows the pointer with no dwell; the chip (Widget's name, about one row, ≤ 20 columns) follows the pointer
  • Every drop is allowed, including into a Pane below the Widget's smallest size
  • The old zones, live reflow, dwell and floating Pane code is deleted
  • #31's path replayer is retargeted: on every path the floor plan stays valid, the drop lands on the Pane highlighted at release, nothing stays held, nothing but highlight and chip changes during a drag
  • Property test of random Arrangement edit sequences over every Design and many sizes
  • Undo/redo, the naming prompt on a built-in's first edit and Reset design keep working
  • run-hidden tools/check.sh green; user-visible changes checked in the pty before closing

Blocked by

  • #35

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

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.