Commit graph

1957 commits

Author SHA1 Message Date
Evan Morikawa b102b39037 fix(spec): fix DST related spec failure & linter error 2016-11-05 11:56:23 -07:00
Evan Morikawa 02cfbd7878 fix(plugin): use config since activatePackage doesn't persist 2016-11-05 11:44:19 -07:00
Evan Morikawa ce05e94aeb fix(unload): safely unload the task queue on quit 2016-11-05 11:37:11 -07:00
Evan Morikawa 9ec3daff0a feat(plugin): activate & deactivate plugins via a nylas: url 2016-11-05 11:23:14 -07:00
Evan Morikawa dbc81a87a4 feat(quote): improved quoted text detection for trailing signatures 2016-11-04 20:45:25 -07:00
Evan Morikawa c0b28456a9 fix(quote): properly detect "wrote: " strings with trailing space 2016-11-04 18:39:37 -07:00
Evan Morikawa 4a40074cd1 convert(es6): quoted-html-transformer to es6 2016-11-04 18:28:11 -07:00
Jackie Luo 3dbd9b7278 feat(notifications): Allow notifications to be dismissable 2016-11-04 16:30:28 -07:00
Juan Tejada db84da1eba feat(requests/send): Add mechanism to ensure that a req be sent and succeeds only once
Summary:
This commit adds a new option to NylasAPIRequest api to allow users to
specify requests that should only ever be executed once, once they
succeed. This is done via saving a hash of some of the requests
properties to the filesystem.

Specifically regarding send, this ensures that a draft never be sent
twice from N1. We ran into this case once when the final state of the TaskQueue
wasn't saved to the database before the N1 app closed. In this case, a
PerformSendActionTask that was supposed to be dequeued, was restored to
the task queue again when N1 restarted, causing the draft to be sent
twice.

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3407
2016-11-04 15:44:30 -07:00
Juan Tejada 7ac7fa58ec fix(task-queue): Save the task queue before closing the window
Summary:
Save the final state of the TaskQueue to the database before window
gets unloaded

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3408
2016-11-04 15:30:49 -07:00
Evan Morikawa 5b1ee293dc fix(lint): fix linter errors 2016-11-04 15:07:14 -07:00
Evan Morikawa 502e995e60 bump(submodule): update UI & SFDC 2016-11-04 15:00:28 -07:00
Juan Tejada 605c9d9a4e 💄(reminders) Add title to reminders header 2016-11-04 14:45:45 -07:00
Evan Morikawa 596777a427 bump(submodule): update SFDC 2016-11-04 11:22:51 -07:00
Evan Morikawa c3cd67257a fix(form): support cmd+enter and not optimistic submission on all enter 2016-11-04 11:12:51 -07:00
Ben Gotow b1faf6ef22 fix(composer): Check for empty as well as original body 2016-11-04 10:58:34 -07:00
Ben Gotow 403d2096b8 fix(gh-sidebar): Don’t customize <h2> styling 2016-11-04 10:58:34 -07:00
Evan Morikawa 37eeb67033 fix(form): Have submit button say "update" when necessary 2016-11-04 09:28:55 -07:00
Juan Tejada 91199b673c fix(attachments): Fix several bugs in attachment components
- Fix several styling issues
- Adjust the generated size of the thumbnail preview to fill all of the
available space
2016-11-03 17:55:40 -07:00
Ben Gotow 52731f947b fix(decorators): Carry container config through decorators 2016-11-03 17:54:47 -07:00
Evan Morikawa aeece86cbe fix(spec): bump submodule spec fixes 2016-11-03 08:57:11 -07:00
Juan Tejada 44bfb03375 fix(lint) 2016-11-03 00:08:55 -07:00
Evan Morikawa 5a7b11c4bf fix(plugin): remove from plugin list 2016-11-02 18:03:56 -07:00
Halla Moore e5e7a72608 feat(cal) Add a mini month view to the corner of the calendar
Summary: Title says it all!

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3373
2016-11-02 17:45:12 -07:00
Evan Morikawa 637020fdb6 fix(form): add currentFormValues to GeneratedForm 2016-11-02 17:43:56 -07:00
Juan Tejada 189b15e586 feat(attachments): Generate and display thumbnail previews for files (mac only)
Summary: Adds option to view preview thumbnails for attachments. This commit updates the FileDownloadStore to generate file thumbnail previews for attachments via `qlmanage` and displays them in the AttachmentItem component.

Test Plan: Manual

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3393
2016-11-02 17:27:53 -07:00
Ben Gotow 16e2b6036b fix(onboarding): Respect hot window dimensions 2016-11-02 13:31:30 -07:00
Ben Gotow 432012a6bc feat(search): Fix slow queries with FTS5 on Contacts 2016-11-02 13:03:28 -07:00
Evan Morikawa ec7133dff1 fix(travis): Fix travis build script
fix(travis): Fix travis error

add debug to travis

bump(submodule)

