Open samreid opened 2 years ago
Mentioning @zepumph since he has worked in this area too.
Yes, that would be great. I didn't realize this was something that could be handled in common code since every UI component has a sim-specific property powering it.
I forgot that LinkedElement takes on the phetioFeatured
value of the target element. Should we add an assertion that anything that gets added in a LinkedElement should be phetioFeatured: true
? I'm not sure what else to do here (if we keep the constraint mentioned in the 1st sentence).
Should we add an assertion that anything that gets added in a LinkedElement should be phetioFeatured: true
Yes, I think so.
I added a console.log to find all the un-featured core elements for linked elements. I ran the report on all phet-io-api-stable sims and got this result:
It looks like grunt generate-phet-io-api
has not been run for all sims. I made unrelated changes to natural-selection this morning, and phetioFeatured: true
was added for a larger number of elements (all *StringProperty
?) under general.string.joist.a11Y
. This was unexpected and confusing.
The a11Y
(capital 'Y') in general.string.joist.a11Y
was also an unexpected diversion, see https://github.com/phetsims/chipper/issues/1311.
has not been run for all sims
Yes! Agreed. Consistently it has been out of date for the last 2 weeks. The phetioFeatured was added in https://github.com/phetsims/chipper/commit/d2b106e08c42c805e082570609352aab5f39aefc for https://github.com/phetsims/axon/issues/408. The API files were just updated and committed in https://github.com/phetsims/phet-io-sim-specific/commit/1cc3810e5ce330135db6d9c77b7ec95091fe1cab to https://github.com/phetsims/chipper/issues/1311
In https://github.com/phetsims/density-buoyancy-common/issues/74 @marlitas and I discovered that CheckBox linked element
property
is not phet-io featured. Is that by design? Should it be changed tophetioFeatured: true
?