Commit graph

1747 commits

Author SHA1 Message Date
Ben Gotow
a5723dbc5a bump(electron): Electron 1.4, node-sqlite 3.1.4+fts 2016-09-16 08:59:36 -07:00
Jackie Luo
cba4c4ac51 fix(subscription): Remove hardcoded trial length 2016-09-14 11:21:48 -07:00
Ben Gotow
08ec6e534d fix(copy): Updating language for onboarding tour 2016-09-14 14:16:19 -04:00
Juan Tejada
1ab5a1327a fix(build): Fix lint errors 2016-09-14 10:14:50 -07:00
Juan Tejada
677a83b8f5 Add thread-sharing plugin
Summary:
Add thread-sharing plugin:

- Add popover to enable sharing
- Register custom nylas:// protocol to open a thread via protocol is thread exists

Test Plan: Manual

Reviewers: jackie, bengotow

Reviewed By: jackie, bengotow

Subscribers: jackie, halla

Differential Revision: https://phab.nylas.com/D3265
2016-09-14 00:04:20 -07:00
Ben Gotow
0d67a593b4 feat(tutorial): Overlay bubbles that guide you through initial features
Summary:
Add header to show how many trial days remain

More rendering out of Store, consolidate registry and store and expose via new serviceRegistry

WIP

Merge branch 'master' into hallamoore/feature-walkthrough-tutorial

Switch to using observable instead of AbortablePromise

Update submodule

WIP

WIP

Remove annotations

Remove changes

WIP

Test Plan: No tests

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3260
2016-09-13 02:29:38 -04:00
Ben Gotow
a4ed2ccf7c Remove bad .jsx extension 2016-09-02 11:15:25 -07:00
Juan Tejada
1685f3bd45 fix(markdown): Update editor height 2016-09-01 20:21:13 -07:00
Juan Tejada
b14e4f6aa2 fix(markdown): Fix textarea bug (use our fork of simplemde)
- Textarea bug prevented us from typing in the markdown editor, almost
consistently. Seems to be a chrome bug
- Stop using textarea and use contenteditable instead via codemirror's
inputStyle option. Had to use our fork of simplemde to be able to pass that option
- Disable spellchecker also
2016-09-01 19:43:10 -07:00
Juan Tejada
f81c29e1cd fix(markdown): Add setSelection method 2016-09-01 18:27:39 -07:00
Ben Gotow
eb87fe4745 Markdown support for quoted text / signatures 2016-09-01 17:31:59 -07:00
Juan Tejada
176155275f fix(markdown): Fix focusAbsoluteEnd 2016-09-01 16:52:55 -07:00
Juan Tejada
791a2caac3 fix(markdown): Fix tabbing into composer 2016-09-01 16:44:53 -07:00
Evan Morikawa
10ed8a2521 fix(size): remove unused docs & screenshots 2016-09-01 11:32:52 -07:00
Evan Morikawa
21a485e23d fix(size): Losslessly compress package images via ImageOptim 2016-09-01 11:32:52 -07:00
Ben Gotow
65f9a3dd6b fix(onboarding): Fix React warnings, no back button to auth 2016-09-01 11:11:25 -07:00
Juan Tejada
7ffb156ee0 plugins(*): Add identifying css classes to composer plugin buttons 2016-08-31 09:56:23 -07:00
Jackie Luo
a8b8359e0c feat(markdown): Add Markdown composer 2016-08-30 19:23:01 -07:00
Jackie Luo
d1ba5a3e2b fix(onboarding): Receive user info correctly 2016-08-30 19:20:51 -07:00
Evan Morikawa
95aa6386fc fix(onboarding): no longer show welcome page 2016-08-30 14:52:19 -07:00
Evan Morikawa
f5bf41a181 fix(onboarding): fix injected js error and pass N1 version 2016-08-30 10:41:31 -07:00
Evan Morikawa
5108cded87 feat(webview): can add .open-external class in webview 2016-08-29 19:07:44 -07:00
Jackie Luo
ec848a4a6e fix(lint): Remove unused variable 2016-08-25 14:18:06 -07:00
Jackie Luo
1f15026a5f feat(oauth): Add new component for OAuth sign-in
Summary: Future services that require OAuth get a cute new component that lets them connect more easily.

