Gadget highlighting should come only from the gadget map
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- JavaScript
- Estrellas
- 3
- Forks
- 18
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 27
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ReduxISU/Redux_GUI
-
Add GitHub and YouTube icons to the site footerQuizá libre de nuevo @sushantshetty09 la tomó hace 15 días y no hay ningún pull request abierto. Abiertoenhancement good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
ReduxISU/Redux_GUI#448 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ReduxISU/Redux_GUI#429 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Make it clear the visualization shows the problem and the selected solverQuizá libre de nuevo @Trosper3 la tomó hace 38 días y no hay ningún pull request abierto. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
ReduxISU/Redux_GUI#391 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Main page problem search shows no "Add new problem" button when nothing matchesPosiblemente ocupada @ShahadatTest la tomó hace 32 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de ReduxISU/Redux_GUI
Issues similares
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/clickhouse-js#1293 ·
Los mantenedores suelen responder en 1 día
-
area: tests help wanted size/s
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
DahanItamar/DockNest#368 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100