Pane menu and Widget picker: Replace widget… (D87)

Đang mở
#37 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

The work spans the Pane menu, the mouse and key handling for Pane titles and bodies, and a new Widget picker Popup, all of which depend on the design in docs/DESIGN-TREE.md (D87), ADR 0005 and GLOSSARY.md, referenced from the issue. Read those documents first, then the existing Popup variants and the CLAUDE.md popup rules. Done means the picker filters, swaps or replaces Widgets as specified, and tests drive it through the App with real clicks and keys, with tools/check.sh green.

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 in docs/DESIGN-TREE.md, ADR 0005, terms in GLOSSARY.md.

What to build

A quick way to swap a Pane's Widget for any other. A right-click on a Pane's title (or its body, where the body has no menu of its own) opens the Pane's menu with Replace widget… first. The Widget picker is a palette-style list: type to filter, scroll with the wheel and arrows. Widgets not on screen come first; Widgets already on screen are dimmed below a line, and picking one swaps the two Panes' Widgets. The replaced Widget just leaves the screen. Each Widget at most once on screen.

Acceptance criteria

  • Right-click on a Pane's title opens its menu: Replace widget…, then Close (and room for Split and Arrange from later tickets)
  • Right-click on a Pane's body opens the same menu, except where the body has its own menu (song rows, Cards, the queue keep theirs)
  • Clicking the Widget's name in the title, a key on the focused Pane (free of clashes), and the palette's Replace widget… also open the picker
  • The picker filters as you type and scrolls like other lists; not-on-screen Widgets first, on-screen ones dimmed below a line
  • Picking an on-screen Widget swaps it with this Pane's Widget; picking another replaces this Pane's Widget
  • Home's Pane has no Replace widget
  • The menu and picker are Popup variants (CLAUDE.md popup rules: drawn on top, Esc closes, wheel scrolls)
  • Tests through the App with real clicks and keys; pty shot of the menu and picker
  • 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).

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.