Closed amanda-phet closed 2 years ago
@Nancy-Salpepi here is what should be tested in Studio - I don't believe the first request exists yet, so @samreid and I will have to add that next week. I'm not sure if the second one is complete, so that would be helpful to know. And hopefully the last three are good to go.
@chrisklus For 2 on the list, I don't see visibleProperty for any of the checkboxes on either screen.
The Eraser Button also needs to be instrumented.
@amanda-phet did you want individual control for the kick buttons? Currently there is only one visible property for the group: view.kickButtonGroup.visibleProperty
.
@chrisklus I don't see the get value
, set value
, copy set value code
options for Mean and Median on either screen.
If there is a way to do 1 I haven't found it yet. Let me know if I'm missing something obvious but I can't seem to find this control, either in Featured or All.
The first doesn't exist yet @KatieWoe . See https://github.com/phetsims/center-and-variability/issues/105#issuecomment-1076576977
Ahh, sorry about that. Thanks for pointing it out.
We renamed eraserButton => eraseButton more like a verb, like the reset all button. We speculated about a "resetter button" which we didn't like the sound of.
I don't see the get value, set value, copy set value code options for Mean and Median on either screen.
Those options are not available for items marked as "read only". We don't want to allow PhET-iO users to override the mean or median, since it should be derived from the model values. There are controls to change the contributing values (ball locations) within the sim.
We added the kick button visibleProperty, added a pickableProperty for the soccer ball group, instrumented all the checkboxes.
@Nancy-Salpepi @KatieWoe @amanda-phet can you please review? If all is well, please relabel for cherry-picking.
@samreid @chrisklus I have a question about the property view.topCheckboxGroup.sortDataCheckbox.enabledProperty
If I check the Sort Data checkbox, disable that checkbox and then launch the sim, the box will become unchecked once I move a card (and can't recheck it unless I press reset all). So should we be able to disable this property?
When testing view.soccerBallNodeGroup.pickableProperty
on the Mean and Median Screen, an error came up. After refreshing Master, I was not able to reproduce, but noting anyway.
@samreid @chrisklus - I don't think we use pickable property any more. I thought we used inputEnabledProperty. e.g, phScale.macroScreen.view.pHMeterNode.probeNode.inputEnabledProperty
@arouinfar - Can you comment?
I don't think we use pickable property any more. I thought we used inputEnabledProperty. e.g, phScale.macroScreen.view.pHMeterNode.probeNode.inputEnabledProperty
@arouinfar - Can you comment?
We deprecated pickableProperty
in favor of inputEnabledProperty
in https://github.com/phetsims/scenery/issues/1158. While I am fairly certain that "pickable" is still a thing found in the code, it's not something we should be exposing in the Studio tree. If a Node needs to be uninteractive without appearing to be disabled, it should have an inputEnabledProperty
.
maybe there should be an assertion if pickableProperty is in a phet-io name or something?
@samreid @chrisklus I have a question about the property view.topCheckboxGroup.sortDataCheckbox.enabledProperty
If I check the Sort Data checkbox, disable that checkbox and then launch the sim, the box will become unchecked once I move a card (and can't recheck it unless I press reset all). So should we be able to disable this property?
@chrisklus and I reproduced this behavior, and discussed it. It seems plausible that a client may want the checkbox to serve as a readout of whether the data is sorted, so disabling it may be reasonable in that case.
@chrisklus and I switched to use inputEnabledProperty instead of pickableProperty and opened a new issue about forbidding that tandem name in general. We weren't able to reproduce the problem described in https://github.com/phetsims/center-and-variability/issues/105#issuecomment-1082346338, so this issue is ready for review. @amanda-phet can you please review and mark for cherry-picking if it seems good?
I confirmed the following locations for achieving what I listed:
centerAndVariability.medianScreen.view.soccerBallNodeGroup.inputEnabledProperty
centerAndVariability.medianScreen.view.topCheckboxGroup.sortDataCheckbox.visibleProperty
centerAndVariability.medianScreen.view.topCheckboxGroup.medianCheckbox.visibleProperty
centerAndVariability.medianScreen.view.bottomCheckboxGroup.predictMedianCheckbox.visibleProperty
centerAndVariability.meanAndMedianScreen.view.resetAllButton.visibleProperty
centerAndVariability.medianScreen.view.eraseButton.visibleProperty
centerAndVariability.medianScreen.view.kickButtonGroup.kickFiveButton.visibleProperty
centerAndVariability.medianScreen.view.kickButtonGroup.kickOneButton.visibleProperty
centerAndVariability.medianScreen.view.bottomCheckboxGroup.medianCheckbox
centerAndVariability.medianScreen.model.medianPredictionProperty
centerAndVariability.medianScreen.model.meanValueProperty
centerAndVariability.medianScreen.model.medianValueProperty
And likewise on the Mean & Median screen:
centerAndVariability.meanAndMedianScreen.view.resetAllButton.visibleProperty
centerAndVariability.meanAndMedianScreen.view.eraseButton.visibleProperty
centerAndVariability.meanAndMedianScreen.view.kickButtonGroup.kickOneButton.visibleProperty
centerAndVariability.meanAndMedianScreen.view.kickButtonGroup.kickFiveButton.visibleProperty
centerAndVariability.meanAndMedianScreen.model.medianPredictionProperty
centerAndVariability.meanAndMedianScreen.model.meanPredictionProperty
centerAndVariability.meanAndMedianScreen.model.meanValueProperty
centerAndVariability.meanAndMedianScreen.model.medianValueProperty
I didn't list every single ID, just the ones I want to reference later. Ready for cherry-picking!
@samreid and I spot-checked this for https://github.com/phetsims/center-and-variability/issues/122, closing.
I believe some of these can already be checked, but leaving the complete list here so QA can test this when all of these capabilities are ready.