Mailspring/internal_packages/onboarding/lib
Juan Tejada 0e19f4511e fix(auth): Properly wait for acct to be inited before adding to sidebar
Summary:
Previously, when adding an account, we waited for it to be completely loaded (which meant having fetched the folder list) before focusing it on the sidebar. This could take several seconds, so it made the app feel unresponsive or slow when adding an account.

Then, we changed the logic to wait an arbitrary amount of time to focus the newly added account in the sidebar, with the hope that it would be enough time to focus it correctly but that it wouldn't seem too long. This still caused the unwanted effect of focusing it before it had been fully loaded.

This commit changes the auth flow so that the onboarding shows a Success page until the newly added account is fully loaded, and only /then/ closes itself, focuses the main window, and allows the account to be correctly focused in the sidebar.

Test Plan: manual

Reviewers: halla, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3751
2017-01-24 07:34:18 -08:00
..
decorators fix(auth): Properly wait for acct to be inited before adding to sidebar 2017-01-24 07:34:18 -08:00
account-types.es6 feat(fastmail): Add fastmail as a supported provider 2017-01-14 17:36:00 -08:00
common-provider-settings.json rm(provider-setting): Remove duplicate "fastmail.com" 2017-01-17 08:49:21 -08:00
form-error-message.jsx lint(*): Bump to ESLint 3.8 2016-10-17 18:07:35 -07:00
form-field.jsx fix(auth): ssl_required => true instead of "on" 2016-06-30 13:38:54 -07:00
main.es6
onboarding-actions.es6 lint(*): Fix linter errors within K2, update eslint grunt task 2016-12-01 15:38:16 -08:00
onboarding-helpers.es6 fix(auth) Increment timeout for requests that initiate imap connections 2017-01-19 16:06:37 -08:00
onboarding-root.jsx fix(auth): Properly wait for acct to be inited before adding to sidebar 2017-01-24 07:34:18 -08:00
onboarding-store.es6 fix(auth): Properly wait for acct to be inited before adding to sidebar 2017-01-24 07:34:18 -08:00
page-account-choose.jsx fix(custom-imap): Hide custom imap accounts and settings from onboarding 2017-01-12 10:25:33 -08:00
page-account-onboarding-success.jsx fix(auth): Properly wait for acct to be inited before adding to sidebar 2017-01-24 07:34:18 -08:00
page-account-settings-exchange.jsx
page-account-settings-gmail.jsx fix(auth): Properly wait for acct to be inited before adding to sidebar 2017-01-24 07:34:18 -08:00
page-account-settings-imap.jsx fix(auth): ssl_required => true instead of "on" 2016-06-30 13:38:54 -07:00
page-account-settings.jsx fix(custom-imap): Hide custom imap accounts and settings from onboarding 2017-01-12 10:25:33 -08:00
page-authenticate.jsx feat(onboarding): add client_edition=basic to onboarding flow 2017-01-15 12:07:45 -08:00
page-initial-preferences.cjsx 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
page-top-bar.jsx fix(onboarding): Don't allow going back into N1 signin 2016-06-08 13:48:56 -07:00
page-tutorial.jsx 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
page-welcome.jsx 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00