Closed Nancy-Salpepi closed 12 months ago
@ariel-phet, this is your call. I could see it either way. @Nancy-Salpepi's suggestion is in line with how we support PhET-iO state startup customization. I could also see it as annoying if your query parameters put particles in the hundreds.
I could see it either way.
My initial instinct was that I would want it to reset to the values specified in the query parameter, but I also can see it going either way.
If the goals are centered on larger nuclei or comparing to a particular baseline, it seems helpful to reset to the query parameter values. On the other hand, if the goal is just to quickly build a certain nucleus, it may be acceptable to clear it on reset all.
@arouinfar @Nancy-Salpepi @zepumph
My instinct would be that if someone is using a link with such query parameters, the sim should reset to the query parameters.
Implemented above. Want to test main?
I gave it a spin on main and it looks good to me!
Test device MacBook Air M1 chip
Operating System 13.5.1
Browser Safari 16.6
Problem description For https://github.com/phetsims/qa/issues/977, when using the query parameters
decayScreenNeutrons
+decayScreenProtons
(orchartIntroScreenNeutrons
+chartIntroScreenProtons
) pressing Reset All clears all of the particles rather than returning the sim to the state it was launched in.I feel like a similar case is with Natural Selection. For example, when using the
?introPopulation
query parameter the sim resets to the amount of bunnies specified in the query parameter.Steps to reproduce
?decayScreenNeutrons=30&decayScreenProtons=30