Commit graph

4134 commits

Author SHA1 Message Date
Evan Morikawa 9df65c2d81 bump(pro): update pro submodule pointer 2016-11-22 14:38:39 -08:00
Evan Morikawa f6d32e60f7 feat(k2): nylas api only uses localhost 2016-11-22 10:13:57 -08:00
Evan Morikawa 5a63b377be feat(k2): add k2 as valid env 2016-11-21 18:18:28 -08:00
Ben Gotow d4b7f3ee15 bump(version): 0.4.400 2016-11-21 16:38:29 -08:00
Ben Gotow 673750f095 fix(mailto): Restore AtomApplication breaking Mailto 2016-11-21 16:36:41 -08:00
Ben Gotow 9faaaffb9e fix(*): K2 inside N1, build and ship in src/K2 2016-11-21 16:06:03 -08:00
Halla Moore f4357ce166 change(API) Prevent N1 from sending "view" parameters in some API requests
- Threads: N1 always asks for the 'expanded' view, so K2 just always returns
the expanded view. N1 no longer needs to specify this.
- Messages: N1 only needed a 'count' view to display the initial sync progress
We've removed this progress bar and the corresponding request.
2016-11-21 15:16:04 -08:00
Evan Morikawa 7bfa07139c fix(travis): update travis task for spawn signature 2016-11-21 14:31:55 -08:00
Ben Gotow 370d2b40aa fix(build): reset appveyor cache on package change 2016-11-21 13:57:52 -08:00
Juan Tejada a2a897b369 fix(cal): Disable event search for now 2016-11-21 13:50:09 -08:00
Juan Tejada 162fa87c0e fix(lint) Fix lint error on publish task 2016-11-21 13:50:08 -08:00
Ben Gotow 1951b57bbc fix(bootstrap): Build deps for current arch 2016-11-21 13:49:05 -08:00
Ben Gotow ecabe81a2c fix(db): Use SIGTERM instead of signal 1 2016-11-21 13:25:08 -08:00
Ben Gotow e38d7b10ea fix(cache): Support non-inline source maps 2016-11-21 12:35:41 -08:00
Juan Tejada ccab6dea6c Revert "Link K2 into N1 as a private submodule"
This reverts commit 1fa5690062.
2016-11-21 12:07:15 -08:00
Ben Gotow 9cf62f2859 Bump src/pro pointer 2016-11-21 12:05:17 -08:00
Juan Tejada fb1677b032 fix(build) Fix publish task for linux 2016-11-21 12:03:46 -08:00
Evan Morikawa c70902875e fix(build): add setup travis keychain task 2016-11-21 12:02:51 -08:00
Ben Gotow 1fa5690062 Link K2 into N1 as a private submodule 2016-11-21 11:54:27 -08:00
Juan Tejada 732f15f334 fix(cal) Make sure we center the current time on screen when opening cal 2016-11-19 14:22:07 -08:00
Juan Tejada 6e331596eb fix(scheduler): Make sure composer is focused to insert event card 2016-11-19 14:21:36 -08:00
Juan Tejada c38246a745 fix(cal): Correctly capture times when selecting proposed times for meeting
Adding a scroll region messed up selecting times for meetings. Make sure
that we select the correct container off which to base the time
calculation
2016-11-19 14:08:01 -08:00
Evan Morikawa dc0981f53c fix(build): update the nylsa-Info.plist to use electron-builder 2016-11-18 16:33:11 -08:00
Juan Tejada 08b9c2f74b fix(lint) 2016-11-18 16:26:09 -08:00
Jackie Luo 839be702ce fix(theme-picker): Add z-index to close button 2016-11-18 15:59:45 -08:00
Juan Tejada cf321258ed 💄(md) Fix markdown styles 2016-11-18 15:38:26 -08:00
Juan Tejada 63e4f05d15 fix(win-build) Run deploy_script as cmd 2016-11-18 12:24:45 -08:00
Evan Morikawa 02338e6541 fix(SFDC): fix deactivate 2016-11-18 12:13:40 -08:00
Evan Morikawa 6de9b82b7f fix(SFDC): refactor lib main 2016-11-18 12:10:09 -08:00
Juan Tejada 85fbfae344 fix(build): Add proper error handling to publish task 2016-11-18 12:03:24 -08:00
Juan Tejada ee254b1697 fix(build) Actually fix build 2016-11-18 11:58:09 -08:00
Juan Tejada 4d4e040561 fix(build) Fix output directory for builds
- We were including the root output dir twice in the file path
2016-11-18 11:43:41 -08:00
Evan Morikawa 02c3b78d94 fix(lint): fix linter import error 2016-11-18 11:13:21 -08:00
Juan Tejada ebfe24a648 bump(version): 0.4.205 2016-11-18 11:02:07 -08:00
Juan Tejada f47194fee1 fix(win-build): Change to 'cmd' for build script
This should prevent it from failing on npm install warnings
2016-11-18 11:01:21 -08:00
Evan Morikawa 3671fac440 fix(db): fix error with modelify not finding markNotBackgroundable 2016-11-17 16:02:42 -08:00
Evan Morikawa 9ee8eae633 fix(search): allow custom search result elements 2016-11-17 16:01:55 -08:00
Juan Tejada 2f116b8181 fix(specs) Fix remaining tests 2016-11-17 15:37:44 -08:00
Juan Tejada 1859147f9c fix(cal): Fix changing weeks on weekview
- Fix specs too
2016-11-17 14:51:44 -08:00
Juan Tejada 91f74f7482 fix(spellchecker) Fix spellchecker specs 2016-11-17 14:51:24 -08:00
Juan Tejada 710dc1a4c4 fix(db-transaction): Make sure we mark as not bg-able query objects
When forwarding query operations to the database (e.g. find, findAll)
from the transaction,
we didn't check if those methods actually returned a ModelQuery object
(e.g. modelify returns a regular Promise), so this would break in cases
where it wasn't defined (`markNotBackgroundable` would be undefined)

