-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument Keypad.js for PhET-iO #540
Comments
From first design meeting, the notes were to have the most minimal instrumentation to support record/payback and data stream from user inputs. It also seemed valuable to be able to get the value out of the keypad. @samreid will you please review the current instrumentation. A great way to do that is in Projectile Motion studio. The lab screen -> custom options in the combobox -> press a yellow "edit" button to pop up the keybad. |
Scenery input event recording does not require UI components to be instrumented, right? |
Sorry, I edited that above. |
Thanks! What's the timeline for this sim? Should this review be bundled with other review? |
Same timeline for Gravity and Orbits I believe, asap for the phet-io developer as it can be balanced with dynamic state. |
Things look pretty good. A few questions. I was surprised to see the "enterButton" was a sibling of the "keypad"--should they be more closely related, sharing a nearer parent or something? Also, do you like dynamically creating the tandem names like |
I think this is fine to me, as
So would you rather have a field in
That feels like an improvement to me. I'll implement.
Strings feels right to me here. It makes it more general for things like the backspace or |
Not feeling 100% great about any of the proposals (including the one below), but the one I had in mind was |
From phetsims/projectile-motion#177 design meeting, here are two more items:
@samreid's item:
|
@samreid, I understand your concern, and know that up until this point, we have refactored to make this pattern consistent. I think the main reason I am uninterested in it here is for two reasons.
|
@kathy-phet and I reviewed this as a part of phetsims/projectile-motion#244. We don't think clients need to customize the keypad, and things could get pretty weird if they start removing individual buttons or messing with enabledProperties. The model should be the only thing controlling whether or not the keypad is visible/enabled, so everything should be read only. Similarly, nothing needs to be phetioFeatured. There are lots of buttons which by default have their State is not currently being saved correctly. In Projectile Motion > Lab Screen > Custom, open a keypad and type in a value. Launch the sim, and the range string (e.g. |
This will most likely block Projectile Motion publication, which we may get to in a couple of months. |
This seems like a good contender for @matthew-blackman and I this iteration since it relates to Projectile Motion. Tagging it as such. |
104bad5 broke collision-lab by call |
This is needed for phetsims/projectile-motion#177. I'll take a first pass at this, but I think it will want some PhET-iO design time too.
Design Questions:
The text was updated successfully, but these errors were encountered: