-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
638 Feature Request: password generator with options #664
638 Feature Request: password generator with options #664
Conversation
The actual options don't quite work yet.
Why is this menu still wrong...
638 - Another...
Hello, To give you some initial feedback and answer your questions:
|
...impl/DevToys/ViewModels/Tools/Generators/PasswordGenerator/PasswordGeneratorToolViewModel.cs
Outdated
Show resolved
Hide resolved
/// <summary> | ||
/// Whether the password should include numbers. | ||
/// </summary> | ||
private static readonly SettingDefinition<bool> Numbers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I originally meant to add the numbers, but then realize the feature request didn't have anything about whether or not to include an option of include/exclude numbers. Would we like to do so? Or should we omit them from the options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, currently we have the possibility to generate password without:
- lowercase letters
- uppercase letters
- symbols
If we also remove numbers... well there's not much to generate then 😅
But I do see the value for generating a password without numbers too.
In term of UX, I'm quite undecided at the moment, but in short, assuming we have 4 options
- lowercase letters
- uppercase letters
- symbols
- numbers
we should enforce at least 1 option, or display a message asking the user to enable at least 1 option in order to generate a password.
These options could be displayed as:
- Toggle check box (like today)
- List with multiple selection
- List of check box
- else? (I can't think of anything else)
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be very easy to display a message in the output text if no options are selected. The other options would require more work, but also would be acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we give a try at the displaying a message?
Perhaps you can use an InfoBar
like here: https://github.com/veler/DevToys/blob/2e99e04d6f363a5bddf044afc5545266be43246c/src/dev/impl/DevToys/Views/Tools/Text/RegEx/RegExToolPage.xaml#L118-L123 But display a Warning
or Information
instead of Error
?
Another option I see (but it might be more complex too) is that when it remains only 1 option checked, we disable the checked option (the option will be checked but user won't be able to uncheck it) until another option is checked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look at this. It just may be awhile since I've gotten a bit busy.
...impl/DevToys/ViewModels/Tools/Generators/PasswordGenerator/PasswordGeneratorToolViewModel.cs
Outdated
Show resolved
Hide resolved
<ex:IsCompactOverlayModeTrigger TargetElement="{x:Bind}" /> | ||
</VisualState.StateTriggers> | ||
<VisualState.Setters> | ||
<Setter Target="LengthSetting.Visibility" Value="Collapsed" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, but it doesn't hide the Configuration
text.
I'd suggest to give a name to the StackPanel on line 42 and collapse the whole StackPanel on line 21 (and remove lines 22 to 24).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I made the modification desired here.
I'll have to see if I can find another computer. FontForge is not liked by my machine it seems. I'll work to get it on another and see if I can follow the setup to generate a |
FYI, I'm still working this, just went out on parental leave last week, so it will take a bit longer than expected. |
@Christian-Oleson no worries :) I can address the remaining feedback myself if you'd like too. |
Might be good to extend further later on, perhaps with inspiration by https://randomkeygen.com/ (on GitHub at https://github.com/circlecell/randomkeygen.com, MIT licensed). |
Thank you! It may be best to have you finish. I'm still out and a bit busy, so it may be best to get this released instead of having folks wait on me eventually completing this on my end. |
Closing this PR as the tool got completed into #873 . Thank you @Christian-Oleson and @micahmo for this contribution! :) |
Pull request type
Feature Request
Please check the type of change your PR introduces:
What is the current behavior?
N/a
Issue Number: 638
What is the new behavior?
A new password generator feature has been made. You can select
Other information
Quality check
Before creating this PR, have you: