Commit graph

3828 commits

Author SHA1 Message Date
Ben Gotow 69d3571d20 fix(calendar): CSS layout fix for Chromium 53 2016-09-28 12:14:50 -07:00
Ben Gotow 6df14d5553 fix(composer): Dedupe registered key bindings to avoid double undo in composer 2016-09-28 12:03:58 -07:00
Ben Gotow 1e7dfea7d7 fix(db): Messages with empty bodies always showing loading spinner due to ‘’ == null 2016-09-28 11:42:18 -07:00
Ben Gotow 2739cc822e fix(identity): Always refresh accounts after identity
This fixes an issue where changing your Nylas ID didn’t refresh your accounts, and N1 would still think they were invalid.
2016-09-28 11:29:26 -07:00
Ben Gotow 60d0d94b1b fix(react): React refuses to add partition attr to webview 2016-09-28 11:29:26 -07:00
Juan Tejada 4f8ad70d60 fix(search): Update local search syntax to include more results
Add prefix search. Previously, if searching for a thread with a specific
subject, you had to type the entire subject. Searching for just a prefix
wouldn't return the result.
This should not affect any of the current search results, only add more results
2016-09-28 11:06:10 -07:00
Jackie Luo e10a0668ed fix(lint): Change variable to const 2016-09-27 23:39:10 -07:00
Ben Gotow 275786cdfb fix(drafts): Sanitize quoted text to avoid overlaid component issues [!!] 2016-09-27 17:45:51 -07:00
Ben Gotow 109fb21dc7 fix(thread-list): Use interaction handlers, don’t update selection directly 2016-09-27 16:31:28 -07:00
Juan Tejada 3298f6a36b fix(warnings): Correctly remove all unknown props warnings 2016-09-27 15:06:23 -07:00
Juan Tejada 086c84197c fix(overlaid-comps): Check if supports preview only after we know exists 2016-09-27 15:06:13 -07:00
Ben Gotow 38ba6ea015 fix(db): Add an index on Thread.client_id for modelify 2016-09-27 15:01:28 -07:00
Ben Gotow 3cfd16fc1b fix(composer): No need for overlaid z-index: 10, appearing over menus 2016-09-27 14:40:58 -07:00
Ben Gotow a0ab700ca6 💄(mail-merge): Fix alignment and height of tokens 2016-09-27 14:36:58 -07:00
Ben Gotow 8fada3b9da fix(sidebar): Command-click + href to open in background
Global window event handler should work when clicking elements /inside/ of an a tag with an href.
2016-09-27 14:36:58 -07:00
Ben Gotow 53fcbfc00e 💄(sidebar): Github repos should not wrap 2016-09-27 14:36:58 -07:00
Juan Tejada 41a3573e2a fix(mail-merge): Reduce max number of emails to 250
Almost always, you will get rate limited trying to send 500 emails.
Reduce to 250 to make it more reasonable
2016-09-27 14:22:50 -07:00
Juan Tejada cef3060623 fix(tasks): Report slow performLocal only when it takes > 500ms 2016-09-27 14:22:50 -07:00
Jackie Luo 42274b656c fix(install-location): Update language and remove buggy regex 2016-09-27 10:35:50 -07:00
Juan Tejada 1d941800c3 fix(whitespace) 2016-09-27 10:32:52 -07:00
Juan Tejada 1e8d8c7970 update: Update CHANGELOG for v0.4.55 2016-09-27 09:52:11 -07:00
Juan Tejada 5740d29eb5 bump(version): 0.4.55 2016-09-27 08:48:57 -07:00
Juan Tejada 6cca1f596a fix(tasks): Add instrumentation to Task's performLocal
A slow performLocal may be one of the causes of #2725
2016-09-27 08:46:35 -07:00
Ben Gotow 91605c7a95 es6(db): DatabaseTransaction & Query moved to ES6 2016-09-26 23:46:46 -07:00
Juan Tejada 82b70267f5 fix(specs): make sure stub resolves (bump submodule) 2016-09-26 17:22:56 -07:00
Juan Tejada fc87ae5ef1 fix(lint) 2016-09-26 17:22:08 -07:00
Evan Morikawa d255cfbd5c Revert "fix(task-queue): performLocal now operates serially"
This reverts commit 5274ce3543.
2016-09-26 17:04:23 -07:00
Ben Gotow 039d9bea61 feat(inline-images): Drag & drop or paste inline images
Summary: Initial support for inline images. Tests still forthcoming!

