Closed pixelzoom closed 1 year ago
VerticalCheckboxGroupItem and AquaRadioButtonGroupItem are currently the only places where GroupItemOptions is used.
There are 12 occurrences of import VerticalCheckboxGroup
, 14 occurrences of import AquaRadioButtonGroup
.
I'm going to remove the legacy way and port all sims to use the new way.
After changes in https://github.com/phetsims/sun/issues/794, you can no longer specify node/tandem to AquaRadioButtonGroup and VerticalCheckboxGroup. Instead, please use createNode
and tandemName
.
I've left a few ts-ignore TODOs in the code for this issue, for after a few CT cycles.
Slack#continuous-testing:
Kathryn Woessner A number of sims are failing with an error that contains e.createNode is not a function. Any ideas?
Sam Reid That’s me, I’ll take a look, thanks
My earlier test unfortunately only ran aqua for the PhET-iO Sims. I reran aqua for all sims and things are looking much better now. Thank you for bringing this to my attention. I will continue to watch CT over the next few columns in case things were missed by fuzzing here.
This seems fixed, closing.
GroupItemOptions is used to specify the "items" in various "groups" -- AquaRadioButtonGroup, VerticalCheckboxGroup, etc.
It currently supports 2 mutually-exclusive ways of specifying options:
Supporting both complicates code, and can result in problems (e.g. https://github.com/phetsims/sun/issues/793#event-7472017982). So we'd eventually like to deprecate and remove support for "the legacy way".