This commit fixes that and fixes related specs
2016-11-17 14:03:06 -08:00
Evan Morikawa 06e0b71cd9 fix(analytics): update analytics in SFDC 2016-11-17 11:00:44 -08:00
Juan Tejada 5c7518e958 fix(sidebar): Correctly show all accounts in sidebar during initial sync
Ref #1587
2016-11-16 22:48:14 -08:00
Evan Morikawa 69aaf27709 fix(input): error in tokenizing text field and queue debug info 2016-11-16 18:45:36 -08:00
Ben Gotow d53edbffea feat(db): background flag to exec queries in a single forked node process
Summary:
This is an initial attempt to fix an issue we’ve had with long-running queries interrupting the N1 user experience. Node-sqlite3 used an async approach that ran sqlite’s synchronous query methods on a worker thread, but doing that involves copying memory more and node-sqlite3 was just generally slow.

However, moving to better-sqlite3 made /everything/ synchronous. Even with the right indexes some of our queries just suck.

This diff adds `DatabaseStore.findAll(…).background().then()` which allows you to mark a query as “unimportant”. These queries are run in a separate process which is forked from the window and can take an extra 10-50ms to complete. That said, they’re totally async and don’t jam up the app.

I’m personally a fan of the flag and less a fan of the implementation. The “agent” process can handle many queries in it’s lifetime if they keep coming and quits after 10 seconds of inactivity. (Both to save memory and to avoid scenarios where it might end up oprhaned and running forever). While running it uses about 40MB of RAM, which is a bit on the crazy side.

Test Plan: No new tests yet

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3420
2016-11-16 17:47:24 -08:00
Ben Gotow 2f65979404 feat(calendar): Add line showing ‘now’
Summary: Just a small line that shows during the current week to highlight the current day and time.

Test Plan: No tests atm

Reviewers: evan, juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3435
2016-11-16 17:08:56 -08:00
Evan Morikawa 9cdf261588 feat(menu): new hideWhenDisabled flag for custom submenu items 2016-11-16 16:05:48 -08:00
Evan Morikawa 08d9bfc334 feat(plugin): don't show isHiddenOnPluginsPage 2016-11-16 16:00:56 -08:00
Evan Morikawa 3c0c0cde67 feat(menu): completely remove top-level menus from optional plugins 2016-11-16 15:53:16 -08:00
Juan Tejada d59d292d2f fix(spellcheck): Minor perf improvements
- When applyign spellcheck mutations to the dom, toggle display property
on the contenteditable to reduce reflows/repaints while mutating
- Debounce provideTextHint to reduce work on each keystroke
- Minor speedup checking existence of keys in spellchecker internal maps
2016-11-16 15:18:11 -08:00