Commit graph

4135 commits

Author SHA1 Message Date
Evan Morikawa 61f7a62c5a bump(version): 0.5.11 2017-01-13 12:20:07 -08:00
Evan Morikawa 45848ce3a0 fix(config): move from ~/.nylas-k2 to ~/.nylas-mail
Summary:
fix(config): move from ~/.nylas-k2 to ~/.nylas-mail

fix(auth): ignore onboarding urls that aren't Nylas

feat(sig): change default signature

bump(k2)

Test Plan: manual

Reviewers: halla, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3664
2017-01-13 12:19:42 -08:00
Halla Moore fc43bc834a fix(initial-sync-status): Change how we display the sync status
Summary:
This diff takes out the progress bars, since they can appear to
not move for very large mailboxes. Instead, just show an icon that
indicates whether the sync is complete or in progress, and add a
tooltip that displays how far back the folder has been synced to.

Submodule commit is D3662

Test Plan: tested locally

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3663
2017-01-13 12:07:54 -08:00
Mark Hahnenberg ee438c7219 [thread-search] Add support for category search (i.e. "in:foo")
Summary: See title

Test Plan: Run locally, search for specific labels

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3656
2017-01-13 11:53:41 -08:00
Karim Hamidou b880ee981d [feat] [autoupdater] Introduce a new channel, "Nylas Mail" + let N1
specify a preferred channel.
2017-01-13 10:59:12 -08:00
Juan Tejada 4eb9c49a21 fix(offline-state): Make sure we periodically update it
Summary: See title

Test Plan: manual

Reviewers: evan, jackie

Reviewed By: jackie

Differential Revision: https://phab.nylas.com/D3652
2017-01-12 12:30:30 -08:00
Evan Morikawa e7ac46d5b4 bump(version): 0.5.10 2017-01-12 12:09:53 -08:00
Evan Morikawa fb4d66d370 bump(k2) 2017-01-12 12:06:35 -08:00
Jackie Luo 78a7388318 🎨(rename): Update Nylas N1 to Nylas Mail
Test Plan: Tested locally.

Reviewers: halla, juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3645
2017-01-12 12:05:44 -08:00
Halla Moore 348ead5c11 fix(SyncbackCategoryTask): Make category operations optimistic again
Summary:
We don't see any weird double object behavior when delete deltas are
working properly, so might as well be optimistic since it makes for
a better user experience. This diff also notifies the user if a
category operation fails because of a mail provider restriction.

Fixes T7475

Test Plan: tested locally

Reviewers: juan, evan

Reviewed By: evan

Maniphest Tasks: T7475

Differential Revision: https://phab.nylas.com/D3648
2017-01-12 10:56:43 -08:00
Halla Moore 99e3f732d9 fix(custom-imap): Hide custom imap accounts and settings from onboarding
Summary:
IMAP no longer appears on the onboarding account list, and the option to
edit connection settings does not appear for any of the visible account
types. Custom IMAP accounts can still be added via a menu option.

Fixes T7474

Test Plan: tested locally

Reviewers: juan, jackie, evan

Reviewed By: evan

Maniphest Tasks: T7474

Differential Revision: https://phab.nylas.com/D3636
2017-01-12 10:25:33 -08:00
Juan Tejada c40ba0a7f6 fix(notifs) Restore offline notification
Summary: See title

Test Plan: tested locally

Reviewers: evan, halla, jackie

Reviewed By: jackie

Differential Revision: https://phab.nylas.com/D3643
2017-01-11 17:26:27 -08:00
Evan Morikawa 5c8ee091e3 bump(k2) 2017-01-11 16:48:38 -08:00
Halla Moore 0b8e8fa6d9 💄(initial-sync): Move "hide" to the top of the expanded progress
Summary: Fixes T7442

Test Plan: tested locally

Reviewers: evan, jackie

Reviewed By: jackie

Maniphest Tasks: T7442

Differential Revision: https://phab.nylas.com/D3640
2017-01-11 15:24:18 -08:00
Mark Hahnenberg 668c2935c9 [thread-search] Improve local thread search
Summary:
Previously we waited to build the local ThreadSearch index until we were
done with the initial mail sync. This is undesirable because inboxes can
be very large, making local sync useless for a number of hours after a
user adds an account. This diff removes that restriction.