Silence
2016-11-02 13:02:31 -07:00
Halla Moore 6f571a323f fix(decaffeination) Remove second arg from some slice calls
Decaffination replaces someString[index..-1] with
someString.slice(index, -1 + 1), which is bizzare. This commit changes those
instances to someString.slice(index).
2016-11-02 12:40:01 -07:00
Evan Morikawa 73775ad31a feat(travis): allow builds on mirror 2016-11-02 12:23:19 -07:00
Juan Tejada f336d13c23 fix(selection): Add index to Contact table to improve perf when selecting threads
Thread selection triggers a query on the Contacts table by account_id,
email and name. Add an index to improve this query
2016-11-02 12:15:31 -07:00
Juan Tejada 13e46af4d7 bump(submodule) 2016-11-02 11:58:34 -07:00
Juan Tejada 13586d2886 fix(specs): Add regression test for list-selection 2016-11-02 11:46:28 -07:00
Juan Tejada 7865da6b7d fix(list-selection): Properly iterate over the selected indexes when expanding selection
This commit fixes a bug in which you couldn't shift select threads from
the bottom to the top (i.e. select a thread, shift-click a thread on top of it
would not select the range of threads).

This bug was introduced by a translation from coffeescript to JS.
Specifically, by converting

```
for idx in [startIdx..endIdx]
```

to
```
for (let idx = startIdx; idx <= endIdx; idx++) { ... }
```

The coffeescript range syntax for `[x..y]` automatically generates the
correct range when x > y or when x < y, generating a descending or
ascending range respectively.
However, our transaltion simply iterated ascendingly from `startIdx`
to `endIdx`, which would be a no-op when the `startIdx` was greater than
the `endIdx`, which was the case when shift-selecting threads from bottom to top.
2016-11-02 11:33:01 -07:00
Evan Morikawa 4692484094 fix(forms): fix window launcher and gen form 2016-11-02 11:19:35 -07:00
Juan Tejada 5fa379bccf fix(es6): Convert FileDownloadStore to JS 2016-11-01 18:12:24 -07:00
Juan Tejada 20b6a6e070 feat(attachments): Add ability to preview with quicklook (mac only)
On mac, you can now preview an attachment by clicking on the new preview
icon, or by pressing space bar when an attachment is focused.

This commit also updates the styling for attachment items and adds the
ability to focus attachment items. We don't keep any focused state, just
the browser's, which means you can focus attachments by clicking, or
tabbing/shift-tabbing
2016-11-01 16:13:42 -07:00
Juan Tejada 44a7fa7117 fix(reminders): Add missing assets, ui cleanup, restore dead code
Summary:
This commit adds a couple of missing assets, including the icon for the
plugin list and other misc icons. It also switches to the new UI where
we use the thread timestamps to display the reminder date in the
Reminders perspective instead of using mail labels. It also adds a
header to the threads inside the reminders perspective to indicate that
a reminder will be triggered if no one replies to their email.

It also adds a header to indicate when a message has been brought back
to the inbox due to a reminder based on sdw's designs.

Finally it restores some code that magically disappeared when landing
reminders + other misc cleanup

Test Plan: Manual

Reviewers: bengotow, halla

Reviewed By: bengotow, halla

Differential Revision: https://phab.nylas.com/D3388
2016-11-01 11:39:50 -07:00
Halla Moore 85d1f94637 fix(menubar): Add missing not operator
Menu items could not be opened on Linux because Linux allows menu items to be
disabled, and the logic for determining if a menu item should be enabled was
accidentally negated during coffescript conversions.
2016-11-01 10:01:11 -07:00
Juan Tejada b8ed562d19 🎨(attachments): DRY and cleanup attachment components code
Summary:
The attachment components were the only React Components which used
inheritance between components, which is an anti-pattern in react. I
deleted these components in favor of new purely functional/dumb
components exposed via the component-kit: Attachment Item and
ImageAttachmentItem. These are defined in the same file to reuse some
smaller components between them, like the progress-bar, etc.

The attachments pacakage still remains, and only registers a single component to
a new are called MessageAttachments. This InjectedComponent role is
shared by the Composer and MessageItem, and is the only reason this
exists as an injected component in a separate package.
MessageAttachments renders all image and non image attachments for a
message or draft, and binds the appropriate actions for removal, downloading, etc.

The composer still used FileUpload and ImageUpload components for rendering
uploads in the Composer (i.e. when you add an attachment (these are
different from files because they aren't saved until the draft is
sent)). These 2 components were pretty much copied and pasted from the
ones in the attachments package, with subtle differences-- I got rid of
these as well in favor of the new AttachmentItem and ImageAttachmentItem

Also convert more coffee to ES6!

Test Plan: Unit tests

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3381
2016-10-31 17:26:20 -07:00
Evan Morikawa d082b3f98a fix(DB): turn debug logging off 2016-10-31 16:27:16 -07:00
Evan Morikawa 521f1f6cbd feat(DB): Revert to schema version 23 2016-10-31 16:24:23 -07:00
Michael Pfister 5f324b40be fix(task): fix typo during error check 2016-10-31 11:52:21 -07:00
Kevin Jose Martin f6bbb22411 Fix this line on non-POSIX systems, such as Windows (#2996)
Per: 13a74e2176
2016-10-31 10:42:36 -07:00
Ben Gotow 13a74e2176 fix(fd-limit): Increase FD limit to 1024 2016-10-28 15:33:38 -07:00
Evan Morikawa 0f66f0e58b bump(SFDC): fixes to object pickers 2016-10-28 13:23:26 -04:00
Evan Morikawa 3c37e31894 fix(build): remove dmg task from build 2016-10-28 11:08:09 -04:00
Evan Morikawa 8ab3fba7da fix(es6): fix linter and compile error in es6 conversion 2016-10-28 09:59:41 -04:00
Evan Morikawa 6e625336f9 bump(SFDC): Update to latest SFDC fixes 2016-10-28 09:55:41 -04:00