Commit graph

3493 commits

Author SHA1 Message Date
Ben Gotow
ee0241038f feat(transforms): Replace regexp body transforms with DOM approach
Summary:
We originally didn't do this because creating a DOM tree was loading images.
Using range.createContextualFragment seems to do it without the tree ever
being attached.

Accompanying changes to src/pro are here:
https://phab.nylas.com/D3300
https://github.com/nylas/edgehill/compare/bengotow/draft-dom-transformations?expand=1

Also rename applyTransformsToDraft => applyTransformsForSending. Needed
a new name because the function signature has changed. AFAIK there are no
open source plugins using the old functions.

Test Plan: All specs updated

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3299
2016-09-23 16:36:08 -07:00
Juan Tejada
7a647204c9 fix(long-connection): close instead of end on network end event
NylasLongConnection.Status.Ended means that we can't open the
connection again. When we get a network level 'end' event, that doesn't
map to our meaning of `Ended`, so we should just close it instead
2016-09-23 11:35:44 -07:00
Ben Gotow
ee226113e9 es6(db): Query builder converted to ES6 2016-09-23 08:28:41 -07:00
Ben Gotow
d82fe350ae bump(electron): Update to 1.4.1 to fix intermittent Symbol() error 2016-09-23 08:22:13 -07:00
Ben Gotow
a3225e1b77 fix(tray): Flipped logic in displaying unread count 2016-09-22 13:31:22 -07:00
Juan Tejada
dd3cf1c50f fix(search/long-conn): Process results buffer before ending connection (#750)
NylasLongConnection ends the connection when the 'end' event is emitted
by the `request` object. When this happens, the global connection buffer is cleared.
Also, the global buffer holds the data we've received from the connection, and
whenever we receive new data, we accumulate it in the buffer and call a processBuffer function
which is throttled to 400ms.

Given that the buffer is global state, and processing occurs
asynchronously with a delay of up to 400ms, if the 'end' event on the connection is
fired before we actually get to process the buffer, we would clear it and show no results.

This scenario currently only affected search because if we accidentally
threw away some data when streaming deltas, we will get that data again
when we reopen the delta streaming connection.
2016-09-22 12:08:59 -07:00
Ben Gotow
109e1e1e19 es6(db): Query-related classes moved to ES2016 2016-09-22 00:07:23 -07:00
Evan Morikawa
179d3fd78a fix(task-queue): performLocal now operates serially 2016-09-21 16:50:41 -04:00
Ben Gotow
247d12e8de fix(specs): attribute conversion fixed bugs, broke specs 2016-09-21 11:56:54 -07:00
Ben Gotow
9972f2e421 fix(accounts): Restore account re-ordering 2016-09-21 11:23:38 -07:00
Ben Gotow
c19ea14da5 hack(channel-picker): Hide Salesforce for now 2016-09-21 10:45:04 -07:00
Ben Gotow
57f963ebc1 es6(db): Didn’t wait for NylasLint… 2016-09-21 09:45:11 -07:00
Ben Gotow
ae45b4b898 es6(db): Convert attribute class declarations to ES2016 2016-09-21 09:36:36 -07:00
Ben Gotow
18f7a8d463 bump(react): 15.3.x, warning removal, thread-sharing tweaks 2016-09-20 17:28:50 -07:00
Ben Gotow
0709b33c91 lint(*): Fix issue breaking the build 2016-09-20 16:34:30 -07:00
Ben Gotow
abdae1e795 fix(tooltips): Position relative to custom container for composer 2016-09-20 16:21:31 -07:00
Ben Gotow
c2a3dab187 fix(auth): Update autofill for Fastmail.fm 2016-09-20 15:52:36 -07:00
Ben Gotow
dd8b83bcf9 fix(thread-sharing): Fix unloading plugin 2016-09-20 15:48:39 -07:00
Ben Gotow
e33c10b61e fix(drag-drop): Restore support for thread dragging 2016-09-20 15:48:15 -07:00
Ben Gotow
4affeff58e fix(specs): Fix tests that were console.logging, bump coffee-react 2016-09-20 15:17:48 -07:00
Evan Morikawa
06ead70a6a Revert "fix(promise): Don't use deprecated Promise.longStackTraces()"
This reverts commit db0e025fb5.
2016-09-20 17:23:53 -04:00
Evan Morikawa
81b9eec674 fix(error): Let APIErrors have proper stack traces 2016-09-20 17:17:39 -04:00
Evan Morikawa
db0e025fb5 fix(promise): Don't use deprecated Promise.longStackTraces() 2016-09-20 17:16:59 -04:00
Ben Gotow
8368e9cba7 fix(specs): Display which tests are console.logging 2016-09-20 11:31:33 -07:00
Ben Gotow
9a13767742 fix(darkside): script/grunt lint requires explicit LESS includes 2016-09-20 10:26:44 -07:00
Jamie Wilson
cfa62e28e0 design tweaks, breaking css up into files, update readme (#2858) 2016-09-20 10:20:15 -07:00
Juan Tejada
6eea9d26f1 fix(long-connection): Throw error for reporting, instead of just logging 2016-09-19 19:36:32 -07:00
Juan Tejada
5f8bb9dffd feat(msg-list): Don't make participants mailto links, add context menu 2016-09-19 19:33:52 -07:00
Ben Gotow
657b8f38ef bump(version): 0.4.54 beta 2016-09-19 18:33:17 -07:00
Evan Morikawa
779a27c5b8 fix(lint): import ui-variables for linter 2016-09-19 21:07:43 -04:00
Ben Gotow
1734e588b6 fix(trial): Move”days left” bar to the sidebar, new design 2016-09-19 17:21:55 -07:00
Evan Morikawa
ebb5584e54 fix(util): Utils.deepClone properly clones dates 2016-09-19 20:14:41 -04:00
Ben Gotow
3d826fff41 fix(trial): Compute “days remaining” in timezone-aware way 2016-09-19 16:20:34 -07:00
Juan Tejada
0891ad855d fix(logging): Fix query logging: escape '%' properly 2016-09-19 12:49:46 -07:00
Ben Gotow
35c3a66642 feat(channels): Choose an update channel! Limited time only!
Summary: Just a small select input.

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3282
2016-09-19 12:41:16 -07:00
Jonathan Lai
ebb8d02c3d Fix typo: dependencesi > dependencies (#2838) 2016-09-19 10:12:34 -07:00
cem guresci
62d25ce840 Add link for Darkish theme (#2854) 2016-09-19 08:52:24 -07:00
Ben Gotow
e01a23e2c2 fix(tutorial): Minor tweaks, finalized styling 2016-09-16 17:34:22 -07:00
Juan Tejada
ec28214d5e fix(keymaps): Correctly map mod+z to undo, instead of just z (#2663) 2016-09-16 13:21:52 -07:00
Ben Gotow
a5723dbc5a bump(electron): Electron 1.4, node-sqlite 3.1.4+fts 2016-09-16 08:59:36 -07:00
Ben Gotow
b07c0377d2 fix(N1.sh): Allow path to working copy to have spaces 2016-09-16 08:38:52 -07:00
Juan Tejada
b1fb5d8b3a fix(thread-sharing): Timestamp range in seconds 2016-09-16 00:05:48 -07:00
Juan Tejada
ffe7fc57c0 fix(thread-sharing): Throw error when thread is /not/ found 2016-09-16 00:00:02 -07:00
Juan Tejada
ff7ea9da7d fix(mail-merge): Correctly handle empty column names 2016-09-15 18:25:57 -07:00
Juan Tejada
34996ec597 🎨(thread-sharing): Prefer url and querystring modules to parse url 2016-09-15 18:10:07 -07:00
Juan Tejada
bb2a69ec32 fix(thread-sharing): Find-thread, incr timestamp delta to 1min in ms 2016-09-15 16:43:30 -07:00
Juan Tejada
36f4801f06 bump(build) 2016-09-14 18:33:50 -07:00
Juan Tejada
5e10cde7e3 fix(thread-sharing): Update popover style 2016-09-14 18:13:35 -07:00
Juan Tejada
48aeaf94eb fix(changelog): Update changelog to reflect latest puublished release 2016-09-14 14:34:01 -07:00
Juan Tejada
0520a94dff bump(version): 0.4.53 and update Changelog 2016-09-14 12:25:00 -07:00