Commit graph

3404 commits

Author SHA1 Message Date
Jackie Luo 5eeaddbb70 fix(onboarding): Receive user info correctly 2016-08-30 19:20:51 -07:00
Evan Morikawa a418f806be fix(less): tokenizing field input no box-shadow on windows 2016-08-30 17:55:19 -07:00
Juan Tejada ddf2e91f18 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 c09fb90df4 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 c3826fa972 fix(onboarding): no longer show welcome page 2016-08-30 14:52:19 -07:00
Michael Grinich 5f8693c2a5 add theme img 2016-08-30 14:46:48 -07:00
Michael Grinich f08e8a268a theme notes 2016-08-30 10:53:36 -07:00
Evan Morikawa ef8108efd1 fix(onboarding): fix injected js error and pass N1 version 2016-08-30 10:41:31 -07:00
Evan Morikawa 05cba2b6d1 feat(webview): can add .open-external class in webview 2016-08-29 19:07:44 -07:00
Evan Morikawa 05a50e5175 feat(travis): add ci-build/.* wildcard to building branches 2016-08-29 17:43:24 -07:00
Jackie Luo 5a3456c5f8 fix(lint): Remove unused variable 2016-08-25 14:18:06 -07:00
Jackie Luo 379d11b31a 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 5668444839 fix(dev): don't show tokens in developer api bar
Fixes #2756
2016-08-23 17:45:46 -04:00
Jackie Luo cb229485c3 feat(onboarding): Allow HTTPS in self-hosted sync engine onboarding 2016-08-23 10:46:44 -07:00
Evan Morikawa d9e1b4aed7 feat(workspace): keep track of workspace mode 2016-08-22 19:14:51 -04:00
Juan Tejada 6c00098861 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 5cbe1f4007 Update changelog 2016-08-18 15:16:58 -07:00
Juan Tejada dc15f0cf13 fix(mail-merge): Remove extra call to linkToDraft
Screwed up our state!
2016-08-18 15:09:16 -07:00
Jackie Luo 00e2ad41f1 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 1efe10c8ce fix(lint): fix linter error 2016-08-18 12:27:45 -07:00
Evan Morikawa 63134325bf bump(version): 0.4.49 2016-08-18 12:21:41 -07:00
Evan Morikawa 476a1c4167 fix(draft): prepareDraftForSyncback double checks quotes on send later 2016-08-18 12:14:53 -07:00
Evan Morikawa 8278243396 feat(plugins): plugins now properly report which are active on change 2016-08-18 11:42:55 -07:00
Juan Tejada e699b28a36 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 b33ca08585 feat(app): dialog box prompting to move to Applications folder 2016-08-18 09:58:13 -07:00
Jackie Luo e6a5f365e1 fix(errors): Remove reporting for applyTransformsToDraft 2016-08-18 09:28:09 -07:00
Juan Tejada e50de88374 fix(mail-merge): Update props for body tokens when state changes 2016-08-17 18:09:26 -07:00
Shelley Vohr ddbf96a606 improve first name parser by adding honorific exclusions (#2732) 2016-08-17 10:14:38 -07:00
Juan Tejada f7f5c2538f Update changelog for 0.4.48 2016-08-16 21:50:17 -07:00
Evan Morikawa cacf016ecb bump(version): 0.4.48 2016-08-16 17:42:28 -07:00
Juan Tejada 43d02da5d9 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 4aa4a0eed9 fix(submodule): Remove submodule commit 2016-08-16 17:30:09 -07:00
Jackie Luo daaf4336d2 fix(tracking): Check for specific plugin before transforming body 2016-08-16 17:22:30 -07:00
Evan Morikawa e14812956c 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 05bb03bae1 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 009098a6a4 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
Evan Morikawa 46b18edc3d fix(metadata): add pluginId string check when grabbing metadata
This caused an infinitely growing set of duplicate metadata entries whose
keys were "[object object]"
2016-08-15 13:39:40 -07:00
Evan Morikawa 58716c72aa fix(sidebar): fix bug in sidebar scoring
Not properly getting passed the account means that yourself was not
properly downgraded in the sidebar participant score
2016-08-15 13:38:01 -07:00
Annie d57cca64d0 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 1e6ea1dd07 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
Wattenberger 024d5db14e Add Snow to README (#2711) 2016-08-08 18:36:21 -07:00
Ira Praharaj f8bb60fdd7 Updated readme to include BoraBora and Honeyduke theme (#2708) 2016-08-08 10:01:47 -07:00
Evan Morikawa 5ed3b9b4a3 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 6f76d70e8a feat(request): Add APIRoot as an option to Nylas API Request 2016-08-03 11:23:55 -07:00
Evan Morikawa 9f26b3f784 Add NylasLongConnection to nylas-exports 2016-08-02 17:34:56 -07:00
Evan Morikawa 91686627b2 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 0945bdbeab 🎨(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 f894c62fcc fix(mail-merge): Fix cursor style, refactor state reducers, add test 2016-08-01 12:50:36 -07:00
Juan Tejada 8851df50fb fix(utils): Properly export DateUtils.timeZone, fix specs 2016-08-01 12:41:05 -07:00
Juan Tejada cb6639371d fix(activity-list): Properly update to DateUtils.shortTimeString 2016-08-01 12:09:01 -07:00