Test Plan: Tested manually.

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3186
2016-08-25 10:44:32 -07:00
Evan Morikawa
7406c1a94f fix(dev): don't show tokens in developer api bar
Fixes #2756
2016-08-23 17:45:46 -04:00
Jackie Luo
629ddf7886 feat(onboarding): Allow HTTPS in self-hosted sync engine onboarding 2016-08-23 10:46:44 -07:00
Juan Tejada
f9a530017d fix(msg-timestamp): Fix incorrect date var / convert to es6
- Typo in cjsx code broke the message timestamp
- Converted to es6 so this doesn't happen again!
2016-08-18 18:11:52 -07:00
Evan Morikawa
0a5388d0bb feat(app): dialog box prompting to move to Applications folder 2016-08-18 09:58:13 -07:00
Juan Tejada
74ad414bf8 fix(build): Fix specs and lint errors
Summary: Fix specs and lint errors

Test Plan: Unit

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3168
2016-08-16 17:37:02 -07:00
Jackie Luo
97084687b4 fix(submodule): Remove submodule commit 2016-08-16 17:30:09 -07:00
Jackie Luo
6ff7aec999 fix(tracking): Check for specific plugin before transforming body 2016-08-16 17:22:30 -07:00
Evan Morikawa
5231b4f556 feat(install): add a checker for the install location
Summary:
Adds a new notification bar for mac users only that warns you if N1 is not
in your /Applications folder. Gives you the option to move it to your
/Applications folder.

Test Plan: manual

Reviewers: juan, jackie

Reviewed By: juan, jackie

Differential Revision: https://phab.nylas.com/D3166
2016-08-16 16:58:13 -07:00
Juan Tejada
b223a38b73 fix(mail-merge/preview): Don't unmount components when toggling preview
Summary:
See edgehill revision: https://phab.nylas.com/D3160

- CustomContenteditableComponents.get now takes a single component to register as an overlaid component, and this component will be passed a prop `{isPreview: true}` when it is meant to be rendered as a preview. Update scheduler and mail-merge to use this new api.

- This prevents the mail merge state from being incorrectly updated when we toggled preview mode -- previously, it believed that the tokens had been unmounted when toggling preview, so they were incorrectly removed from the mail merge state.

- Additionally, makes sure that tokens are correctly added to the mail merge state whenever a token is rendered via componentDidMount -- previously, we only added the token to state when a token was dropped on the contenteditable, however, a token might be pasted or an anchor node might be added by any other means, in which case we want the mail merge state to reflect that. (Adds docs about this)

Test Plan: Manual

Reviewers: jackie, evan

Reviewed By: jackie, evan

Differential Revision: https://phab.nylas.com/D3161
2016-08-16 13:21:41 -07:00
Annie
43ea21e3bf add(composer): Turn emails into mailto for debugging purposes
Summary:
fix(subject-field): Fix subject text field focus
Before, if you clicked a mailto link, once the composer loaded, the subject field (which was focused in composer-preload) blurred. This was not ideal as users would want to type once the popout loaded and instead they would have to click first. We identified that this was coming from the composer header _renderSubject injected component. We fixed the focus within mail merge subject text field and additionally added the onComponentDidChange method to injected component. This allowed us to only update the component when the header field changed.

Test Plan: tested on my machine for mailto links

Reviewers: juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3150
2016-08-12 16:06:22 -07:00
Annie
a7602a5351 fix(cursor): Make cursor focus at the top of email
Summary: When you would click outside the contenteditable in the composer, it would focus to the absolute end. Not ideal. I added a check if the click is above the top of the content editable -- if you click the top padding of it -- then focus at the beginning.

Test Plan: is this something i should test?

Reviewers: juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3139
2016-08-12 14:27:31 -07:00
Evan Morikawa
2e1bd5daae fix(env): add remove unload callback for stores
Also add eslint_d to linter setup.
Developer bar store supports bearer token auth
2016-08-05 12:15:39 -07:00
Evan Morikawa
0de68632df Auth keybase and clearbit
Summary:
Fix to pass N1 ID auth through to edgehill-server for remaining services
(clearbit and keybase) that request authing against the Nylas API. We need
to pass along the N1 ID.

This also requires an Edgehill Server patch here:
https://phab.nylas.com/D3149

Test Plan: Manual.

Reviewers: bengotow, juan

Differential Revision: https://phab.nylas.com/D3151
2016-08-02 16:17:34 -07:00
Annie
b46f60fc1c 🎨(signature): Fix signature dropdown styling on different themes
Summary: Ran into issues with the selected tag having different styles associated with it in taiga and in darkside. Fixed these.

Test Plan: Tested on my machine

Reviewers: jackie

Reviewed By: jackie

Subscribers: jackie

