Overhaul the keyword editor modal lifecycle

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

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

@amotl đang làm issue này rồi.

Từ ngày 6/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Summary

Overhaul the keyword editor modal for the Bootstrap 4 UI. Review how KeywordEditorView and ModalRegion manage the modal and its backdrop. Use a single, consistent modal lifecycle that does not leave the shared modal area open after the editor closes.

Context

The PR review identified overlapping modal ownership and a possible double-backdrop problem. A proposed patch did not resolve the problem: the requester reported that the modal did not become visible and appeared to get stuck while presenting the backdrop. Investigate the cause rather than relying on that patch.

Affected areas include patzilla-ui/navigator/components/keywords/keywords.js, the keyword editor template, and the shared modal region in patzilla-ui/lib/marionette.js.

Acceptance criteria

  • The keyword editor opens visibly and can be reopened after it closes.
  • Save persists keyword changes, closes the editor, and reapplies highlighting.
  • Close and Escape dismiss the editor without leaving an extra backdrop, an open #modal-area, or body.modal-open behind.
  • Other dialogs that share #modal-area still open and close correctly before and after the keyword editor.
  • Verify these flows in a browser, including an immediate Save after opening.

Requested by @amotl.

PR: https://github.com/ip-tools/patzilla/pull/187
Review thread: https://github.com/ip-tools/patzilla/pull/187#discussion_r4488811889

Ngôn ngữ chính
Python
Star
123
Fork
31
Merge trung bình
4 giờ 1 phút
Pull request đã merge (30 ngày)
74

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 ip-tools/patzilla

Tất cả issue của ip-tools/patzilla

Issue tương tự

Thêm issue về Python

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.