mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 05:13:31 +00:00
[SG-223] Mobile username generator (#2033)
* SG-223 - Changed page title and password title * SG-223 - Refactored generated field * Changed position of generated field * Replaced buttons generate and copy for icons * SG-223 - Refactor type to passwordType * SG-223 - Added password or username selector * Added string for label type selection * SG-223 - Added logic for different types of username * Added strings of new types * [SG-223] - Added UI components for different username types * Added static strings for new labels * Added viewmodel properties to support username generation and their respective options * [SG-223] Added control over type picker visibility * [SG-223] Refactored username entry on add edit page and added generate icon * Added GenerateUsername command * [SG-223] - Implemented service for username generation * [SG-223] - Added support for username generation for item creation flow * Implemented cache for username options * Added exception handling for api calls * [SG-223] - Remove unused code * [SG-223] - Added a new display field for username generated and respective command * Added description label for each type of username * Changed defautl value of username from string.Empty to - * [SG-223] - Removed some StackLayouts and refactored some controls * [SG-223] - Refactored properties name * [SG-223] - Added visibility toggle icon for api keys of forwarded email username types * [SG-223] - Refactored nested StackLayouts into grids. * [SG-223] - Refactor and pr fixing * [SG-223] - Removed string keys from Resolve - Added static string to resources * [SG-223] - Refactored Copy_Clicked as AsyncCommand - Improved exception handling - Refactored TypeSelected as GeneratorTypeSelected * [SG-223] - Renamed PasswordFormatter * [SG-223] - Refactored VM properties to use UsernameGenerationOptions * Removed LoadUsernameOptions * [SG-223] - Refactored added pickers to use SelectedItem instead SelectedIndex * Deleted PickerIndexToBoolConverter as it isn't needed anymore * [SG-223] - Refactored and simplified Grid row and column definitions * [SG-223] - Refactored Command into async command * Added exception handling and feedback to the user * [SG-223] - Refactored GeneratorType picker to use Enum GeneratorType instead of string * [SG-223] - Changed some resource keys * [SG-223] - Refactor method name * [SG-223] - Refactored code and added logs for switch default cases * [SG-223] - Added flag to control visibility when in edit mode * [SG-223] - Added suffix Parenthesis to keys to prevent future conflicts * [SG-223] - Refactored multiple methods into one, GetUsernameFromAsync * Removed unused Extensions from enums * [SG-223] - Added exception message * [SG-223] - Added localizable enum values through LocalizableEnumConverter * [SG-223] - Fixed space between controls * [SG-223] - Removed unused code and refactored some variables and methods names * [SG-223] - Removed unused code and refactored constant name to be more elucidative * [SG-223] - Removed unused variable
This commit is contained in:
146
src/App/Resources/AppResources.Designer.cs
generated
146
src/App/Resources/AppResources.Designer.cs
generated
@@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
@@ -4150,5 +4150,149 @@ namespace Bit.App.Resources {
|
||||
return ResourceManager.GetString("AreYouSureYouWantToEnableScreenCapture", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordType {
|
||||
get {
|
||||
return ResourceManager.GetString("PasswordType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string WhatWouldYouLikeToGenerate {
|
||||
get {
|
||||
return ResourceManager.GetString("WhatWouldYouLikeToGenerate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string UsernameType {
|
||||
get {
|
||||
return ResourceManager.GetString("UsernameType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PlusAddressedEmail {
|
||||
get {
|
||||
return ResourceManager.GetString("PlusAddressedEmail", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CatchAllEmail {
|
||||
get {
|
||||
return ResourceManager.GetString("CatchAllEmail", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ForwardedEmailAlias {
|
||||
get {
|
||||
return ResourceManager.GetString("ForwardedEmailAlias", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string RandomWord {
|
||||
get {
|
||||
return ResourceManager.GetString("RandomWord", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string EmailRequiredParenthesis {
|
||||
get {
|
||||
return ResourceManager.GetString("EmailRequiredParenthesis", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string DomainNameRequiredParenthesis {
|
||||
get {
|
||||
return ResourceManager.GetString("DomainNameRequiredParenthesis", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string APIKeyRequiredParenthesis {
|
||||
get {
|
||||
return ResourceManager.GetString("APIKeyRequiredParenthesis", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Service {
|
||||
get {
|
||||
return ResourceManager.GetString("Service", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string AnonAddy {
|
||||
get {
|
||||
return ResourceManager.GetString("AnonAddy", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string FirefoxRelay {
|
||||
get {
|
||||
return ResourceManager.GetString("FirefoxRelay", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SimpleLogin {
|
||||
get {
|
||||
return ResourceManager.GetString("SimpleLogin", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string APIAccessToken {
|
||||
get {
|
||||
return ResourceManager.GetString("APIAccessToken", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string AreYouSureYouWantToOverwriteTheCurrentUsername {
|
||||
get {
|
||||
return ResourceManager.GetString("AreYouSureYouWantToOverwriteTheCurrentUsername", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string GenerateUsername {
|
||||
get {
|
||||
return ResourceManager.GetString("GenerateUsername", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string EmailType {
|
||||
get {
|
||||
return ResourceManager.GetString("EmailType", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string WebsiteRequired {
|
||||
get {
|
||||
return ResourceManager.GetString("WebsiteRequired", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string UnknownXErrorMessage {
|
||||
get {
|
||||
return ResourceManager.GetString("UnknownXErrorMessage", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PlusAddressedEmailDescription {
|
||||
get {
|
||||
return ResourceManager.GetString("PlusAddressedEmailDescription", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CatchAllEmailDescription {
|
||||
get {
|
||||
return ResourceManager.GetString("CatchAllEmailDescription", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ForwardedEmailDescription {
|
||||
get {
|
||||
return ResourceManager.GetString("ForwardedEmailDescription", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Random {
|
||||
get {
|
||||
return ResourceManager.GetString("Random", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user