Differential Revision: https://phab.nylas.com/D3144
2016-08-01 14:18:13 -07:00
Juan Tejada
9fe6717a98 fix(utils): Properly export DateUtils.timeZone, fix specs 2016-08-01 12:41:05 -07:00
Ben Gotow
5254589e5e fix(signatures): Scrolling for long signatures 2016-08-01 11:54:00 -07:00
Ben Gotow
ead866fc06 fix(phising): Make detection lower case #1784 2016-07-28 18:19:07 -07:00
jathpala
7faa9ac7bd Better support 24-hour time (#2622)
* Added support for 24-hour time to the thread list view (Issue #682)

* Add 24-hour time support to the thread list scroll tooltip (Issue #682)

* Fix for 24-hour time in the thread list scroll tooltip (#682)

Correctly imports the DateUtils module

* Add support for 24-hour time to the draft threads list (Issue #682)

* Add 24-hour time to the message sidebar

* Fix for 24-hour time in the message view so the rollover tooltip is 24hour also (#682)

* Removed unused date functions from utils

fullTimeString and shortTimeString from src/flux/models/utils.coffee were not
compatible with 24-hour time. These functions were modified and moved to
DateUtils in src/date-utils.

* Fix for display of 24-hour time in the message view (Issue #682)

* Removed unused import of Utils in a couple of files

Prompted by Travis build errors.

* Updates to handling of date/time display

Incorporates changes suggested by @bengotow.
Re-enables support for the isDetailed property in message-timestamp (if this is set
to true, a medium length date/time string will be used for display).
Re-enables additional display varieties based on when the email was received. Note
that this is implemented slightly different to the orinal version - time is now given
as an absolute time rather than "... days ago" format.
TZ guessing moved to the global scope of date-utils for performance reasons.

* Minor de-linting

* Re-enable all tests by unfocusing the test suite

A previous commit (ad04775) added an fdescribe() to one of the tests in
draft-helpers-spec. This changes that to a regular describe() so that
all tests will be run when running ./N1 --test.

* Added tests for the new DateUtils functions

Added tests for getTimeFormat, mediumTimeString and fullTimeString.
Removed no longer relevant tests from message-timestamp-spec as _formattedDate
has been removed in favour of the functions in date-utils.

To test shortTimeString, we need to be able to set a fake current time which is
possible in jasmine 2.0+ but not in 1.3 which is currently in use.

As a possible bug, when running more than 10 tests the following warning is raised:
"(node:25025) Warning: Possible EventEmitter memory leak detected.
11 on-config-reloaded listeners added. Use emitter.setMaxListeners() to increase limit",
source: internal/process/warning.js (24)

* Minor de-linting
2016-07-28 17:42:14 -07:00
Ben Gotow
36bd794b61 feat(signatures): Fix specs 2016-07-28 14:54:37 -07:00
Ben Gotow
817a78a296 feat(signatures): Upgrade old signatures to new format 2016-07-28 14:46:01 -07:00
Halla Moore
0b82543c44 fix(spellchecker): Make sure spellchecker returns selection to its original state
This also fixes the scenario where the link editor wouldn't pop up properly with
misspelled words.
2016-07-28 13:42:53 -07:00
Ben Gotow
95a03692ed fix(keybase): incorrect react proptype 2016-07-28 13:33:59 -07:00
Juan Tejada
5f52a9a47b fix(specs): Properly spy on streaming connection
- Prevent error logs and actually trying to start delta streaming
connections
2016-07-28 12:40:31 -07:00
Annie
ea60c69fa6 refactor(folders): Make folders disappear when deleted rather than graying out until confirmed
Summary:
When testing we thought that Deleting a folder turns it grey but keeps it in the folder list; trying again throws this error.
It turns out, that the folder was actually going to be deleted if left alone long enough, however, since it sat there grey for a while
we would attempt to delete it again which would throw an error. To get around this, we removed the isDeleted grey state and
unpersisted the folder right when delete is clicked then persisted the folder if there was an API error.

fix(folders): Add new and extend destroy category task specs

Test Plan: I tested locally, tweaked destroy category task specs and added minor new specs

Reviewers: bengotow, juan

Reviewed By: juan

Subscribers: bengotow, juan

Differential Revision: https://phab.nylas.com/D3131
2016-07-28 12:10:54 -07:00
Juan Tejada
947646fed8 fix(log): Rm unecessary console.log call 2016-07-28 10:31:48 -07:00
Jackie Luo
301d10e33e 🎨(onboarding): Fix clipped gears in onboarding 2016-07-27 20:08:18 -07:00