Extend Column mode removes annotation click listeners permanently
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia da interfaces/manage-columns/index.js e confronta i relativi registri di pulizia con components/create-column/index.js, concentrandoti su extendColumn(), mergeColumns(), renderAnnotations() e disconnectedCallback(). Verifica la modifica riproducendo i toggle Extend Column e Merge Column: i riquadri dell'overlay delle annotazioni dovrebbero rimanere cliccabili in queste modalità e dopo essere usciti da esse.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
On the Manage Columns page, entering Extend Column mode (checking the checkbox) permanently removes all annotation overlay box click listeners. Users cannot select any lines on the image — not during Extend mode, and not after unchecking it.
This also affects Merge Column mode for the same reason, though merge mode doesn't require clicking annotations so it's less visible there.
Steps to Reproduce
- Navigate to a project's Manage Columns page with annotation lines visible
- Verify you can click annotation overlay boxes (they highlight and show selection numbers)
- Check the Extend Column checkbox
- Try to click annotation overlay boxes — they no longer respond to clicks
- Uncheck the Extend Column checkbox
- Try to click annotation overlay boxes again — still no response
Expected Behavior
- Annotation overlay boxes should remain clickable in Extend mode (users need to select annotations to add to a column)
- After exiting Extend/Merge mode, annotation click behavior should be fully restored
Root Cause
PR #499 consolidated the old workspaceCleanup registry (for workspace buttons) into renderCleanup (which also manages annotation box listeners). When extendColumn() or mergeColumns() calls this.renderCleanup.run() to clear workspace buttons, it also removes all annotation box click listeners registered by renderAnnotations().
The old components/create-column/index.js used three separate registries to avoid this:
cleanup— persistent listeners (window, document, eventDispatcher)renderCleanup— annotation overlay box listenersworkspaceCleanup— workspace button listeners
The refactored interfaces/manage-columns/index.js only uses two (cleanup and renderCleanup), mixing annotation and workspace concerns.
Relevant code (interfaces/manage-columns/index.js):
extendColumn() {
this.renderCleanup.run() // ← Removes ALL renderCleanup listeners, including annotation boxes
// ... creates workspace buttons also via this.renderCleanup
}
Suggested Fix
Reintroduce workspaceCleanup as a separate CleanupRegistry for workspace-specific listeners:
- Add
workspaceCleanup = new CleanupRegistry()class field - In
extendColumn()andmergeColumns(), replacethis.renderCleanup.run()withthis.workspaceCleanup.run() - Register workspace buttons on
this.workspaceCleanupinstead ofthis.renderCleanup - Add
this.workspaceCleanup.run()todisconnectedCallback()
Context
- Branch:
346-column-refresh-refactor - PR: #499
- Introduced by: Consolidation of
workspaceCleanupintorenderCleanupduring refactor - Confirmed by: Manual testing — lines are unselectable after toggling extend mode
- Lingua principale
- JavaScript
- Stelle
- 2
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CenterForDigitalHumanities/TPEN-interfaces
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
License link borkedAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
Tutte le issue di CenterForDigitalHumanities/TPEN-interfaces
Issue simili
-
Plaid sync fails and rolls back when a removed pending transaction was matched by a bank ruleAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bigcapitalhq/bigcapital#1544 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
meshery/meshery.io#3112 ·
I maintainer di solito rispondono entro 2 giorni
-
area:docs type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
bulkhead-labs/tailsuite#31 ·
-
dependencies javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
gems-uff/noworkflow#470 ·
I maintainer di solito rispondono entro 3 giorni
-
product / auth product / console product / sites product / storage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno