Commit graph

3715 commits

Author SHA1 Message Date
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 c651d272b0 fix(travis): Fix path to encrypted files 2016-11-02 12:26:45 -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
Halla Moore d996273b7b fix(email-frame) Only use documentElement scrollHeight if it is taller than body
There are cases where the documentElement has a scrollHeight of 0, even if
the body has a larger scrollHeight. Before, we were always using the
documentElement if it was present. Now, we use the maximum scrollHeight.
2016-11-02 11:38:26 -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
Halla Moore afbcfb6853 fix(sidebar-notifs): Set containersRequired on the notifs-wrapper
Switch from manually setting containerRequired to false on each individual
notification to setting it on the InjectedComponentSet within the
notifs-wrapper. This way, people adding new notifications don't need to
remember to manually set it themselves.
2016-11-01 11:46:47 -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 81c61acfcd fix(linter): fix linter errors 2016-10-28 16:56:24 -04:00
Evan Morikawa 2c1dbeb31f fix(channel): only show stable or beta
Or the salesforce channel if you've ever used it before
2016-10-28 16:49:10 -04:00
Evan Morikawa 8fe0e5a680 fix(build): fix codesign step 2016-10-28 16:27:30 -04:00
Evan Morikawa 0f66f0e58b bump(SFDC): fixes to object pickers 2016-10-28 13:23:26 -04:00
Evan Morikawa cf8821e969 fix(build): fix gruntfile error 2016-10-28 11:28:50 -04:00
Evan Morikawa 3c37e31894 fix(build): remove dmg task from build 2016-10-28 11:08:09 -04:00
Evan Morikawa 8e97850b1a fix(build): bump AppVeyor to build with Node 6.9 from 4.2 2016-10-28 10:37:59 -04:00
Evan Morikawa 5e582f97de fix(travis): build with Node 6.9 to fix npm build issue
Travis on Node 4.2 can't succeed installing the build folder with npm 2
due to a peerdependency issue that doesn't happen with latest node and npm
2016-10-28 10:09:42 -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
Ben Gotow 8e533a3854 es6(*): Actions, ConfigSchema => ES2016 2016-10-27 18:48:33 -07:00
Ben Gotow a9b0472030 es6(*): Misc components, nylas-exports => ES2016 2016-10-27 18:25:30 -07:00
Ben Gotow 0a56d30a22 es6(composer): Composer extensions => ES2016 2016-10-27 17:28:36 -07:00
Ben Gotow 4744caab77 fix(tooltips): comp. w/ tooltip must be conditionally rendered
Also update tooltips to support functional components.
2016-10-27 15:31:27 -07:00
Ben Gotow 020cc06b36 lint(send-action-button): Whoa nylaslint just chill 😂 2016-10-27 15:06:51 -07:00
Ben Gotow 85782c7b27 fix(mac-notifier): Make macOS-only package optional 2016-10-27 14:44:33 -07:00
Ben Gotow e7c22eacbc fix(spec): Apply jasmine styles to windowed specs 2016-10-27 12:44:22 -07:00
Evan Morikawa 0adc1261f6 fix(spec): let ./N1.sh --test=window work 2016-10-27 15:24:13 -04:00
Ben Gotow 781d061ee8 es6(*): Misc src to ES2016 2016-10-27 12:08:59 -07:00
Ben Gotow a3f6edd435 es6(*): Small components from shared library => ES2016 2016-10-27 12:08:59 -07:00
Ben Gotow 1c21137600 es6(list): ListDataSource, subclasses => ES2016 2016-10-27 12:08:59 -07:00
Ben Gotow 642977126f es6(models): Remaining models => ES2016
# Conflicts:
#	src/flux/models/contact.coffee
2016-10-27 12:08:59 -07:00
Juan Tejada 990719685a fix(warnings):Fix react warning caused by decorator 2016-10-27 12:05:02 -07:00
Juan Tejada 645a032a50 fix(specs): Fix remaining broken specs 2016-10-27 11:44:19 -07:00
Juan Tejada da48d8433e fix(specs): Fix date input specs 2016-10-27 11:35:37 -07:00
Juan Tejada d4a72ef342 fix(specs): Fix draft-store tests 2016-10-27 10:40:20 -07:00
Evan Morikawa 877a09eda9 fix(token): Fix placeholder & style issues in tokenizing text field 2016-10-27 12:02:45 -04:00
Juan Tejada 43aa660bb9 fix(warning): Don't attach ref inside decorator if not a Component 2016-10-27 09:01:37 -07:00
Juan Tejada f2e7ea4c4c feat(reminders): Add send reminders functionality
Summary: Add reminders plugin which lets you set reminder if you don't get a reply for a message within a specified time in the future

Test Plan: TODO

Reviewers: halla, bengotow, evan

Reviewed By: halla, bengotow, evan

Differential Revision: https://phab.nylas.com/D3356
2016-10-27 08:49:29 -07:00