Setup-Your-Mac
Setup-Your-Mac copied to clipboard
Checkbox for multiple optional policies
Note: While all requests are welcome, finding available cycles to custom-code a feature we won't use in our production environment is always challenging.
Is your feature request related to a problem? Please describe. A clear, concise description of the problem. (i.e., I'm frustrated when ...) No
Describe the solution you'd like A clear, concise description of what you want to happen. Would like to give the user the option to enable or disable an optional policy. For example, we currently utilize two different configurations, one with and one without Office. In this feature request I would like to be able to have a checkbox with Office checked and the user have the option to uncheck it if desired, as well as enable other options as desired (if we find more we'd like to use)
Describe alternatives you've considered A clear, concise description of any alternative solutions or features you've considered. Stick to using current solutions that are built in
Additional context Add any other context or screenshots about the feature request here.
Can you clarify if your request is for changing the dropdown that you pick your configuration from into a checkbox or if it's something closer to the example on the swiftDialog 2.2 announcement?
The former I think was added in 1.11.0, but the latter would probably require a rewrite of how the policyJSON is generated. It'd probably need an extra page added as well depending on how many options you'd be giving the user.
The example is more in line of what I was envisioning when I thought, but if using more than one or two of these, then the original drop down configuration would make more sense. This would just be more for a simplified scope if you had two options where the difference would be say a single policy difference.
My use case is as follows:
We have a lot of apps that people may choose to install from personal preference, we enforce the patch levels of these apps so we would like to offer a subset of them as 'optional apps' in SYM. Apps such as VS code for developers, ITerm2, Some might prefer Firefox over Chrome or Brave etc, or even Monday.com. Things that we do not force on the base install app list as they may not get used but they're nice to haves for anyone looking to expedite their onboarding to not have to go and install these apps themselves.
Rather than forcing these apps through having multiple multiple configurations specifically tailored to each department, I personally think having this might offer a better and more tailored/personal experience to the end user.
Similar to my initial request here https://github.com/dan-snelson/dialog-scripts/issues/37
Ideally I'd like to see something similar to the following mockup
A bit of the technical side as posted in Slack; My idea is to firstly only have this enabled via a feature flag at the top of the script, if set to false continue as normal.. If set to true, display button 3 to prompt the user into the optional apps pane. From there, have a JSON similar to the policyJSON already in SYM that populates things such as Icon, App Name, Description, Trigger & Validation. Any App selected will be stored with their Json attributes that we parse and work through to install the apps with a progress bar.
To Do: Review @ooftee's dialog-starterkit for possible concurrent execution.
Reviewed on 2024-06-07-052441; un-assigned myself; help wanted