Closed pixelzoom closed 11 months ago
Also note that changes to solar-system-common
should be made with the utmost caution. We do not want to change MSS. But we have not yet generated its API file, so CT and git-hooks will not prevent you from unintentionally changing the MSS API.
EDIT: I generated the API file for MSS, and turned on checking by CT and git-hooks. So we are now protected from unintentional changes to the MSS API. But still be cautious about changes to solar-system-common
.
Published baseline versions for Kepler's Laws:
I'll be updating this comment with what should be taken out of Keplers that's currently instrumented in solar-system-common. This way @pixelzoom and I can discuss approaches when we pair:
model.numberOfActiveBodiesProperty
: This is redundant, and unnecessary in Kepler's, as there'll always be two bodies. Similarly, should we do something about model.bodies
vs model.activeBodies
? Since in Kepler they will be identical.model.isAnyBodyCollidedProperty
: Bodies don't collide in this simIn the above commits, @AgustinVallejo and I paired on addressing checklist items in https://github.com/phetsims/keplers-laws/issues/206#issuecomment-1813004936.
Since the tree has been reviewed, this can be closed.
Much of the instrumentation has been done as the result of instrumenting My Solar System in https://github.com/phetsims/my-solar-system/issues/237.
@AgustinVallejo and I discussed what remains for this sim, and the biggest tasks are:
Use
Tandem.OPT_OUT
where needed to uninstrument things that are not relevant, based on reviewing the Studio tree. For example,firstLawScreen.view.panels.secondLawPanels
is not relevant for the "First Law" screen. This will probably involved changing KeplersLawsModelOptionsisAllLaws?: boolean
to something like that indicates which screen.Use
phetioReadOnly: true
for things that were editable in MSS but should not be in KL. For example, shouldsun.massProperty be editable
? This will require reviewing the Studio tree, and discussing with Amy.Identify any remaining elements that need to be stateful - for example see https://github.com/phetsims/keplers-laws/issues/201