Commit graph

3636 commits

Author SHA1 Message Date
Halla Moore 1c675935a7 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 f409160273 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 d09839f1db fix(specs) convert nylas-protocol-handler-spec to ES6 (#2886) 2016-10-12 11:38:30 -07:00
Evan Morikawa 7d76e95616 fix(spec): remove unused spec helpers 2016-10-12 11:04:38 -04:00
Evan Morikawa 6d0407acbc fix(jquery): remove jquery 2016-10-12 11:04:38 -04:00
Ben Gotow bc2a933784 Update Windows.md 2016-10-11 18:35:00 -07:00
Halla Moore 873c4be2da 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 58fc56592e fix(reporter): Handle errors cleaning log files (Sentry #6887) 2016-10-10 13:44:41 -07:00
Ben Gotow 2d7882bade bump(sqlite3): Fix issue with CI build / bindings location 2016-10-07 17:59:10 -07:00
Ben Gotow 21b93d2173 fix(onboarding): Fire event when user selects account type 2016-10-07 10:16:20 -07:00
Luke Schlangen f53cc3bde0 Fixing broken screenshot link (#2911)
Replacing with new screenshot
2016-10-06 18:48:12 -07:00
Ben Gotow 8f17b42074 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 e48b81d8de refator(notification): move base notification to nylas-component-kit 2016-10-06 10:53:22 -07:00
Ben Gotow 951c0a333c 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 e57fd2c678 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 4160757c9e 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 de9e627924 fix(lint) 2016-10-04 12:06:43 -07:00
Juan Tejada b26a5b252c bump(submodule) 2016-10-04 11:17:57 -07:00
Halla Moore 9e3c3c14cd 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 aa7ef91b0b 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 c385867ddd 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 56141fb979 🔪 Last remaining traces of coffeescript in submodule! 2016-10-02 10:55:41 -07:00
Evan Morikawa b540bbb601 fix(composer): tokenizing text field trigger logic moved to composer 2016-10-02 12:05:31 -04:00
Evan Morikawa 83f455f031 fix(composer): fix margin when editing contact chip 2016-10-02 12:05:25 -04:00
Evan Morikawa 80d2dbe10e 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 8e3b436ba3 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 506a04ca22 fix(specs): Activity List 2016-10-01 00:25:20 -07:00
Juan Tejada 3d69ebbabb 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 5473c280be 💄(outline-view): Add title attr for tooltips 2016-09-30 21:01:30 -07:00
Ben Gotow 450afedaec es6(db): Move DatabaseStore to ES6 2016-09-30 15:24:34 -07:00
Ben Gotow 4eeb808976 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 08128e3dc6 fix(share-thread): Closed when blurred when blurred or new thread selected 2016-09-30 13:48:12 -07:00
Juan Tejada 6729ade1cc fix(tutorial-tips): Recompute pos when theme changes 2016-09-30 13:46:17 -07:00
Ben Gotow 0af15efae4 fix(specs): Minor spec fixes 2016-09-30 11:58:57 -07:00
Ben Gotow 7236b9e47f 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 2dc779c5be fix(participants): When copying, include space #2871 2016-09-30 10:48:34 -07:00
Juan Tejada c4767e488f fix(tutorial-tips): Don't display when component is not visible 2016-09-29 20:31:52 -07:00
Juan Tejada d3475579d4 💄(share-thread): Fix positioning of share thread button 2016-09-29 20:30:03 -07:00
Ben Gotow 9f0a2c31a0 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 047b4c03fe bump(verison): 0.4.56, more items in changelog 2016-09-29 12:24:15 -07:00
Halla Moore 3264175b54 feat(self-hosting) Add onboarding page about self-hosting plugin restrictions 2016-09-29 12:12:05 -07:00
Halla Moore 5accaa0e5f fix(self-hosting) Don't load packages that don't support self-hosting 2016-09-29 12:12:05 -07:00
Juan Tejada a28fc70332 fix(composer): When pasting links that are tracked, extract actual link 2016-09-29 11:30:19 -07:00
Ben Gotow 56285ad6c4 feat(bios): Linkify twitter hashtags and mentions in bios 2016-09-29 11:25:08 -07:00
Ben Gotow 88258cced7 rm(ship-logs): Remove unused log shipping, prevents many-processes bug on win32 2016-09-29 10:38:29 -07:00
Evan Morikawa 87b78e3775 fix(linter): fix linter error 2016-09-29 10:05:11 -05:00
Evan Morikawa 68b3ab4225 fix(spec): remove unnecessary messages & prevent extra hot window 2016-09-29 09:52:51 -05:00
Ben Gotow 0e98736f49 fix(composer): Wrap composer instead of allowing overflow-x 2016-09-28 17:39:44 -07:00
Ben Gotow 9ddb713a1b fix(window-state): Per electron#7278, save state in beforeunload
Related:
https://github.com/electron/electron/issues/7278
https://github.com/atom/atom/pull/3223/files

As of Chromium 36, unload is async and @zcbenz does not think it happens reliabily in Electron. Move saving of window state to beforeunload, following suit with Atom.
2016-09-28 17:39:44 -07:00
Juan Tejada f62caa9c57 🎨(activity-list): punctuation 2016-09-28 17:22:50 -07:00