Commit graph

4235 commits

Author SHA1 Message Date
Ben Gotow
dbe59f4326 fix(popovers): Don’t apply minimum width to all 2016-11-03 17:52:10 -07:00
Ben Gotow
be3d2f0b44 fix(auth): Add partition back to webview 2016-11-03 17:42:20 -07:00
Evan Morikawa
dbc5a97cdd fix(travis): PUBLISH_BUILD only on mirror 2016-11-03 11:31:58 -07:00
Juan Tejada
b6761b049e update(changelog) 2016-11-03 09:18:54 -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
Juan Tejada
f7e162c1a8 bump(version): 0.4.202 2016-11-02 18:03:31 -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
1183b852f0 bump(version): 0.4.201 2016-11-02 17:33:32 -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
Jackie Luo
4efcbb4fc3 fix(email-frame): Refactor if/else for frame height 2016-11-02 15:56:27 -07:00
Jackie Luo
57c25b7fa9 fix(email-frame): Revert to body scrollHeight if documentElement's is zero 2016-11-02 15:35:58 -07:00
Jackie Luo
bf95181ea8 fix(logging): Remove console.log() 2016-11-02 15:35:58 -07:00
Jackie Luo
e1a5e6e1ea fix(email-frame): Prioritize documentElement for scroll height 2016-11-02 15:35:58 -07:00
Evan Morikawa
ff2e626037 fix(travis): fix conditional check in before_install 2016-11-02 14:54:17 -07:00
Ben Gotow
16e2b6036b fix(onboarding): Respect hot window dimensions 2016-11-02 13:31:30 -07:00
Ben Gotow
c59fc486d7 fix(search): Rename package, fix column naming issue 2016-11-02 13:13:16 -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
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