Commit graph

3595 commits

Author SHA1 Message Date
Halla Moore
2b63e343ae fix(spellchecker): Use cross-platform misspellings, fix lint error 2016-10-12 17:07:22 -07:00
Ben Gotow
dc84d9af55 fix(readme): More Win32-specific instructions 2016-10-12 16:37:04 -07:00
Ben Gotow
180b032277 fix(readme): Improve Win32 build instructions 2016-10-12 16:30:03 -07:00
Ben Gotow
e74217be3c bump(version): 0.4.57
(0.4.58 was accidentally in prev commit)
2016-10-12 16:06:40 -07:00
Ben Gotow
0888c5cdd0 feat(win32): Allow N1 to become the system-wide mailto: handler
Summary: This will address the longstanding concern in #417

Test Plan: No new tests

Reviewers: juan, evan

Reviewed By: juan, evan

Maniphest Tasks: T7065

Differential Revision: https://phab.nylas.com/D3322
2016-10-12 16:05:36 -07:00
Evan Morikawa
038c2bb11f fix(analytics): Add pgp encryption events
Email Encrypted
Email Encryption Errored
Email Decrypted
Email Decryption Errored
2016-10-12 17:29:58 -04:00
Halla Moore
267555a6db feat(popout-threads) Add functionality to open threads in popout windows
Summary:
Threads can now be opened in separate windows. This can be done via the popout
icon next to the print icon, or by double-clicking the thread when in double-
pane mode. Note that the single-click action is still fired, which is why
double-clicking does not work in single-pane mode. The popout icon changes to a
pop-in icon while in the popout window, to allow users to collapse it back into
the main window.

Test Plan: Tested locally

Reviewers: evan, juan

Reviewed By: juan

Subscribers: sdw

