Only request gadget mappings when "Show reduction" is on
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, playwright
Direzione di ricerca
Leggi components/widgets/VisualizationLogic.js e components/pageblocks/VisualizeRowReact.js per seguire il recupero dei gadget e i due interruttori. Segui il modello di monitoraggio delle richieste nei test di #390, poi esegui il test Playwright pertinente. Il lavoro è completato quando i gadget non possono essere attivati senza Show reduction, disattivando Show reduction si disattivano i gadget e la richiesta dei gadget viene inviata una volta quando entrambi sono attivi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up from the review of #390 (raised by @c-hayCodes when approving).
Why
Gadgets belong to a reduction, not to a problem on its own. The request is ProblemProvider/gadgets?reduction=<chosen reduction>, and it answers "which source pieces became which target pieces". With "Show reduction" off, the target pieces (reductionToIds) aren't on screen, so what's left is a grouping of the main picture's pieces that changes with the reduction dropdown even though no reduction is shown. That is confusing, so the gadget map should go with the reduction.
What happens now
The gadget map (and the solve and reduce requests behind it) is fetched when either "Show reduction" or "Highlight gadgets" is on: wantGadgets = visualizationState.reductionOn || visualizationState.gadgetsOn in components/widgets/VisualizationLogic.js. So turning on "Highlight gadgets" by itself still sends those requests.
What to change
- In
components/widgets/VisualizationLogic.js, fetch the gadget map only when "Show reduction" is on (wantGadgets = visualizationState.reductionOn). - In
components/pageblocks/VisualizeRowReact.js, make "Highlight gadgets" depend on "Show reduction": disable the switch while "Show reduction" is off, and turn it off when "Show reduction" is turned off. - Add a Playwright test: with "Show reduction" off, turning on "Highlight gadgets" isn't possible and no
ProblemProvider/gadgetsrequest is sent. With both on, the request is sent once. #390's tests show how to watch requests.
Out of scope
Changing how the renderers highlight (they also color the hovered piece without the gadget map) is #430.
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 18
- Merge medio
- 3g 11h
- 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
-
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 già presa @Trosper3 l’ha presa 13 giorni fa. 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 7 giorni fa. Apertabug
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 70/100
I maintainer di solito rispondono entro 1 giorno
-
About Us: add an "In the News" section, starting with the Idaho State Journal BengalBot articleApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ReduxISU/Redux_GUI#337 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ReduxISU/Redux_GUI
Issue simili
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
NuSkooler/enigma-bbs#988 ·
I maintainer di solito rispondono entro 1 giorno
-
Thêm tệp .envAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
mikemccand/luceneutil#644 ·
I maintainer di solito rispondono entro 4 giorni
-
全息大脑:加一个“全部脑区常显标注”的开关Apertagood first issue 界面
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Add extension iconsApertagood first issue release user story
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100