This diff also adds a new rudimentary new grammar (along with accompanying lexer
and parser) for local thread search queries. This grammar is then
translated into the appropriate SQL queries on the ThreadSearch index
table. More advanced features (e.g. in:category, date ranges, etc) can be added
easily in the future by augmenting this simple search query language.

Test Plan: Run locally, new unit tests

Reviewers: juan, evan, khamidou

Reviewed By: khamidou

Differential Revision: https://phab.nylas.com/D3614
2017-01-11 14:26:42 -08:00
Halla Moore 49e4db69e3 feat(onboarding): Display a possible issue when credentials are incorrect
Summary:
When a user tries connecting an account and it 401's, show a note
that suggests what the issue may be, and link to a support article
for more information. In general, mention that they may need to use
an app password. If it's a Yahoo email address, ask if they've already
enabled the proper setting from within Yahoo.

Test Plan: tested locally

Reviewers: evan, jackie

Reviewed By: jackie

Differential Revision: https://phab.nylas.com/D3630
2017-01-11 11:19:38 -08:00
Halla Moore bd842ee73a fix(preference-accounts): Don't select accounts that no longer exist
Summary:
After updating an account's connection settings, there's a brief
moment where the selected account isn't null, but doesn't actually
exist in the AccountStore. This throws a bunch of undefined errors,
so this diff makes sure we discard that selection.

Fixes T7452

Test Plan: tested locally

Reviewers: evan, juan

Reviewed By: juan

Maniphest Tasks: T7452

Differential Revision: https://phab.nylas.com/D3634
2017-01-11 11:19:00 -08:00
Evan Morikawa 71c00776ff bump(version): 0.5.9 2017-01-10 18:25:30 -08:00
Evan Morikawa a1d82e62cd bump(k2) 2017-01-10 18:25:18 -08:00
Jackie Luo 7245809805 bump(submodule) 2017-01-10 18:15:57 -08:00
Jackie Luo 3a6a4299af feat(onboarding): Add Yahoo and iCloud and fix styling 2017-01-10 18:14:56 -08:00
Halla Moore 2f2cf5be4e fix(onboarding): Don't store type-specific fields when switching account types
Summary:
Since we pass all of the account info to the type-specific auth routes, having
extra fields in the account info object can cause the auth request to fail its
validation. This diff ensures that switching account types will drop any fields
in the account info object that aren't accepted across all routes.

Fixes T7455

Test Plan: tested locally

Reviewers: evan, juan

Reviewed By: juan

Maniphest Tasks: T7455

Differential Revision: https://phab.nylas.com/D3633
2017-01-10 17:34:57 -08:00
Halla Moore f7691ff175 fix(category-picker): Handle the case where new category creation fails
Summary:
Instead of throwing vague undefined errors in the console, recognize that
they category wasn't created and notify the user via a dialog box.

Test Plan: Tested locally

Reviewers: jackie, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3632
2017-01-10 16:23:53 -08:00
Juan Tejada d15272c3dc bump(version) 0.5.8 2017-01-10 15:31:05 -08:00
Juan Tejada ce9057cc8c bump(version) 0.5.7 2017-01-10 14:51:09 -08:00
Juan Tejada e6b4cd135a bump(electron) 2017-01-10 14:16:11 -08:00
Evan Morikawa 0c8c37d18d bump(version): 0.5.6 2017-01-10 12:15:22 -08:00
Evan Morikawa 892ef96116 feat(crash): add electron crash reporter
Summary:
Adds electron's crash reporter. This is currently going to a dumb heroku
app I setup: https://github.com/emorikawa/electron-crash-report-server

It's going there for now since I want to first evaluate if this is useful
before spending the time to build it in N1-Cloud and taking the risk of
getting flooded by crash reports.

The crash reports themselves are very difficult to debug since it requires
compiling tools that can read os-specific memory dumps

Electron seems to be crashing fairly frequently for some unkonwn reason,
and this is really the only diagnostic tool we have to potentially see why

Test Plan: manual

Reviewers: spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3629
2017-01-10 12:15:00 -08:00
Tomasz Finc e2302fe1c0 fix(windows-build) bruteforce transient failure per http://help.appveyor.com/discussions/problems/5822-transient-build-failures-with-node-dependency-node-gyp
Summary: Retry the build per AppVeyor forum recomendation

Test Plan: run a build

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3628
2017-01-10 11:54:49 -08:00
Halla Moore c9d106f802 fix(connection-settings): Update connection settings for fastmail.com
Summary: The previous settings didn't support all operations. Fixes T7450 and T7451.