Differential Revision: https://phab.nylas.com/D3332
2016-10-12 13:55:11 -07:00
Ben Gotow
c598e31f1e fix(win32): Still need custom sqlite3 build cmd for win32 😥
This also includes a bump of the better-sqlite3 module to support compilation on ia32.
2016-10-12 12:30:23 -07:00
Jonathan Boiser
2eab187da0 fix(specs) convert nylas-protocol-handler-spec to ES6 (#2886) 2016-10-12 11:38:30 -07:00
Evan Morikawa
78b22b1e63 fix(spec): remove unused spec helpers 2016-10-12 11:04:38 -04:00
Evan Morikawa
61ac77e029 fix(jquery): remove jquery 2016-10-12 11:04:38 -04:00
Ben Gotow
124edf25ba Update Windows.md 2016-10-11 18:35:00 -07:00
Halla Moore
1619126688 Switch spellcheck libaries
Summary:
Switch to electron-spellchecker, which will allow N1 to
spellcheck more intelligently across languages. It auto-
detects languages and downloads dictionaries on the fly.

Test Plan: Specs, manual testing

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3319
2016-10-11 14:00:50 -07:00
Ben Gotow
739ca2b053 fix(reporter): Handle errors cleaning log files (Sentry #6887) 2016-10-10 13:44:41 -07:00
Ben Gotow
3c5efaf55e bump(sqlite3): Fix issue with CI build / bindings location 2016-10-07 17:59:10 -07:00
Ben Gotow
c5ff2f640b fix(onboarding): Fire event when user selects account type 2016-10-07 10:16:20 -07:00
Luke Schlangen
a8865eb2a2 Fixing broken screenshot link (#2911)
Replacing with new screenshot
2016-10-06 18:48:12 -07:00
Ben Gotow
0eef80e5d4 fix(db): Switch to better-sqlite3, resolves offline issue
Summary:
Better-SQLite3 is a fork of node-sqlite3 which includes a re-written JavaScript interface. It’s more synchronous, but better reflects what is actually sync vs. async in sqlite’s C++ API. (Not much is really async under the hood.) This diff uses a branch of better-sqlite3 I’ve edited to support Node 6.

In my tests, this branch spends 3.24x less time executing queries than `master`. (Measured time spent in calls to `this._db[run|all|get]` over the first 5000 queries of initial sync. It also increased the performance of starring a thread in the thread list by 28%.

This library also allows us to use a prepared statement cache, which is great because we often make the same queries repeatedly as query subscriptions refresh the UI and deltas are dumped into the app. The old interface didn’t expose statements (cached query plans) to JS.

better-sqlite3 advertises that it uses the JS garbage collector instead of lower level C++ memory management. I tested syncing my entire mailbox to verify that memory usage is not significantly different on this branch after a lot of queries have been made.

Finally, it looks like we can finally stop building sqlite3 from scratch in `script/bootstrap`. This library builds properly with `apm install`. 🎉

We might want to change the DatabaseStore and DatabaseTransaction classes more, now that it’s possible to execute queries synchronously. It could make things cleaner and get us out of promise-hell in a few places. In this diff I tried to change as little as possible.

Test Plan: Run tests, everything still works

Reviewers: juan, jackie

Reviewed By: juan, jackie

Differential Revision: https://phab.nylas.com/D3315
2016-10-06 17:01:22 -07:00
Evan Morikawa
f2c1ac3289 refator(notification): move base notification to nylas-component-kit 2016-10-06 10:53:22 -07:00
Ben Gotow
0bb26bce79 fix(perspectives): Restore when only account cannot be found (Sentry 59061)
https://sentry.nylas.com/sentry/edgehill/group/59061/
2016-10-04 14:15:52 -07:00
Ben Gotow
a232f6fc17 fix(templates): Handle error when scanning dir (Sentry 44351)
https://sentry.nylas.com/sentry/edgehill/group/44351/
2016-10-04 14:15:52 -07:00
Ben Gotow
8a3efdd6f7 fix(phising): Handle scenarios where input is malformed (Sentry 51642)
https://sentry.nylas.com/sentry/edgehill/group/51642/
2016-10-04 14:15:52 -07:00
Juan Tejada
aaca39f9c7 fix(lint) 2016-10-04 12:06:43 -07:00
Juan Tejada
b1c6a9996f bump(submodule) 2016-10-04 11:17:57 -07:00
Halla Moore
dcb84db3e3 feat(sidebar-notifs) Create sidebar notifications to replace old bars
Summary:
Move the old bar notifications to the sidebar, and only display one notification
at a time using a priority-rating system. Remove all of the old notification
infrastructure.

Test Plan: Added specs, also reproduced notifications locally

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3310
2016-10-04 08:08:23 -07:00
Ben Gotow
dda7c50adf fix(files): When download mode is “manual” prompt about inline attachments
Summary:
When you have your "Download attachments for new mail" setting set
to "manually", inline images always appear broken with no explanation.

This patch listens for the image load to fail and displays a button which
queues the fetchFile task on click. This seemed like the best approach because
it doesn't slow down the loading of the message with more fstats / lookups.
(Seeing if the file has already been downloaded is an async operation)

Test Plan: No specs atm

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3313
2016-10-03 11:22:44 -07:00
Juan Tejada
b1dddd1541 fix(tools): Make arc lint great again
Add proper arc config for linting ES6 files with eslint
2016-10-02 10:56:11 -07:00
Juan Tejada
dafffa87d5 🔪 Last remaining traces of coffeescript in submodule! 2016-10-02 10:55:41 -07:00
Evan Morikawa
8fd6fe27ca fix(composer): tokenizing text field trigger logic moved to composer 2016-10-02 12:05:31 -04:00
Evan Morikawa
f7c2703683 fix(composer): fix margin when editing contact chip 2016-10-02 12:05:25 -04:00
Evan Morikawa
5ea9d110cb fix(composer): can shift-tab more places
Allow shift-tab to go back to subject from anywhere except in front of a
tab character
2016-10-02 12:05:14 -04:00
Evan Morikawa
376158c9b9 fix(composer): enable click regions on margins of composer
Change padding, margins, and borders to allow you to click on the left
margin of to, cc, bcc, from, subject fields as well as the composer
margins both above, left, and to the right of the composer.

Ensured attachments and other assets show up in correct spots

Ensure subject looks correct for mail merge
2016-10-02 12:04:55 -04:00
Juan Tejada
a47eb50705 fix(specs): Activity List 2016-10-01 00:25:20 -07:00
Juan Tejada
c1396c877a fix+🎨(notifs): Cleanup, handle nonexistent thread when opening notification
Notifications now check to see the thread they are supposed to open
exists.

Also, clean up FocusedContentStore._onFocus so that it doesn't have the side
effect of dispatching another action and messay logic.
Instead, added Actions.ensureCategoryFocused, to focus any category, and which
should be used separately from focusing content (notifications now use
this action for "opening" the thread)
Also, convert FocusedPerspectiveStore to ES6
2016-10-01 00:08:19 -07:00
Juan Tejada
93281f859f 💄(outline-view): Add title attr for tooltips 2016-09-30 21:01:30 -07:00
Ben Gotow
1b8c41d057 es6(db): Move DatabaseStore to ES6 2016-09-30 15:24:34 -07:00
Ben Gotow
a2b9e22157 fix(dev-mode): Don’t save to config.json, use flag instead
Turns out even the built, packaged version of the app can be restarted into dev mode by adding `—dev` to argv and using the new relaunch API.
2016-09-30 14:37:03 -07:00
Juan Tejada
7d7700edb7 fix(share-thread): Closed when blurred when blurred or new thread selected 2016-09-30 13:48:12 -07:00
Juan Tejada
7acc8dc995 fix(tutorial-tips): Recompute pos when theme changes 2016-09-30 13:46:17 -07:00
Ben Gotow
2e66cf9ef6 fix(specs): Minor spec fixes 2016-09-30 11:58:57 -07:00
Ben Gotow
31bf2e2ce7 fix(spellcheck): Do not spellcheck <code>, <a>, <pre> tags
This fixes #2877. The templates feature becomes broken when variable names contain misspellings.
2016-09-30 11:53:52 -07:00
Ben Gotow
325ce1b12e fix(participants): When copying, include space #2871 2016-09-30 10:48:34 -07:00
Juan Tejada
805e665b6e fix(tutorial-tips): Don't display when component is not visible 2016-09-29 20:31:52 -07:00
Juan Tejada
796e7e1a14 💄(share-thread): Fix positioning of share thread button 2016-09-29 20:30:03 -07:00
Ben Gotow
c222fa0c39 fix(data-source): Wait until the next cycle to cleanup
Fixes a crash when switching to the thread list from the draft list, where there are very briefly zero observers.
2016-09-29 13:42:52 -07:00
Ben Gotow
1e9d1dff07 bump(verison): 0.4.56, more items in changelog 2016-09-29 12:24:15 -07:00
Halla Moore
02eaf34c6c feat(self-hosting) Add onboarding page about self-hosting plugin restrictions 2016-09-29 12:12:05 -07:00
Halla Moore
c2b9b3070a fix(self-hosting) Don't load packages that don't support self-hosting 2016-09-29 12:12:05 -07:00
Juan Tejada
4e3332386a fix(composer): When pasting links that are tracked, extract actual link 2016-09-29 11:30:19 -07:00
Ben Gotow
7997e70a84 feat(bios): Linkify twitter hashtags and mentions in bios 2016-09-29 11:25:08 -07:00