phetsims / states-of-matter

"States of Matter" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
7 stars 8 forks source link

Use `defaultTemperatureUnits` instead of `defaultCelsius` and add control to the Options dialog #361

Open arouinfar opened 2 years ago

arouinfar commented 2 years ago

In https://github.com/phetsims/states-of-matter/issues/216 we created the defaultCelsius query parameter to set the default temperature units to Celsius. This query parameter has never been shared with users in the Teacher Tips or with PhET-iO clients in phet-io-guide.md.

In greenhouse-effect we created a similar query parameter defaultTemperatureUnits that takes values of F, C, and K, see https://github.com/phetsims/greenhouse-effect/issues/186. This approach is preferable because we now have validation of query parameter values. This pattern also translates better into a user-facing control in the Options Dialog.

Next time this simulation is published off of master let's make these changes @jbphet:

This applies to both SOM and SOMB.

jbphet commented 2 years ago

Sound reasonable. This sim, I believe, is slated to have its phet-io implementation updated to the latest and greatest reasonably soon. I'm going to defer this particular issue now, and when the sim is getting some focus for the phet-io update, we can undefer and implement.