Commit graph

497 commits

Author SHA1 Message Date
Wolf-Martell Montwé
d6d8be95ba
Rename ServerConfigModule to ServerSettingsModule 2023-09-27 17:56:18 +02:00
Wolf-Martell Montwé
bdce4ce5c0
Add account edit to feature launcher 2023-09-27 17:56:18 +02:00
Wolf-Martell Montwé
dc142fea79
Add NavHost for incoming and outgoing server settings editing 2023-09-27 17:56:17 +02:00
Wolf-Martell Montwé
3fcd472cb0
Add EditIncomingServerSettingsViewModel and EditOutgoingServerSettingsViewModel 2023-09-27 17:56:17 +02:00
Wolf-Martell Montwé
496a64c04e
Change name to AccountStateLoader 2023-09-25 16:21:48 +02:00
Wolf-Martell Montwé
eff8b25a3a
Add AccountLoader 2023-09-25 16:13:00 +02:00
Wolf-Martell Montwé
d9125d3c02
Change order of events 2023-09-25 16:13:00 +02:00
Wolf-Martell Montwé
cc39924087
Merge pull request #7189 from thundernest/use_deeplinks_in_navigation
Use deep links in navigation
2023-09-25 13:55:14 +00:00
cketti
89530e5b08 Pass app name to ImapServerSettingsValidator for use with the IMAP ID command 2023-09-22 18:17:59 +02:00
Wolf-Martell Montwé
4ec59a881d
Fix OAuth 2 for Yahoo and AOL as they only support Authorization Code with PKCE now 2023-09-22 14:07:58 +02:00
Wolf-Martell Montwé
5b00628fe6
Wrap ErrorView and LoadingView in a box to be able to scale them to fillSize without changing their content size 2023-09-21 17:28:28 +02:00
cketti
5afd7b70b3 Add helpers for creating deep link-enabled navigation destinations 2023-09-21 16:24:56 +02:00
cketti
abce7d0f31 Use deep links with FeatureLauncherActivity 2023-09-21 16:08:32 +02:00
Wolf-Martell Montwé
16768c8e8d
Change AccountAutoDiscoveryContent to ContentLoadingErrorView 2023-09-19 11:54:35 +02:00
Wolf-Martell Montwé
69c373e178
Rename AccountStateRepository save to set function names 2023-09-15 13:54:15 +02:00
Wolf-Martell Montwé
61d955f774
Add AccountUpdater contract and implementation 2023-09-15 11:24:17 +02:00
Wolf-Martell Montwé
5694e0934b
Add account:edit module 2023-09-15 11:24:16 +02:00
Wolf-Martell Montwé
a7ca61883c
Add account uuid 2023-09-15 11:24:16 +02:00
Wolf-Martell Montwé
25accaf905
Add observeWithoutEffect method 2023-09-14 10:36:34 +02:00
Wolf-Martell Montwé
11b12f9c5e
Change named injection to typed injection for server validation to avoid issues with dependency resolution 2023-09-13 18:46:22 +02:00
Wolf-Martell Montwé
8019485750
Move email validation to account setup 2023-09-13 16:53:04 +02:00
Wolf-Martell Montwé
e152c1f2d1
Rename AccountOutgoingConfig to OutgoingServerSettings 2023-09-13 14:20:58 +02:00
Wolf-Martell Montwé
4926f595fb
Rename AccountIncomingConfig to IncomingServerSettings 2023-09-13 14:20:58 +02:00
Wolf-Martell Montwé
2c0a22a78a
Rename ServerConfigDomainContract to ServerSettingsDomainContract 2023-09-13 14:20:58 +02:00
Wolf-Martell Montwé
009f235fe7
Rename module from config to settings for consistency 2023-09-13 14:20:58 +02:00
Wolf-Martell Montwé
49bde4fab7
Remove needles initial state loading as it is covered by the LoadAccountState event 2023-09-13 14:20:57 +02:00
Wolf-Martell Montwé
826588e0c2
Rename AutoDiscoveryStatus to AutoDiscoveryResult 2023-09-06 14:44:06 +02:00
Wolf-Martell Montwé
4f2fe9f6e5
Move server config to its own module 2023-09-06 14:20:59 +02:00
Wolf-Martell Montwé
f141214844
Move domain entities to account common module 2023-09-06 13:05:28 +02:00
Wolf-Martell Montwé
fb02e39f91
Remove back and next button texts on WizardNavigationBar as they have default values set already 2023-09-06 12:10:27 +02:00
Wolf-Martell Montwé
875dd8f464
Move AccountSetupTopAppBar to common and rename to AccountTopAppBar 2023-09-06 12:10:27 +02:00
Wolf-Martell Montwé
26e4ee5d52
Move InputFields to account common module 2023-09-06 12:10:27 +02:00
Wolf-Martell Montwé
dcad7a95b6
Move server certificate to server module 2023-09-05 17:10:44 +02:00
Wolf-Martell Montwé
6acdf48e2d
Add account server validation module 2023-09-05 16:14:22 +02:00
Wolf-Martell Montwé
51fb165003
Remove ServerSettingsExtension as it's already part of the OAuth module 2023-09-01 12:37:23 +02:00
Wolf-Martell Montwé
795b5a42ea
Add servercertificate module and move code from setup there 2023-09-01 12:28:37 +02:00
Wolf-Martell Montwé
385de5fdeb
Rename account oauth DomainContract to AccountOAuthDomainContract 2023-08-31 19:16:24 +02:00
Wolf-Martell Montwé
5fff204b95
Move shared domain from setup to common module 2023-08-31 19:07:25 +02:00
Wolf-Martell Montwé
1d350ec6e1
Merge pull request #7123 from thundernest/sign_in_with_google_button
Use `OutlinedButton` for `SignInWithGoogleButton`
2023-08-23 17:15:09 +02:00
cketti
41435cb7f6 Fix behavior of back button when adding additional accounts 2023-08-18 18:17:03 +02:00
cketti
cc88a39528 Simplify AuthorizationRepository
This also fixes a bug; previously the `AuthorizationResponse` wasn't included in `AuthState`.
2023-08-16 14:05:36 +02:00
cketti
476cd91624 Remove AccountOAuthContract.State.authorizationState 2023-08-16 13:27:36 +02:00
cketti
bffddf254d
Merge pull request #7126 from thundernest/refactor_assertk_usage
Use nicer syntax for assertk assertions
2023-08-14 18:37:50 +02:00
cketti
49adf029f3 Use nicer syntax for assertk assertions 2023-08-14 16:46:07 +02:00
cketti
81002855b4 Don't enable signature when signature input during setup was left empty 2023-08-14 15:38:26 +02:00
cketti
a9179b6eac Use OutlinedButton for SignInWithGoogleButton
This way the "Sign in with Google" button looks and behaves more like a regular button.
2023-08-14 14:33:00 +02:00
cketti
5e9d9fe847
Merge pull request #7121 from thundernest/validation_hide_next_button
Always hide "Next" button in server settings validation screen
2023-08-14 12:31:46 +02:00
cketti
717cdfffbb
Merge pull request #7120 from thundernest/oauth_hide_next_button
Hide "Next" button in OAuth 2.0 flow
2023-08-14 12:31:15 +02:00
cketti
219a97e3d7 Always hide "Next" button in server settings validation screen 2023-08-10 19:54:20 +02:00
cketti
7e097fabf7 Fix AccountValidationMainScreen previews 2023-08-10 19:54:20 +02:00
cketti
1077f121df Hide "Next" button in OAuth 2.0 flow 2023-08-10 19:22:34 +02:00
cketti
c1726ebf28 Fix AccountSetupState.toAccountOptionsState() 2023-08-10 17:46:39 +02:00
cketti
b712f04db6 Add placeholder certificate error screen 2023-08-10 00:23:58 +02:00
cketti
a99d1817d9 Fix test for AccountAutoDiscoveryStateMapper.kt 2023-08-07 14:12:25 +02:00
Wolf-Martell Montwé
46deb14649
Add sign in message 2023-08-03 18:54:40 +02:00
Wolf-Martell Montwé
4f280d71f7
Remove AutoDiscover email address is enabled check to allow editing anytime 2023-08-03 17:42:03 +02:00
Wolf-Martell Montwé
5ab82847c6
Change AutoDiscovery to save state 2023-08-03 17:39:02 +02:00
Wolf-Martell Montwé
b005e26a02
Add OAuth to AccountValidation 2023-08-03 17:19:22 +02:00
Wolf-Martell Montwé
c8ca64ac29
Change injection 2023-08-03 16:36:00 +02:00
Wolf-Martell Montwé
559e68761c
Change Options to use AccountSetupState 2023-08-03 16:36:00 +02:00
Wolf-Martell Montwé
21b500c8a1
Change OutgoingConfig to use AccountSetupState 2023-08-03 16:35:41 +02:00
Wolf-Martell Montwé
cfccc950cc
Change AccountValidation to use AccountSetupState 2023-08-03 16:35:23 +02:00
Wolf-Martell Montwé
69ad9c52ef
Change IncomingConfig to use AccountSetupState 2023-08-03 16:34:56 +02:00
Wolf-Martell Montwé
a5a8291e55
Change AutoDiscovery to use AccountSetupState 2023-08-03 16:34:40 +02:00
Wolf-Martell Montwé
cdb7f77d2e
Move AccountAutoDiscoveryStateMapper to autodiscovery package 2023-08-03 16:34:23 +02:00
Wolf-Martell Montwé
9b62c1f8d0
Change AutoDiscoveryTest setup 2023-08-03 16:34:12 +02:00
Wolf-Martell Montwé
4c570e7985
Add AccountSetupState and repository to keep it in memory 2023-08-03 16:34:05 +02:00
Wolf-Martell Montwé
5f027d206c
Remove duplicated FakeAccountOAuthViewModel 2023-08-03 16:33:44 +02:00
Wolf-Martell Montwé
b19aa29e6d
Add OAuth to auto discovery flow 2023-08-03 16:33:37 +02:00
Wolf-Martell Montwé
9f0f32b0c0
Change Dummy to PreviewAccountOAuthViewModel 2023-08-02 14:18:35 +02:00
Wolf-Martell Montwé
7da66f1867
Merge pull request #7105 from thundernest/fix_timer_based_navigation
Fix timer based navigation
2023-08-01 07:49:38 +00:00
Wolf-Martell Montwé
d7a9ff1485
Merge pull request #7104 from thundernest/change_sign_in_button
Change SignInWithGoogleButton to fit to our button style
2023-08-01 07:48:55 +00:00
Wolf-Martell Montwé
303a8f94d6
Change back to not change state and instead navigate back immediately 2023-07-31 18:18:46 +02:00
Wolf-Martell Montwé
4c7b6366c3
Fix timer based navigation 2023-07-31 18:12:31 +02:00
Wolf-Martell Montwé
06a118ca41
Change SignInWithGoogleButton to fit to our button style and add outline to add contrast in light mode, also removed the loading indicator as not needed 2023-07-31 17:49:43 +02:00
Wolf-Martell Montwé
9d8e54683b
Move onBack method below onNext 2023-07-31 16:52:33 +02:00
Wolf-Martell Montwé
92e949c299
Change remaining AccountSetupViewModelTest to new turbine setup 2023-07-31 16:52:33 +02:00
Wolf-Martell Montwé
8cd96d2e77
Fix account setup back navigation flow 2023-07-31 16:52:32 +02:00
Wolf-Martell Montwé
660f183607
Remove unused string resources 2023-07-31 16:37:28 +02:00
cketti
4efbf3d0d9 Add OAuth to auto discovery flow 2023-07-31 15:16:09 +02:00
cketti
6ff458da6c Change AccountOAuthScreen() to AccountOAuthView() 2023-07-30 17:06:40 +02:00
cketti
cb6520efd2 Change ViewModel orchestration in account setup
Using more direct dependencies makes it easier to follow what's going on.
2023-07-30 17:06:40 +02:00
cketti
8e7a5f3541 Add an AuthStateStorage parameter to ServerSettingsValidator
Typically we use `Account` to hold the (OAuth 2.0) authorization state. But during account setup we don't have an `Account` instance yet. So we allow a `ServerSettingsValidator` caller to pass an `AuthStateStorage` that we then use with `OAuth2TokenProviderFactory` to create an `OAuth2TokenProvider` instance. When setting up an account we can use an `AuthStateStorage` implementation that will simply hold the state in memory.
2023-07-29 23:36:02 +02:00
cketti
191693a534 Remove unused code 2023-07-29 20:21:35 +02:00
cketti
a8dc84a69b Remove FakeAutoDiscoveryService 2023-07-28 12:53:06 +02:00
Wolf-Martell Montwé
a00ca56f8e
Add validation flow to account setup 2023-07-27 20:18:13 +02:00
Wolf-Martell Montwé
eec5a358e9
Add incoming outgoing texts 2023-07-27 19:06:53 +02:00
Wolf-Martell Montwé
5e94369775
Change account validation bottom next button visibility to isSuccess state and wire it up 2023-07-27 19:06:53 +02:00
Wolf-Martell Montwé
9046a4c8fc
Remove loading from AccountOutgoingScreen 2023-07-27 19:06:52 +02:00
Wolf-Martell Montwé
1a7e60dfef
Remove loading from AccountIncomingScreen 2023-07-27 19:06:52 +02:00
Wolf-Martell Montwé
1360d058d7
Add string mapper 2023-07-27 13:17:07 +02:00
Wolf-Martell Montwé
63bfd64b37
Add AccountValidationScreen 2023-07-27 13:17:07 +02:00
Wolf-Martell Montwé
42e5bde2d3
Merge pull request #7088 from thundernest/add_validate_server_settings_use_case
Add ValidateServerSettings use case
2023-07-27 10:59:11 +00:00
Wolf-Martell Montwé
5897a655bf
Add ValidateServerSettings use case 2023-07-26 18:16:15 +02:00
Wolf-Martell Montwé
8af494fa52
Change WizardNavigationBar to be able to show and hide buttons 2023-07-26 18:13:19 +02:00
Wolf-Martell Montwé
0c0e57f7ba
Merge pull request #7079 from thundernest/add_account_setup_oauth
Add account setup oauth
2023-07-26 12:43:29 +00:00
Wolf-Martell Montwé
bfae204dc5
Remove OnNextClicked as SignInClicked controls the flow 2023-07-26 13:52:19 +02:00
Wolf-Martell Montwé
7b8107d2bc
Add error strings 2023-07-26 13:52:19 +02:00
Wolf-Martell Montwé
5b9d08fe8b
Add tests and remove CheckIsAuthorized as it's fully covered by the AuthorizationStateRepository 2023-07-26 13:52:19 +02:00
Wolf-Martell Montwé
35020a1cb9
Add CheckIsGoogleSignIn and use GoogleSignInButton 2023-07-26 13:52:19 +02:00
Wolf-Martell Montwé
615e16895f
Add FinishOAuthSignIn usecase 2023-07-26 13:52:18 +02:00
Wolf-Martell Montwé
e658b8256b
Add AccountOAuthScreen 2023-07-26 13:52:18 +02:00
Wolf-Martell Montwé
eeb03b6d15
Fix AutoDiscoveryStatusView border shape 2023-07-20 18:17:36 +02:00
cketti
3c344ff808
Merge pull request #7077 from thundernest/autoconfig_auth_types
Read all supported authentication methods from Autoconfig file
2023-07-20 11:47:50 +02:00
cketti
ce2ef439d0
Merge pull request #7075 from thundernest/client_certificate
New account setup: add support for client certificates
2023-07-20 11:47:30 +02:00
cketti
639f6e68b3 Use authentication type from AutoDiscoveryResult.Settings 2023-07-19 20:35:23 +02:00
cketti
f73cd2ffef Return all supported authentication methods from RealAutoconfigParser 2023-07-19 19:58:20 +02:00
Wolf-Martell Montwé
0a2a1b7d93
Change WizardNavigationBar to enable next and back button based on given state 2023-07-19 18:53:58 +02:00
cketti
92d7682e48 Use client certificate alias when creating ServerSettings 2023-07-19 18:25:06 +02:00
cketti
d4b7668368 Add UI element to select a client certificate 2023-07-19 18:25:06 +02:00
Wolf-Martell Montwé
ada21aebd1
Add AuthorizationRepository 2023-07-19 17:34:34 +02:00
cketti
445146b531 Add a CompositionLocal for getting the current Activity 2023-07-19 16:26:28 +02:00
Wolf-Martell Montwé
b0cf2e5f28
Merge pull request #7073 from thundernest/add_content_list_view
Add ContentListView to wrap repeated content view setup
2023-07-19 13:44:10 +00:00
Wolf-Martell Montwé
c2d067f968
Move EventStateTestUtil to core:ui:compose:testing 2023-07-19 15:03:23 +02:00
Wolf-Martell Montwé
cbffe44496
Add ContentListView to wrap repeated content view setup 2023-07-19 14:39:19 +02:00
Wolf-Martell Montwé
f3d096fed4
Merge pull request #7071 from thundernest/add_sign_in_with_google_button
Add SignInWithGoogleButton
2023-07-19 09:31:40 +00:00
Wolf-Martell Montwé
f0672ddd53
Add OAuth check to GetAutoDiscovery 2023-07-19 10:36:39 +02:00
Wolf-Martell Montwé
23b0e79a0e
Add account common module to host shared code for reuse in oauth module 2023-07-19 10:36:39 +02:00
Wolf-Martell Montwé
e6b2c66f44
Change contracts from sealed class to sealed interface 2023-07-19 10:07:27 +02:00
Wolf-Martell Montwé
60370fc1d9
Add SignInWithGoogleButton 2023-07-19 10:06:49 +02:00
cketti
d8489c1cf1 Disable "IMAP path prefix" input when auto-detecting IMAP namespace 2023-07-17 17:26:28 +02:00
cketti
d09cb2afeb Add source to AutoDiscoveryResult.Settings 2023-07-15 21:39:43 +02:00
cketti
e24cbaaddb Map IMAP advanced settings when creating ServerSettings 2023-07-13 16:29:32 +02:00
cketti
cb78d34610 Add "Send client ID" to incoming server settings (IMAP) 2023-07-12 15:50:00 +02:00
cketti
30a248444f
Merge pull request #7047 from thundernest/fix_MiniDnsMxResolver
MX lookup: Avoid exception when domain couldn't be resolved
2023-07-10 12:36:08 +02:00
cketti
6394599ae3 MX lookup: Avoid exception when domain couldn't be resolved 2023-07-04 14:28:20 +02:00
cketti
07ccf3b0cb Use AuthenticationType when creating outgoing ServerSettings 2023-07-03 18:24:42 +02:00
cketti
89b590b46d Hide username field in outgoing server settings when not needed 2023-07-03 18:19:16 +02:00
cketti
ba07e162e4 Hide password field in outgoing server settings when not needed 2023-07-03 18:16:49 +02:00
cketti
37ea82bd8f Don't show OAuth 2.0 option for POP3 accounts 2023-07-03 18:00:56 +02:00
cketti
0f6a50df73 Use AuthenticationType when creating ServerSettings 2023-07-03 18:00:56 +02:00
cketti
e80a02579a Hide password field in incoming server settings when not needed 2023-07-03 17:59:00 +02:00
Wolf-Martell Montwé
1aa69635f5
Add launch import settings 2023-07-03 15:30:57 +02:00
Wolf-Martell Montwé
6cfd9481aa
Move AccountSetupFinishedLauncher to feature launcher 2023-07-03 10:21:14 +02:00
Wolf-Martell Montwé
b9e9dced5d
Move OkHttp dependency injection to account setup 2023-06-30 13:18:18 +02:00
Wolf-Martell Montwé
4cd261dcc7
Add feature launcher module to add host activity for composable views 2023-06-30 13:18:18 +02:00
Wolf-Martell Montwé
d5c3cf3bf8
Merge pull request #7032 from thundernest/add_account_creation
Add account creation
2023-06-30 12:31:21 +02:00
Wolf-Martell Montwé
fe180f282d
Add createAccount use case to account setup 2023-06-30 12:13:16 +02:00
Wolf-Martell Montwé
ece413d9a2
Cleanup account options 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
5c076d4f69
Change AccountSetupExternalContract to suspend and wrap IO operations with coroutine IO dispatcher 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
32a8f23dc7
Add create account use case 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
1c142876d0
Add AccountOptions and state mapper 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
5384350689
Add AccountCreator as external dependency for the account setup 2023-06-30 12:04:27 +02:00
cketti
176a1e5bb7 Add authentication type to outgoing server settings screen 2023-06-29 17:46:12 +02:00
cketti
7156b92187
Merge pull request #7035 from thundernest/add_incoming_authentication_type
Add authentication type to incoming server settings screen
2023-06-29 17:02:24 +02:00
Wolf-Martell Montwé
88a4b7913f
Add AccountOwnerNameProvider 2023-06-29 12:24:28 +02:00
Wolf-Martell Montwé
dbdbb25cdb
Add AccountSetupFinishedLauncher 2023-06-29 12:24:28 +02:00
Wolf-Martell Montwé
10aab087dd
Fix lint issues 2023-06-29 12:23:35 +02:00
cketti
d677c542ef Add authentication type to incoming server settings screen 2023-06-28 15:19:09 +02:00
cketti
5c445256b0 Remove unnecessary elements from outgoing server settings screen 2023-06-28 14:33:42 +02:00
cketti
e43ea29378 Use "imap" prefix for "useCompression" properties 2023-06-28 14:30:16 +02:00
cketti
428b586c88 Only display "use compression" option for IMAP 2023-06-28 14:26:15 +02:00
Wolf-Martell Montwé
780b1c4430
Fix imports 2023-06-27 13:51:28 +02:00
Wolf-Martell Montwé
ff28886001
Add checkSettings with loading, error and success states to outgoing config 2023-06-27 13:10:46 +02:00
Wolf-Martell Montwé
613c2a3b6b
Add AccountOutgoingConfigStateMapper that maps to server settings 2023-06-27 12:26:03 +02:00
Wolf-Martell Montwé
9acfe184e0
Add AccountOutgoingStringMapper 2023-06-27 12:16:33 +02:00
Wolf-Martell Montwé
56abe2f23c
Add error message mapping 2023-06-27 12:14:33 +02:00
Wolf-Martell Montwé
e49d9e5c5e
Add checkSettings with loading, error and success states to incoming config 2023-06-27 11:43:39 +02:00
Wolf-Martell Montwé
22d1784d60
Add SuccessView 2023-06-27 11:43:38 +02:00
Wolf-Martell Montwé
0a047a1e13
Change import 2023-06-27 11:43:38 +02:00
Wolf-Martell Montwé
d51a33ec3c
Add incoming settings check 2023-06-27 11:43:38 +02:00
Wolf-Martell Montwé
ea8c0beb5c
Add server config validation use cases and change check interface to SAM 2023-06-27 11:33:46 +02:00
Wolf-Martell Montwé
8e99d69442
Add MailConnectionSecurity 2023-06-26 16:59:47 +02:00
Wolf-Martell Montwé
1429327c69
Extract GetOAuthRequestIntent into own use case for use in the new account flow 2023-06-26 14:06:34 +02:00
Wolf-Martell Montwé
c12ac2fecd
Add app auth dependency to OAuth module 2023-06-23 11:57:30 +02:00
Wolf-Martell Montwé
526a6fe933
Refactor SuggestServerName 2023-06-23 11:46:05 +02:00
Wolf-Martell Montwé
03772c6a5c
Rename to SuggestServerName 2023-06-23 11:42:28 +02:00
Wolf-Martell Montwé
a56ca2cbdc
Change ServerNameSuggesterTest to Kotlin
Signed-off-by: Wolf-Martell Montwé <wolf@thunderbird.net>
2023-06-23 11:27:37 +02:00
Wolf-Martell Montwé
507da47b06
Rename .java to .kt
Signed-off-by: Wolf-Martell Montwé <wolf@thunderbird.net>
2023-06-23 11:26:59 +02:00
Wolf-Martell Montwé
bbfc232975
Add feature:account:oauth module and move ServerNameSuggester there 2023-06-23 11:24:45 +02:00
Wolf-Martell Montwé
00148f1a99
Change OAuth to not use OAuthProvider enum and delegate configuration creation to the app 2023-06-21 14:05:28 +02:00
Wolf-Martell Montwé
e64d030d22
Refactor OauthConfiguration to be placed in common module with added OAuthProvder and OAuthProviderSettings 2023-06-20 15:17:47 +02:00
Wolf-Martell Montwé
9e0f1bd815
Resolve app.core dependency blocking oauth extraction 2023-06-20 15:17:45 +02:00
Wolf-Martell Montwé
141dd0974c
Resolve app.testing dependency blocking oauth extraction 2023-06-20 14:57:44 +02:00
Wolf-Martell Montwé
b826961287
Add AccountAutoDiscoveryStateMapper and propagate to other view models 2023-06-20 14:32:44 +02:00
Wolf-Martell Montwé
d2685dbede
Add AutoDiscovery IncomingServerSettings and ConnectionSecurity mapping 2023-06-20 13:24:31 +02:00
Wolf-Martell Montwé
45f52bd68e
Add events to propagate finished states 2023-06-20 13:24:31 +02:00
Wolf-Martell Montwé
a898491c6b
Merge pull request #6986 from thundernest/change_account_setup_back_behaviour
Change account setup back behaviour
2023-06-20 13:01:00 +02:00
cketti
bf73b0a787
Merge pull request #6987 from thundernest/relaxed_email_address
Change `EmailAddressParser` to support addresses violating the specification
2023-06-16 14:59:44 +02:00
cketti
656a9d3862 Use relaxed mode to parse email addresses from message headers 2023-06-15 19:32:56 +02:00
Wolf-Martell Montwé
f97476b134
Add BackHandler to delegate back navigation to view model 2023-06-15 18:33:59 +02:00
Wolf-Martell Montwé
df604d9955
Rename AutoConfig to AutoDiscovery in class names and variables 2023-06-15 18:33:31 +02:00
Wolf-Martell Montwé
b1eaabf699
Rename autoconfig package to autodiscovery 2023-06-15 18:33:30 +02:00
Wolf-Martell Montwé
8a3cb578e7
Refactor validation tests to use test subject property 2023-06-15 18:17:27 +02:00
Wolf-Martell Montwé
d04a91f566
Add ConfigurationApproval validation 2023-06-15 18:02:35 +02:00
Wolf-Martell Montwé
9f96ab6ee0
Remove ValidationUseCase and replace by SAM interfaces to have more flexibility 2023-06-15 18:02:35 +02:00
Wolf-Martell Montwé
021d9ab9ef
Reduce visibility to internal where possible to hide implementation 2023-06-15 18:02:35 +02:00
Wolf-Martell Montwé
4d2712eeca
Change AutoDiscoveryServerSettingsView to also handle IP addresses 2023-06-15 17:45:59 +02:00
Wolf-Martell Montwé
ef6d35c44c
Change AutoDiscoveryStatusHeaderState to enum 2023-06-15 17:45:52 +02:00
Wolf-Martell Montwé
e0dd88d599
Add configuration approval view and state 2023-06-14 16:28:16 +02:00
Wolf-Martell Montwé
4549d25323
Add AutoDiscoveryStatusBodyView 2023-06-14 14:45:34 +02:00
Wolf-Martell Montwé
2a720fa5bf
Add AutoDiscoveryStatusItem 2023-06-14 14:45:34 +02:00
Wolf-Martell Montwé
8aadfe4bae
Cleanup AutoDiscovery entities 2023-06-14 14:24:42 +02:00
Wolf-Martell Montwé
30cc0b6ccf
Add retry behavior 2023-06-14 14:24:42 +02:00
Wolf-Martell Montwé
8df500b52e
Add AutoDiscovery loading 2023-06-14 14:24:42 +02:00
Wolf-Martell Montwé
54d082c919
Add loading and error views with state handling 2023-06-14 14:24:42 +02:00
Wolf-Martell Montwé
a7b0e92213
Add GetAutoDiscovery usecase and test implementation 2023-06-14 14:24:40 +02:00
Wolf-Martell Montwé
a4daa0beeb
Change error message to error classes 2023-06-14 14:23:41 +02:00
Wolf-Martell Montwé
a16b0834cc
Add autodiscovery dependency 2023-06-14 14:23:40 +02:00
cketti
eb68441379 Make AutoDiscoveryService return type non-nullable 2023-06-14 12:46:39 +02:00
Wolf-Martell Montwé
64727067c0
Add BooleanInputField 2023-06-12 10:16:05 +02:00
cketti
c2a2437b6b
Merge pull request #6968 from thundernest/autodiscovery_isTrusted
Add `isTrusted` property to `AutoDiscoveryResult.Settings`
2023-06-09 18:54:04 +02:00
Wolf-Martell Montwé
4fef436925
Add AccountAutoConfig validation 2023-06-09 13:30:43 +02:00
cketti
7562eb84ac Add MxLookupResult with isTrusted property 2023-06-08 17:16:01 +02:00
cketti
18ee442d97 Add isTrusted property to HttpFetchResult 2023-06-08 16:43:20 +02:00
cketti
0653fbfb68 Add isTrusted property to AutoDiscoveryResult.Settings 2023-06-08 15:23:30 +02:00
Wolf-Martell Montwé
c72745f915
Add email validation 2023-06-08 14:42:39 +02:00
Wolf-Martell Montwé
dcc063911b
Add content items for email address and password and add state handling 2023-06-08 14:42:39 +02:00
Wolf-Martell Montwé
0e84935977
Add common ListItem 2023-06-08 14:42:38 +02:00
Wolf-Martell Montwé
089c29c6fb
Change protocol type tests 2023-06-08 14:30:10 +02:00
Wolf-Martell Montwé
9b4d81ac1f
Change state tests 2023-06-08 14:12:02 +02:00
Wolf-Martell Montwé
fd3dfb3235
Add AccountAutoConfig contract and view model 2023-06-08 14:12:02 +02:00
Wolf-Martell Montwé
a644d37742
Add entities for auto config 2023-06-08 14:12:01 +02:00
Wolf-Martell Montwé
10b03863c5
Add email error mapping and move mapper to common 2023-06-08 14:12:01 +02:00
Wolf-Martell Montwé
aab7371750
Add common top header 2023-06-08 14:12:01 +02:00
cketti
55f50f009d
Merge pull request #6957 from thundernest/change_AutoDiscoveryResult
[Refactor] Change `AutoDiscoveryResult` to a sealed interface
2023-06-08 11:16:29 +02:00
cketti
e846b3b7fe
Merge pull request #6956 from thundernest/add_AutoconfigParserResult
[Refactor] Add custom result type for `AutoconfigParser`
2023-06-08 11:09:04 +02:00
Wolf-Martell Montwé
dbc9aaadeb
Add AccountIncomingConfig validation 2023-06-07 15:59:53 +02:00
Wolf-Martell Montwé
b09b83b1fa
Add ImapPrefix validator 2023-06-07 15:59:53 +02:00
Wolf-Martell Montwé
ae5e38e6ba
Change security and port on protocol type changed 2023-06-07 15:49:48 +02:00
Wolf-Martell Montwé
e04bc10729
Add AccountIncomingConfigContract and ViewModel 2023-06-07 15:49:47 +02:00
Wolf-Martell Montwé
2b436e7bc2
Change input fields to class instead of data class and add equals and hashCode 2023-06-07 15:49:16 +02:00
Wolf-Martell Montwé
d3d8821896
Add account incoming config content ui 2023-06-07 15:49:16 +02:00
Wolf-Martell Montwé
df0dba1c20
Add IncomingProtocolType 2023-06-07 15:25:13 +02:00
Wolf-Martell Montwé
d4c949e350
Fix validate port allowing 0 2023-06-07 15:12:25 +02:00
Wolf-Martell Montwé
3d311b554f
Add AccountOutgoingConfig validation 2023-06-07 15:05:43 +02:00
Wolf-Martell Montwé
e3175afc13
Add validation use case definition and concrete implementation for server, port, username and password 2023-06-07 15:05:42 +02:00
Wolf-Martell Montwé
b47f464872
Add AccountOutgoingConfigContract and ViewModel 2023-06-07 14:55:31 +02:00
Wolf-Martell Montwé
1f18130b5c
Change test setup to generalised event state testing 2023-06-07 14:55:31 +02:00
Wolf-Martell Montwé
fe86ef5878
Add account outgoing config content ui 2023-06-07 14:55:31 +02:00
Wolf-Martell Montwé
69a2643b4e
Add connection security 2023-06-07 14:55:31 +02:00
Wolf-Martell Montwé
440fa4957c
Add NumberInputField 2023-06-07 14:55:30 +02:00
Wolf-Martell Montwé
608cf6d3da
Fix inconsistencies 2023-06-07 14:54:39 +02:00
cketti
6a80fefd84 Change AutoDiscoveryResult to a sealed interface 2023-06-06 19:47:09 +02:00
cketti
66bb36bd9f Add custom result type for AutoconfigParser 2023-06-06 17:16:45 +02:00
cketti
08786a37a1 Extract common functionality to AutoconfigFetcher 2023-06-06 16:57:36 +02:00
cketti
9ae4c89c4e Add custom result type for HttpFetcher 2023-06-01 16:18:48 +02:00
cketti
87a1fd69cf Rename AutoconfigFetcher to HttpFetcher 2023-06-01 16:12:40 +02:00
cketti
27ba2b5d8d Remove use of EmailHelper from :feature:autodiscovery:autoconfig 2023-06-01 14:29:28 +02:00
cketti
c314b79dba Add AutoDiscoveryService to run auto discovery steps in parallel 2023-06-01 13:58:07 +02:00
Wolf-Martell Montwé
32a8b79a13
Add AccountOptions validation 2023-05-31 17:26:26 +02:00
Wolf-Martell Montwé
48ac48fda3
Change validation to use ValidationError interface for errors instead of exceptions 2023-05-31 17:17:22 +02:00
cketti
9bcd64f54e
Merge pull request #6931 from thundernest/add_AutoDiscovery_tests
Add tests for AutoDiscovery implementations
2023-05-31 11:44:50 +02:00
Wolf-Martell Montwé
d7c10e3304
Add AccountOptionsContract and ViewModel 2023-05-31 11:25:57 +02:00
Wolf-Martell Montwé
d1eecbf3af
Add InputField and StringInputField 2023-05-31 11:23:13 +02:00
Wolf-Martell Montwé
493356726a
Add turbine test assertion 2023-05-31 11:23:13 +02:00
Wolf-Martell Montwé
6b44ff4004
Add account options content ui 2023-05-31 11:23:12 +02:00
Wolf-Martell Montwé
d889d144f3
Add common item padding 2023-05-31 11:23:12 +02:00
Wolf-Martell Montwé
af60c73d62
Add EmailSettings types 2023-05-31 11:23:12 +02:00
Wolf-Martell Montwé
ac0e4422cf
Add validation use case definition and concrete implementation for AccountName, DisplayName and EmailSignature 2023-05-31 10:19:02 +02:00