Commit graph

3421 commits

Author SHA1 Message Date
Juan Tejada
791a2caac3 fix(markdown): Fix tabbing into composer 2016-09-01 16:44:53 -07:00
Juan Tejada
8fea55583f fix(packages): Make sure we can migrate and correctly disable new packages
- Add a package migration manager to be able to migrate external
packages into N1, and decide if they should be enabled or disabled by
default when added.
2016-09-01 14:53:31 -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
Evan Morikawa
b55c5bcdd9 fix(size): Losslessly compress images via ImageOptim 2016-09-01 11:32:52 -07:00
Evan Morikawa
4ea242f952 fix(size): Remove src/pro from build 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
Ben Gotow
2cbc1a7dde config(*): watch config across fs deletes, re-creates 2016-09-01 11:03:30 -07:00
Ben Gotow
0924404c85 config(*): Fix bad template string 2016-09-01 10:14:40 -07:00
Juan Tejada
8122ed0b5a update(*): Update changelog 2016-08-31 15:22:53 -07:00
Juan Tejada
c8006f4eb0 bump(version): 0.4.50 2016-08-31 14:56:08 -07:00
Juan Tejada
f8d2904f72 bump(submodule) 2016-08-31 09:56:36 -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
73a1fbf76b fix(less): tokenizing field input no box-shadow on windows 2016-08-30 17:55:19 -07:00
Juan Tejada
aac01d1088 fix(utils): Fix import when running in browser process
Main process doesn't know about nylas-exports
2016-08-30 16:08:45 -07:00
Juan Tejada
0ea35896b0 fix(config): Write config.json atomically and handle errors (#2518)
Summary:
It seems that #2518 was being caused because `fs.writeFileSync` ocasionally failed and ended up writing an empty config.json file, effectively blowing away your N1 settings. The most common cause of failure for `writeFileSync` seems to be EBUSY error on win32, according to Sentry. The reason as to why EBUSY is happening so frequently on win32 is still unclear.

This commit:
- Adds an `atomicWriteFileSync` helper which writes to a temporary file first, and then renames the file. If writing to the temp file fails, we wont blow away our actual config.json. Also, renaming seems to be atomic across all platforms.
- Adds more robust error handling and messaging to both loading and writing the file, and report them to Sentry
- Automatically retries saving the file 3 times before telling the user.
- Fixes https://sentry.nylas.com/sentry/edgehill/group/43112/

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3245
2016-08-30 15:46:53 -07:00
Evan Morikawa
95aa6386fc fix(onboarding): no longer show welcome page 2016-08-30 14:52:19 -07:00
Michael Grinich
105a0526cb add theme img 2016-08-30 14:46:48 -07:00
Michael Grinich
4fa75e2c0a theme notes 2016-08-30 10:53:36 -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
Evan Morikawa
88ed82dd0d feat(travis): add ci-build/.* wildcard to building branches 2016-08-29 17:43:24 -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
Evan Morikawa
e294415e2f feat(workspace): keep track of workspace mode 2016-08-22 19:14:51 -04: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
Juan Tejada
63672a72fc Update changelog 2016-08-18 15:16:58 -07:00
Juan Tejada
2839ce2856 fix(mail-merge): Remove extra call to linkToDraft
Screwed up our state!
2016-08-18 15:09:16 -07:00
Jackie Luo
c908a1633c fix(autoupdater): Change feed URL when Nylas ID or accounts changes
Test Plan: Tested locally.

Reviewers: juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D3178
2016-08-18 13:22:56 -07:00
Evan Morikawa
afc20f255a fix(lint): fix linter error 2016-08-18 12:27:45 -07:00
Evan Morikawa
4a0af16abd bump(version): 0.4.49 2016-08-18 12:21:41 -07:00
Evan Morikawa
dcdfa230e8 fix(draft): prepareDraftForSyncback double checks quotes on send later 2016-08-18 12:14:53 -07:00
Evan Morikawa
e6deb83440 feat(plugins): plugins now properly report which are active on change 2016-08-18 11:42:55 -07:00
Juan Tejada
01dee59e04 fix(send): Don't retry send
Summary:
- There are some cases in which constantly retrying send can cause unexpected bugs like sending multiple times, so don't retry send at all
- Make 429 a permanent error code

Test Plan: Manual

Reviewers: jackie, evan

Reviewed By: jackie, evan

Differential Revision: https://phab.nylas.com/D3177
2016-08-18 10:39:13 -07:00
Evan Morikawa
0a5388d0bb feat(app): dialog box prompting to move to Applications folder 2016-08-18 09:58:13 -07:00
Jackie Luo
9b0306d509 fix(errors): Remove reporting for applyTransformsToDraft 2016-08-18 09:28:09 -07:00
Juan Tejada
4b4763dba4 fix(mail-merge): Update props for body tokens when state changes 2016-08-17 18:09:26 -07:00
Shelley Vohr
5f0b248a2e improve first name parser by adding honorific exclusions (#2732) 2016-08-17 10:14:38 -07:00
Juan Tejada
07f0ed69ef Update changelog for 0.4.48 2016-08-16 21:50:17 -07:00
Evan Morikawa
c7a69e1e8f bump(version): 0.4.48 2016-08-16 17:42:28 -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
Evan Morikawa
3b365dd9b1 fix(window): window launcher now assigns new window keys if none exist
Fixed issue where new windows wouldn't refresh themselves because the keys
were stuck on the hot window
2016-08-15 14:16:54 -07:00