setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
249 stars 55 forks source link

Lock continue button until estimations are complete #93

Closed Eltord closed 1 year ago

Eltord commented 1 year ago

Do you hear that your users are forcing through the setup too quickly, perhaps clicking wrong things, or not making informed decisions on how long the configurations are going to take? How often do you hear them say "this process takes too long" only to find out they picked your most complete configuration and have no idea what you're talking about when you ask how long did the estimations take? Do you wish your users would just wait the few seconds for the estimations to appear before clicking through your input requirements? Well now you can make that happen, with the all new "Lock Continue Button" option!

If you set the "lockContinueBeforeEstimations" variable to true, the "continue" button (button1 of the dialog window, it doesn't matter what text was given for it) will be disabled when the dialog window opens up by default, and will not become enabled until after the estimations are written to the screen. This effectively forces the users to have to wait until they are able to be informed on how long the process could take.

Changes to code:

dan-snelson commented 1 year ago

@Eltord:

I can't decide which I like more about this PR, its …

(Please note that lockContinueBeforeEstimations has been set to false to preserve previous behavior.)