bitwarden-mobile/src/App/Pages/Accounts/HomePage.xaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

146 lines
6.5 KiB
Plaintext
Raw Normal View History

2019-03-28 22:10:10 +01:00
<?xml version="1.0" encoding="utf-8" ?>
2019-05-07 05:30:54 +02:00
<pages:BaseContentPage
2019-03-28 22:10:10 +01:00
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.HomePage"
2019-03-29 04:52:33 +01:00
xmlns:pages="clr-namespace:Bit.App.Pages"
2019-05-02 18:20:56 +02:00
xmlns:controls="clr-namespace:Bit.App.Controls"
2019-04-22 19:47:45 +02:00
xmlns:u="clr-namespace:Bit.App.Utilities"
2019-03-29 14:16:22 +01:00
x:DataType="pages:HomeViewModel"
x:Name="_page"
2019-03-29 04:52:33 +01:00
Title="{Binding PageTitle}">
2019-03-28 22:10:10 +01:00
<ContentPage.BindingContext>
2019-03-29 04:52:33 +01:00
<pages:HomeViewModel />
2019-03-28 22:10:10 +01:00
</ContentPage.BindingContext>
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
<ContentPage.ToolbarItems>
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
<controls:ExtendedToolbarItem
x:Name="_accountAvatar"
x:Key="accountAvatar"
IconImageSource="{Binding AvatarImageSource}"
Command="{Binding Source={x:Reference _accountListOverlay}, Path=ToggleVisibililtyCommand}"
Order="Primary"
Priority="-1"
UseOriginalImage="True"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{u:I18n Account}"
AutomationId="AccountIconButton" />
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<ToolbarItem x:Name="_closeButton" Text="{u:I18n Close}" Command="{Binding CloseCommand}" Order="Primary" Priority="-1"/>
</ContentPage.ToolbarItems>
2019-03-28 22:10:10 +01:00
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
<ContentPage.Resources>
<ResourceDictionary>
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<u:InverseBoolConverter x:Key="inverseBool" />
<StackLayout x:Name="_mainLayout" x:Key="mainLayout" Spacing="30" Padding="20, 50, 20, 0">
<Image
x:Name="_logo"
Source="logo.png"
VerticalOptions="Center" />
<Label Text="{u:I18n LoginOrCreateNewAccount}"
StyleClass="text-lg"
HorizontalTextAlignment="Center"/>
<StackLayout
StyleClass="box-row">
<Label
Text="{u:I18n EmailAddress}"
StyleClass="box-label" />
<Entry
x:Name="_email"
Text="{Binding Email}"
Keyboard="Email"
StyleClass="box-value"
ReturnType="Go"
ReturnCommand="{Binding ContinueCommand}"
AutomationId="EmailAddressEntry"
>
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor" Value="{DynamicResource MutedColor}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Entry>
<StackLayout
Orientation="Horizontal"
Margin="0, 6, 0 ,0">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding ShowEnvironmentPickerCommand}" />
</StackLayout.GestureRecognizers>
<Label
Text="{Binding RegionText}"
FontSize="13"
TextColor="{DynamicResource MutedColor}"
VerticalOptions="Center"
VerticalTextAlignment="Center"/>
<controls:IconLabel
Text="{Binding SelectedEnvironmentName}"
FontSize="13"
TextColor="{DynamicResource PrimaryColor}"
VerticalOptions="Center"
VerticalTextAlignment="Center"
AutomationId="RegionSelectorDropdown"/>
</StackLayout>
<StackLayout
Orientation="Horizontal"
Margin="0, 20, 0 ,0">
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<StackLayout.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding RememberEmailCommand}" />
</StackLayout.GestureRecognizers>
<Label
Text="{u:I18n RememberMe}"
StyleClass="text-sm"
HorizontalOptions="FillAndExpand"
VerticalOptions="Center"
VerticalTextAlignment="Center"
/>
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<Switch
Scale="0.8"
IsToggled="{Binding RememberEmail}"
VerticalOptions="Center"
AutomationId="RememberMeSwitch"
/>
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
</StackLayout>
</StackLayout>
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<Button Text="{u:I18n Continue}"
StyleClass="btn-primary"
IsEnabled="{Binding CanContinue}"
Command="{Binding ContinueCommand}"
AutomationId="ContinueButton"
/>
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<Label FormattedText="{Binding CreateAccountText}"
Margin="0, 10"
StyleClass="box-footer-label"
AutomationId="CreateAccountLabel">
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 00:10:41 +02:00
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding CreateAccountCommand}" />
</Label.GestureRecognizers>
</Label>
2019-05-02 18:26:09 +02:00
</StackLayout>
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
</ResourceDictionary>
</ContentPage.Resources>
<AbsoluteLayout
x:Name="_absLayout"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand">
<ContentView
x:Name="_mainContent"
AbsoluteLayout.LayoutFlags="All"
AbsoluteLayout.LayoutBounds="0, 0, 1, 1">
</ContentView>
<controls:AccountSwitchingOverlayView
x:Name="_accountListOverlay"
AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
AbsoluteLayout.LayoutFlags="All"
MainPage="{Binding Source={x:Reference _page}}"
Account Switching (#1807) * Account Switching (#1720) * Account switching * WIP * wip * wip * updates to send test logic * fixed Send tests * fixes for theme handling on account switching and re-adding existing account * switch fixes * fixes * fixes * cleanup * vault timeout fixes * account list status enhancements * logout fixes and token handling improvements * merge latest (#1727) * remove duplicate dependency * fix for initial login token storage paradox (#1730) * Fix avatar color update toolbar item issue on iOS for account switching (#1735) * Updated account switching menu UI (#1733) * updated account switching menu UI * additional changes * add key suffix to constant * GetFirstLetters method tweaks * Fix crash on account switching when logging out when having more than user at a time (#1740) * single account migration to multi-account on app update (#1741) * Account Switching Tap to dismiss (#1743) * Added tap to dismiss on the Account switching overlay and improved a bit the code * Fix account switching overlay background transparent on the proper place * Fixed transparent background and the shadow on the account switching overlay * Fix iOS top space on Account switching list overlay after modal (#1746) * Fix top space added to Account switching list overlay after closing modal * Fix top space added to Account switching list overlay after closing modal on lock, login and home views just in case we add modals in the future there as well * Usability: dismiss account list on certain events (#1748) * dismiss account list on certain events * use new FireAndForget method for back button logic * Create and use Account Switching overlay control (#1753) * Added Account switching overlay control and its own ViewModel and refactored accordingly * Fix account switching Accounts list binding update * Implemented dismiss account switching overlay when changing tabs and when selecting the same tab. Also updated the deprecated listener on CustomTabbedRenderer on Android (#1755) * Overriden Equals on AvatarImageSource so it doesn't get set multiple times when it's the same image thus producing blinking on tab chaged (#1756) * Usability improvements for logout on vault timeout (#1781) * accountswitching fixes (#1784) * Fix for invalid PIN lock state when switching accounts (#1792) * fix for pin lock flow * named tuple values and updated async * clear send service cache on account switch (#1796) * Global theme and account removal (#1793) * Global theme and account removal * remove redundant call to hide account list overlay * cleanup and additional tweaks * add try/catch to remove account dialog flow Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
2022-02-23 18:40:17 +01:00
BindingContext="{Binding AccountSwitchingOverlayViewModel}"/>
</AbsoluteLayout>
2019-05-07 05:30:54 +02:00
</pages:BaseContentPage>