Closed KatieWoe closed 1 year ago
Good discovery, thanks! I reproduced the same problem in CCK DC 1.3. @arouinfar can you please test and characterize the importance of investigation/maintenance release for this?
The problem is that this code:
const clickToDismissListener = new DisplayClickToDismissListener( dismissListener );
phet.joist.display.addInputListener( clickToDismissListener );
In VertexNode and CircuitElementNode only runs if the user clicked, not if the selection property was set programmatically (like via phet-io). So the solution would probably be finding a way to move that code out of the click listeners and making it more based on the model property like isSelected. Would we also move it outside of CircuitElement and Vertex -- more to the CircuitNode or ScreenView level, so there is only one of them?
I'm surprised this patch is working in my tests--probably need to review carefully and look for corner cases. Dealing with disposal. A code comment in VertexNode
I feel a good next step would be design and code review/testing (probably in a mini-meeting). Once approved, we can cherry-pick this into DC and VL.
I applied the patch and poked through it. The patch makes sense, but too much seemlingly important stuff was commented out. So it feels like pairing-to-proceed (ptp) is the best path forward on my end. Let me know if you want to schedule something.
An MR will look something like this:
(turn off transpiler)
node js/scripts/master-pull-status.js --allBranches
Maintenance.reset();
Maintenance.checkBranchStatus();
Maintenance.reset();
Maintenance.createPatch( 'circuit-construction-kit-common', 'https://github.com/phetsims/circuit-construction-kit-common/issues/988' );
Maintenance.addNeededPatch( 'circuit-construction-kit-dc', '1.3', 'circuit-construction-kit-common' );
Maintenance.addNeededPatch( 'circuit-construction-kit-dc-virtual-lab', '1.3', 'circuit-construction-kit-common' );
Maintenance.addPatchSHA( 'circuit-construction-kit-common', 'c9d6d8ddd2b54e72cb9025360f84db82fdad76f0' );
Maintenance.applyPatches();
Maintenance.updateDependencies();
@arouinfar will verify on master, and then we will continue on with the patching above.
Maintenance.deployReleaseCandidates()
(will do both), or kick off each separately, depending on what is best. Maintenance.deployProduction()
(will just deploy dc, not virtual lab because it isn't released yet).grunt production
in virtual lab to finally publish it when ready.Looks good in master, back to you @samreid.
In running the node js/scripts/master-pull-status.js --allBranches
, we see:
scenery-phet ERROR: Error: git pull --rebase in ../scenery-phet failed with exit code 1
stderr:
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> gravity-and-orbits-1.6
-----=====] finished pulls [=====-----
-----=====] finished npm [=====-----
So we will adjust the script to set the tracking information if pull fails.
Maintenance.deployReleaseCandidates() (will do both), or kick off each separately, depending on what is best.
This step looks like it only ran for DC, not for VL.
Deployed: https://phet-dev.colorado.edu/html/circuit-construction-kit-dc/1.3.2-rc.1/phet/circuit-construction-kit-dc_en_phet.html Deployed: https://phet-dev.colorado.edu/html/circuit-construction-kit-dc/1.3.2-rc.1/phet-io/ Please wait for the build-server to complete the deployment, and then test! RC versions deployed
...
Deployed: https://phet-dev.colorado.edu/html/circuit-construction-kit-dc-virtual-lab/1.3.0-rc.2/phet/circuit-construction-kit-dc-virtual-lab_en_phet.html Deployed: https://phet-dev.colorado.edu/html/circuit-construction-kit-dc-virtual-lab/1.3.0-rc.2/phet-io/ Please wait for the build-server to complete the deployment, and then test!
Looks good for both DC and VL
Device Samsung OS Win 11 Browser Chrome Problem Description For https://github.com/phetsims/qa/issues/919 If you launch a sim while an element is highlighted, if you click outside it in the play area in the newly launched sim it does not unhighlight. You need to first click either that element or another. Steps to Reproduce