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

Đang mở
#48 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
0
Fork
0
Merge trung bình
3 giờ 30 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của publicusr/singularity

Tất cả issue của publicusr/singularity

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.