Gadget highlighting should come only from the gadget map
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Start with components/Visualization/svgs/StandardGraphSvgReact.js and StandardSATSvgReact.js, then trace the ProblemProvider/gadgets response for each reduction offered by the GUI. Confirm which gadget maps cover the pieces highlighted today before changing renderer behavior; gaps belong in the backend reductions. Done means gadget highlighting uses only the map, reports loading, failure, or empty states, clears exactly its own highlights, and any plain hover highlighting has a separate option.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up from #429 and the review of #390.
The problem
With "Highlight gadgets" on, hovering a piece colors it in two layers (components/Visualization/svgs/StandardGraphSvgReact.js, StandardSATSvgReact.js):
- Without the gadget map: the hovered piece (
#id…) and everything sharing its class (.class…) are colored before the renderer looks at the gadget map at all. - From the gadget map: every other id in a gadget that contains the hovered piece.
Layer 1 is the renderer's guess, not something the reduction reported. So when the gadgets request is blocked, fails or hasn't arrived, the switch still highlights things and looks like it works (seen in the #390 review with the endpoint blocked). And when the map is there, the highlight mixes the guess with the reduction's real answer.
There is also a clean-up bug from the same order: in StandardGraphSvgReact.js, clearClusters returns early when the map is empty, but highlightCluster already colored the .class… group, so those highlights should stay on after the mouse leaves when there is no map. (Not yet reproduced; read from the code.)
Proposal
- Gadget highlighting comes only from the gadget map: the hovered piece and its gadget partners, nothing else.
- If the map is loading, failed or empty, there is no gadget highlighting, and the user is told why instead of it failing silently (for example "Gadgets unavailable: …" using the failure text #390 added).
- Clearing undoes exactly what was highlighted.
- If plain "highlight what I hover" is still wanted without a reduction, it becomes its own option with its own name, not part of "Highlight gadgets".
Check first
Some reductions' gadget maps may not cover what Layer 1 covers today (for example a clause's literals). Before changing the renderers, check what ProblemProvider/gadgets returns for each reduction the GUI offers, so map-only highlighting doesn't make highlighting disappear for those reductions. Gaps go to the backend reductions.
Related: #429 (fetch the gadget map only when "Show reduction" is on).
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 18
- Merge medio
- 1g 15h
- PR unite (30g)
- 27
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
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 ReduxISU/Redux_GUI
-
Add GitHub and YouTube icons to the site footerForse di nuovo libera @sushantshetty09 l’ha presa 15 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
ReduxISU/Redux_GUI#448 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ReduxISU/Redux_GUI#429 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Make it clear the visualization shows the problem and the selected solverForse di nuovo libera @Trosper3 l’ha presa 38 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ReduxISU/Redux_GUI#391 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Main page problem search shows no "Add new problem" button when nothing matchesForse già presa @ShahadatTest l’ha presa 32 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ReduxISU/Redux_GUI
Issue simili
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/clickhouse-js#1293 ·
I maintainer di solito rispondono entro 1 giorno
-
area: tests help wanted size/s
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
DahanItamar/DockNest#368 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100