Test Plan: WIP

Reviewers: mark, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3295
2016-09-26 17:01:19 -07:00
Mark Hahnenberg dde4738363 Fix broken test
Summary:
Fixes a test that was broken due to my unfamiliarity with
CoffeeScript :-/

Test Plan: Tests

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3302
2016-09-26 16:49:22 -07:00
Juan Tejada 6051512276 fix(contact-sidebar): Correctly update selected contact
Sometimes, when selecting a contact (with name, email) inside a thread,
the dropdown (`<select>`) did not correctly reflect the selected
contact.

This was because when focusing a contact, the FocusedContactStore
queried that contact from the database just by email, and the contact
retured from the database became the focused one. However, sometimes the
returned contact might have the same email but different email, and
given that the `<select>` component is keyed by both name,email, it
couldn't find the appropriate <option> to render, so it could not update
to reflect the newly selected contact

Now, the FocusedContactStore queries by email and name to prevent this
2016-09-26 16:34:29 -07:00
Mark Hahnenberg 0319528988 Add jitter to BackoffTimer
Summary:
This should help us avoid the thundering herd problem if we have some
kind of API outage affecting a wide number of clients.

Test Plan: Tests

Reviewers: bengotow

Reviewed By: bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3297
2016-09-26 13:36:49 -07:00
Juan Tejada 6e7495fe91 fix(mail-merge): Add test coverage 2016-09-26 11:20:10 -07:00
Ben Gotow d95b68f463 fix(help): Better help URL 2016-09-26 11:16:49 -07:00
Evan Morikawa 9b3e043e1c fix(mail-merge): fix applyExtensionTransformsToDraft rename 2016-09-26 10:56:21 -04:00
Evan Morikawa 641560c460 fix(attribute): fix es6 conversion error 2016-09-25 16:27:10 -04:00
Juan Tejada fd1ed0cc48 fix(warnings): Fix warnings for react unkown dom prop
When using the pattern `{...extraProps}` to transfer props in the render method,
if rendering a native dom element, react will issue a new warning if we
end up passing invalid dom props:
https://facebook.github.io/react/warnings/unknown-prop.html

This adds a helper library to exclude invalid fom props instead of
manually excluding props inside each render method
2016-09-24 12:31:25 -07:00
Ben Gotow 0edef2f42f fix(tooltips): Defer display of background, ensure dot inside window 2016-09-23 17:01:05 -07:00
Ben Gotow 7bfd43b359 bump(submodule): Replace regexp body transforms with DOM approach 2016-09-23 16:38:39 -07:00
Ben Gotow 18d294c42f 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 f50afa5c77 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 fbe42a8f8a es6(db): Query builder converted to ES6 2016-09-23 08:28:41 -07:00
Ben Gotow 6b8ae46d0c bump(electron): Update to 1.4.1 to fix intermittent Symbol() error 2016-09-23 08:22:13 -07:00
Ben Gotow e1cdda6460 fix(tray): Flipped logic in displaying unread count 2016-09-22 13:31:22 -07:00
Juan Tejada 3dccb374b3 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 00787c06c7 es6(db): Query-related classes moved to ES2016 2016-09-22 00:07:23 -07:00
Evan Morikawa 5274ce3543 fix(task-queue): performLocal now operates serially 2016-09-21 16:50:41 -04:00
Ben Gotow ec5092c2f5 fix(specs): attribute conversion fixed bugs, broke specs 2016-09-21 11:56:54 -07:00
Ben Gotow c6d8bde6fd fix(accounts): Restore account re-ordering 2016-09-21 11:23:38 -07:00
Ben Gotow 7d7edb65bb hack(channel-picker): Hide Salesforce for now 2016-09-21 10:45:04 -07:00
Ben Gotow ef306fa52f es6(db): Didn’t wait for NylasLint… 2016-09-21 09:45:11 -07:00