Overhaul the keyword editor modal lifecycle

Aperta
#189 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@amotl ci sta già lavorando.

Dal 6/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Python
Stelle
123
Fork
31
Merge medio
4h 1m
PR unite (30g)
74

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

Tutte le issue di ip-tools/patzilla

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.