Test Plan: tested locally

Reviewers: juan

Reviewed By: juan

Maniphest Tasks: T7450, T7451

Differential Revision: https://phab.nylas.com/D3626
2017-01-10 11:22:23 -08:00
Christine Spang 8680a78949 fix(email-frame): Use same fonts for plaintext emails as for HTML 2017-01-10 10:56:15 -08:00
Evan Morikawa aa9abe0a11 bump(k2) 2017-01-10 10:22:17 -08:00
Tomasz Finc f89afb93c5 fix(electron-packager): rolling back to proper latest version 2017-01-10 01:16:12 -08:00
Tomasz Finc 8c958ce3a5 bump(electron packager version) to fix ProductName/FileDescription issue phab #D3619 2017-01-09 19:05:20 -08:00
Halla Moore 29f70bdcf9 fix(Thread): Don't always set categoriesType to 'labels'
In `fromJSON()`, we were setting `categoriesType` to 'labels' if
the json had a truthy `labels` value. But an emtpy array is truthy,
and K2 always sends an array. This commit changes the conditional
to also ensure the array length is > 0.
2017-01-09 17:16:53 -08:00
Michael Pfister e039bdb488 Fix localhost urlroot for billing 2017-01-09 15:46:50 -08:00
Evan Morikawa 0bcda05832 bump(version): 0.5.5 2017-01-09 15:20:40 -08:00
Karim Hamidou f89e9aad5f [comment] Add a short comment explaining the difference between the
EdgehillAPI and LegacyEdgehillAPI objects.
2017-01-09 15:18:43 -08:00
Karim Hamidou 141dd39c13 Create a wrapper around legacy N1 APIs.
Conflicts:
	src/K2
2017-01-09 15:18:43 -08:00
Juan Tejada 5de89de9bd fix(send) correctly check for presence of headers 2017-01-09 15:17:34 -08:00
Juan Tejada 56463116cc bump submodule 2017-01-09 14:56:21 -08:00
Juan Tejada aadb1182c0 [local-sync] Make the sync loop interruptible
Summary:
This commit introduces interruptible sync operations. Now, the `SyncWorker`, `FetchFolderList` operation and `FetchMessagesInFolder` operation can be interrupted at several p

To achieve this, this commit adds an Interruptible abstraction, which is an object that can run functions and interrupt them at points marked by the function. For more info o

This commit also splits up the SyncWorker a little bit to make it smaller, byadding a SyncbackTaskWorker.

Test Plan: manual

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3613
2017-01-09 14:42:57 -08:00
Evan Morikawa a722e48e0b fix(error): add comments and logging for RequestEnsureOnceError send error 2017-01-09 14:08:23 -08:00
Halla Moore f97d0204ae fix(showErrorDialog): Use a different modal when 'Show Details' is clicked
Summary:
When the error details are too long, the error dialog went off screen and
could not be closed. The native dialog doesn't have any scroll support and
you can only pass it plain text, so this diff moves the error details into
a non-native modal with a scrollable textarea.

Fixes T7388

Test Plan: tested locally

Reviewers: jackie, juan

Reviewed By: juan

Maniphest Tasks: T7388

Differential Revision: https://phab.nylas.com/D3601
2017-01-09 10:51:13 -08:00
Halla Moore 08a0883d21 fix(spinner): Use a constant spinner when loading inline images
Summary:
We used to use a progress-based spinner, but we never get any progress
updates while downloading files, so the spinner was always at 0 and
never visible.

The submodule-commit is D3609, which adds support for inline images

Test Plan: tested locally

Reviewers: evan, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3610
2017-01-09 10:46:09 -08:00
Tomasz Finc 7484e6d4f8 Adding AppVeyor Slack notifications
Summary: So that we know the status of builds

Test Plan: Run the build. See it post to slack

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3607
2017-01-09 10:28:14 -08:00
Evan Morikawa 183cbc4388 fix(lint) 2017-01-09 09:57:14 -08:00
Evan Morikawa c0e2943c26 bump(version): 0.5.4 2017-01-09 09:46:31 -08:00
Evan Morikawa 07a480853d bump(k2) 2017-01-09 09:45:53 -08:00
Jackie Luo 9267457d84 fix(archive): Designate role for archive folder 2017-01-06 16:54:09 -08:00